I'm trying to enter a short trade only if a fast period SMA has been below the slow period SMA for, say, the last 50 bars in a row
i.e. CrossAbove((Close,SMAFast),(Close,SMASlow),50,0)= false
But I can't work out how to write this formula because you cannot use "=false" !!
Any ideas would be greatly appreciated.
I'm trying not to write it in this way below, because I want to be able to vary the bars in a row value
SMA Fast[0]< SMA Slow[0]
SMA Fast[1]< SMA Slow[1]
SMA Fast[2]< SMA Slow[2]
.........
SMA Fast[50]< SMA Slow[50]
Thanks
STeve
Comment