Hi,
Hope someone can assist/clarify this.
When in a trade I use this code (on 5”DAX) to move my initial SL after my condition is valid.
if longonmarket and close>C2+C3 then
set stop ploss (c3* 0.5)
I found that the stoploss is only moved/replaced AFTER the close of the 5” bar.
For example:
The condition to move the stoploss is valid at 14:21:34, but the initial stoploss is only cancelled/moved to new SL at 14:25:00 (I can see this in the order window).
Even worse: When the condition to move the SL is valid, but the bar closes below the condition…then the SL is not moved at all…..
My intention is to move the stoploss directly at 14:21:34 (when the condition is valid). At the moment it only moves the SL to its new level when the conditions are still valid at the close of the bar
Why is the stoploss not replaced at 14:21:34 but only after the close of the bar?
And thus, why is the SL not replaced at all when the condition was valid, but the close of the bar is lower than the set condition?
Am I doing something wrong or is this a feature/bug in PRT?
Also tested this live on demo in IG: same problem.
Thanks in advance for any help.