kietsinhnguyen:
Hi, I really don't know what went wrong here:
Hi, I really don't know what went wrong here:
// Get EMA200 value
double ema200 = iMA(_Symbol, PERIOD_CURRENT, 200, 0, MODE_EMA, PRICE_CLOSE);
It keeps returning value of "11" on all symbols/timeframe/brokers
Sigh! Place the cursor on iMA and press F1 - study the doc. and the example!

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
double ema200 = iMA(_Symbol, PERIOD_CURRENT, 200, 0, MODE_EMA, PRICE_CLOSE);
It keeps returning value of "11" on all symbols/timeframe/brokers