As discussed...indicator for NT.
1) period of SMA
2) X = minimum number of Bars that price *must *stay the other side of MA
3) Y = maximum number of Bars that price can stay the other side of MA
How and what would you like the indicator plot ?
My suggestion :
SMA is always shown in gray color
after a crossover and while bars >0 but < X, lin...
Skills: mysql, php