I know indicators can be reference like SMA(20)[2] to find the value 2 bars ago. But I have problem applying it to indicator crossovers.
I tried:
if (CrossAbove(T3(1, 2)[2].Plot1, T3(1, 4)[2].Plot1, 1))
if (CrossAbove(T3(1, 2).Plot1[2], T3(1, 4).Plot1[2], 1))
if (CrossAbove(T3(1, 2).Plot1, T3(1, 4).Plot1, 1)[2])
All returned with syntax error, what's the method to program it?
Thanks in advance.
Comment