thank you for helping, when I try and add the UPDATEONCLOSE command I get an error.
I tried many different ways but cannot solve it, would you know what this is about?
Ive attached a screenshot
SCREENERS run live, so to scan for candles already closed, all you need is to use a reference to to the previous value with [1], such as close[1], Rsi[14](close[1]) etc…