Detect if a condition happened within last 5 bars
Posted: Thu May 16, 2024 5:00 am
We are attempting to develop a script that basically
says : If there was a RSI(C,2) cross of 25 level within the last 5 bars,
continue to conditions 2.
I have been attempting this with the BACKSET
command which compiles but does generate
any signals and shows NaN in the event window.
Any suggestions?
Thanks
says : If there was a RSI(C,2) cross of 25 level within the last 5 bars,
continue to conditions 2.
I have been attempting this with the BACKSET
command which compiles but does generate
any signals and shows NaN in the event window.
Any suggestions?
Thanks