Hi,
I'm not a coder, but managed to edit somebody else code. If anyone could be so kind and correct it I will highly apricieate. Here's the story:
Base was USDx that is weighted average of couple of USD croses, that shows actual USD index.
My intention was to change it into four lines that shows separetly averages for USD, EUR, GBP and JPY croses. Here are intended formulas for each average:
1) (UJ + 1/EU + 1/GU)/3
2) (EU + EG + EJ/100)/3
3) (GU + 1/EG + GJ/100)/3
4) (1/(EJ + GJ + UJ))/300
I attach what I did [this just show first average] and oryginal [USDx.mq4] file.
My first intention was to create four different indicators by simply exchanging some pairs with another in a code, but somehow even then when I removed USD crosses from formula it showed no line nor bars [it was bar ind initially]
Thanks a lot for your help.
I'm not a coder, but managed to edit somebody else code. If anyone could be so kind and correct it I will highly apricieate. Here's the story:
Base was USDx that is weighted average of couple of USD croses, that shows actual USD index.
My intention was to change it into four lines that shows separetly averages for USD, EUR, GBP and JPY croses. Here are intended formulas for each average:
1) (UJ + 1/EU + 1/GU)/3
2) (EU + EG + EJ/100)/3
3) (GU + 1/EG + GJ/100)/3
4) (1/(EJ + GJ + UJ))/300
I attach what I did [this just show first average] and oryginal [USDx.mq4] file.
My first intention was to create four different indicators by simply exchanging some pairs with another in a code, but somehow even then when I removed USD crosses from formula it showed no line nor bars [it was bar ind initially]
Thanks a lot for your help.
Attached File(s)