Modify STOPS-Trail by condition
-
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
-
this version worked well, but sometimes got invalid stops modifications and the signals after next bull/bear candle are not fixed on the way that must be
-
@uriel-0 Apparentñy that is a limitation of your broker. You are requestin a SL move that is too close to current price according to your broker's rules. You should ask them what is the minimum accepted distance for a SL to be moved.
-
@l-andorrà I'm not sure about this, because not using "once per bar", it modifies stops but on a bad time-moment, because it doesn't wait until close
-
@uriel-0 @l-andorrà is likely correct and it's your broker SL distance causing the problems, put this https://fxdreema.com/shared/GSxg4EXie in your project and it should tell you the minimum SL points distance for the asset your on.
-
@jstap well, I verify it on backtest and demo, and happen the same, I'm not sure about it. I thought that was the reference price "ask for buys, bid for sells"
This was the only similar post that I found about
https://fxdreema.com/forum/topic/4030/Stop-Loss-on-Buy-Stop-Order/2
-
Mmmmmm "modify stops" block, sometimes modity TP , even if it is not requested, put it on 00.00 , this is new (?) Bug
-
@uriel-0 I have never noticed the opposite stop being modified is switched off.
-
@jstap any idea to modify SL on the correctly way and on the correct candle?

Without TP bug haha -
@uriel-0 If you are talking about the SL of a currently running trade, as long as you know the candle ID and whether it's high, low, open or close then modifying the stop's to this level is straight forward, broker stipulations dependant.
-
the problem is you are trying to modify sl immediatly to open price. this can cause trade to be closed if hit
-
@youngtreptrader any idea to make it without problem? Or any alternative that works similar?
-
if u can please show an example of a few trades. i can understad ur strategy