I've got a simple question about the conditional orders.. How to wait for the bar to close on conditional orders?
for example, my condition is RSI().RSI > 50 .. the condition meets in the middle of the bar and order gets executed, and condition disappears at the closure of the bar.
How do we wait for the bar closure on bar closures? One idea is that RSI().RSI[1] > 50, but the offset [1] is not working well for the other studies.
Thanks!
for example, my condition is RSI().RSI > 50 .. the condition meets in the middle of the bar and order gets executed, and condition disappears at the closure of the bar.
How do we wait for the bar closure on bar closures? One idea is that RSI().RSI[1] > 50, but the offset [1] is not working well for the other studies.
Thanks!