Hi, I have struggling to make that this function works well, and it does... but sometimes simply it cannot be modified on a good way.
I'm triying to do this: E.G. (for buys) Trade is opened----> candle 1 closes > candle 2 ... then SL is moved at open trade price. Great. It does with "once per bar", the problem is that sometimes it put an invalid SL (because once per bar wait until candle 0 is closed, and when it tries to modified SL, is too late),
and the other way (no once per bar), modify SL but at the moment that candle is above than the last, and the condition is wrong. I have tried of thounsand ways and nothing haha. Maybe is not possible... (?)
Practically on this example, the SL must be modified at trade Open price...(Sell limit level) but just after candle closes... this is without once per bar block.
Once per bar works well, except that sometimes SL is invalid...


I let you this version (that continues working wrong), but lets focus on SL modification, just to it can help to others
https://fxdreema.com/shared/NNHA9z0hb I know, trailing and modify stops blocks make the same actually, if you can see blocks off, is because i was experimenting, but same results. I have moved this (0) and (1) , that with logical must be (1) and (2) (on this way works well with once per bar block), but continues with invalid SL...
I have tried even putting on once per bar block, pass 10 times but same. And using the "modify stops" gray circle option that means "if fatal error happened" but looks that yes respects the "modify stops" got modified SL succesfully (I saw by arrows) but this option didn't work neither








