These two statements return different number of entries (totally different), why these two are not equivalent?
Statement 1 is just the CrossAbove function.
Statement 2 says if:
close one period ago is under the SMA one period ago
AND
current close is greater than current sma
Statement 1:
CrossAbove(Closes[2][0],SMA(BarsArray[2],15),1)
Statement 2:
Closes[2][1] < SMA(BarsArray[2],15)[1] &&
Closes[2][0] > SMA(BarsArray[2],15)[0]
Thanks,
Comment