Easy reading of moving average price action without annoying moving average whipsaws due of volatility, this indicator simply draws “stair step” within defined point/pip treshold value (Step).
As an example, this indicator only make use of SMA and could be easily adapt by anyone 🙂
There are different approach to trade this indi : other moving average crossover or simple price breakout of the line, use it as you would, enjoy.
//parameters :
// Step = 0.0010 forex 10 pips, adapt to item you are trading
// MAperiod = 20
once ssMA = close
MA = average[MAperiod](close)
if(MA > ssMA + Step) THEN
ssMA = MA
ELSIF (MA < ssMA - Step) THEN
ssMA = MA
ELSE
ssMA = ssMA
ENDIF
RETURN ssMA