double iMA(string symbol, int timeframe, int period, int ma_shift, int ma_method, int applied_price, int shift)
For the standard standard indicator "Moving Average" the "Shift" field changes the parameter "ma_shift".

For a packed custom Moving Averages indicator, the MA_Shift field changes the ma_shift parameter.

Nothing in any of the indicators allows you to change the last parameter "shift".

Graphically, for the standard Moving Average indicator, changing the Shift field shifts the MA line to the right (with number + ve) and to the left (with number -ve) by the number of periods determined by an integer value.
ma_shift = 0: 
ma_shift = 4: 
ma_shift = -4: 
By code, when polling iMA () and setting ma_shift to 4, for example
double iMA("EURUSD", PERIOD_H1, 8, 4, MODE_SMA, PRICE_CLOSE, 0)
You will get a moving average of 4 periods ago.
This is a simple text indicator showing the value of iMA () with variable parameters period, ma_shift and shift. Play with it and check the "Moving Average" indicator (display the data window):
#property indicator_chart_window extern int period = 8; extern int ma_shift = 0; extern int shift = 0; void start(){ string A1=StringConcatenate("Stat: ", DoubleToStr(MA(),5)); Comment(A1); return (0); } double MA(){ return(iMA(NULL, 0, period, ma_shift, 0, 0, shift)); }
The last โshiftโ parameter in the iMA () function shifts the periods used for calculation, and can only be the number + ve. The number A -ve will request future non-existent periods. You can try to put a -ve the number in the text indicator above to find out what you are getting. (0.00000) As mentioned above, indicators do not allow editing this parameter simply because they are practically the same.
double iMA("EURUSD", PERIOD_H1, 8, 4, MODE_SMA, PRICE_CLOSE, 0)
same as
double iMA("EURUSD", PERIOD_H1, 8, 0, MODE_SMA, PRICE_CLOSE, 4)
So why is that so? Most likely, as standardization with other indicators, for example. http://docs.mql4.com/indicators/iAlligator where the "shift" parameter is a comprehensive determinant for which periods to calculate, and a separate jaw_shift, teeth_shift, lips_shift are independent parameters for the graphic shift of lines.