
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
This anywhere near?
Any ideas to get round the lack of a USDSEK feed?
Anyone make an indicator out of this?
double USDX, EURUSD, USDJPY, GBPUSD, USDCAD, USDSEK, USDCHF;
EURUSD=iMA("EURUSD",PERIOD_H1,1,0,MODE_SMA,PRICE_CLOSE,1);
USDJPY=iMA("USDJPY",PERIOD_H1,1,0,MODE_SMA,PRICE_CLOSE,1);
GBPUSD=iMA("GBPUSD",PERIOD_H1,1,0,MODE_SMA,PRICE_CLOSE,1);
USDCAD=iMA("USDCAD",PERIOD_H1,1,0,MODE_SMA,PRICE_CLOSE,1);
//USDSEK=iMA("USDSEK",PERIOD_H1,1,0,MODE_SMA,PRICE_CLOSE,1);
USDSEK=6.3464;
USDCHF=iMA("USDCHF",PERIOD_H1,1,0,MODE_SMA,PRICE_CLOSE,1);
USDX = 50.14348112 * MathPow(EURUSD, -0.576) * MathPow(USDJPY, 0.136) * MathPow(GBPUSD, -0.119) * MathPow(USDCAD, 0.091) * MathPow(USDSEK, 0.042) * MathPow(USDCHF, 0.036);
Print("DollarIndex is: ", DoubleToStr(USDX, 2));
TIA as always :)
-BB-