iMA syntax question

 
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.

What would be the correct syntax ? Thks
Reason: