Hi, I was looking at the MACD Sample expert in MT4 and just noticed something re iMA :
1) somewhere in the expert we have : MaCurrent=iMA(NULL,0,MATrendPeriod,MODE_EMA,0,PRICE_CLOSE,0)
2) in the dictionnary it says the syntax fo iMA should be like : iMA( string symbol, int timeframe, int period, int ma_shift, int ma_method, int applied_price, int shift)
What i don't understand is that the positions of ma_shift and ma_method seem to be inverted between the expert and the dictionnary definition.
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.
I was looking at the MACD Sample expert in MT4 and just noticed something re iMA :
1) somewhere in the expert we have : MaCurrent=iMA(NULL,0,MATrendPeriod,MODE_EMA,0,PRICE_CLOSE,0)
2) in the dictionnary it says the syntax fo iMA should be like :
iMA( string symbol, int timeframe, int period, int ma_shift, int ma_method, int applied_price, int shift)
What i don't understand is that the positions of ma_shift and ma_method seem to be inverted between the expert and the dictionnary definition.
What would be the correct syntax ? Thks