Hi
How do tell prorealtime to wait for 5 candles and then check the conditions? I have a condition that needs to be met and then the price must stay above a MA for the next 5 candles. If I use the code below, it will look at 5 candles back from where the flag condition was met.
c2 = close[5] > indicator3 and close[4] > indicator3 and close[3] > indicator3 and close[2] > indicator3 and close[1] > indicator3
You code sounds correct. The same result can be achieved with
c2 = (summation[5](close[1] > indicator3) = 5)