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.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
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.