
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 emaSlow = iMA(_Symbol, PERIOD_M1, SlowEMA, 0, MODE_EMA, PRICE_CLOSE, 0);
having error
you expect an answer?
what error?
did you read the posts above?
double emaSlow = iMA(_Symbol, PERIOD_M1, SlowEMA, 0, MODE_EMA, PRICE_CLOSE, 0);
That's iMA for MQL4. in MQL5 you will have to declare handler for each ema in OnInit() function. Then in OnCalculate() function, you use CopyBuffer() and ArraySetSeries() method to copy data from the handler and sort the data.