Download MetaTrader 5

Understanding Moving averages parameters

To add comments, please log in or register
Stewart
16
Stewart  

Hi everyone,

I'm having trouble getting my head around the difference between  Ma shift and applied price.

Can someone explain it to me ?

Thanks

 

Stewart 

Ian Venner
2584
Ian Venner  

applied price determines which price from each bar is to be averaged, the highs, the lows the opens etc

MaShift is used to move the resulting moving average line. You would usually set that to zero.

qjol
3243
qjol  

SDC:

You would usually set that to zero.


not so fast ;-)

there are plenty trading methods based on shifting the results like ichimoku or alligator...

Ian Venner
2584
Ian Venner  
Yes there are some but they use SetIndexShift() because the MA_Shift parameter doesn't work properly when the shift is to the future (unless it has been recently fixed) and I didn't want to complicate the issue for a beginner by going into all that. I wouldn't mind betting 99.9% of calls to iMA set the MA Shift parameter to zero.
qjol
3243
qjol  
i said: ;-)
To add comments, please log in or register