Attachments forums

List of attachments posted on this forum.


All files on forums: 163063

Re: What does Shift do in MT4?

Jimmy, Wed Jul 07, 2021 9:48 pm

Shift can be used to adjust an indicator forward or back in time to "better" forecast trends or better fit the candlestick movements of a chart. In MT4, you can use indicators that are equipped with a Shift option to adjust them so that the indicator better aligns with the chart's candlestick Highs or Lows etc.

Shift makes an indicator's lag worse, though. A negative Shift can reduce lag, but it's questionable as I've personally noticed it only looks good historically.

Shift basically moves the value of the Moving Average in time.

For example:

  • The current (forming candle) has a SHIFT value of 0.
  • The previous candlestick before that has a SHIFT value of 1.
  • The candlestick formed before that one has a shift value of 2, and so on.

PS: Shift is also called DMA or Displaced Moving Average.

PPS: Below is an example of a 10-period Moving Average with and without Shift applied.
All files in topic