USDX formula for MT5

To add comments, please log in or register
A. Forex
105
A. Forex  

Hi,

Could someone advise how US dollar index formula can be used in MT5 with currencies that have a suffix in the end?  When I add '.m' to symbols in formula - get an error.

50.14348112 * pow(ask(EURUSD.m),-0.576) * pow(USDJPY.m,0.136) * pow(ask(GBPUSD.m),-0.119) * pow(USDCAD.m,0.091) * pow(USDSEK.m,0.042) * pow(USDCHF.m,0.036)

Thank you all!

Mladen Rakic
138758
Mladen Rakic  
USDx dollar index
USDx dollar index
  • www.mql5.com
USDX is an index which measures the dollar's value against a basket of six basic currencies: Euro (EUR), Yen (JPY), Pound sterling (GBP), Canadian dollar (CAD), Swedish krona (SEK) and Swiss franc (CHF). The index is calculated as a weighted geometric value of these currencies...
A. Forex
105
A. Forex  

Thank you Mladen for the reply and link to USDX indicator! So, currencies with suffixes can't be used in USDX formula?

To add comments, please log in or register