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
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