Move SL once a certain % of TP is reached
-
Hello guys,
i am kind of struggling (not seein the issue) with the task to move the SL to a certain % of the Tp once the trade is a certain percentage away from the TP.
My part looks like this:
https://fxdreema.com/shared/89MMYmEMc
the breakeven function works fine but the SL isn't moved any ideas?
Thanks for your help!
-
@bk7 It depends on how many open trades right now are being considered. Your target conditions can apply at the same time to all of them. This is why the structure can be trying to do it at the same time.
-
@l-andorrà
thank you for your answer!normally it loops through target1 then 2 3 and so.
I think the issue is somewhere with the modify stops conditions i dont know, maybe someone else has a plan how to do it fast and easy.I did setup something complicated and will have a look if this works....
-
@bk7 Looking at those custom code blocks I'm afraid I cannot help.
I'm not a programmer so I don't understand what they do. -
hahah don't worry, its not that complicated, but it actually does what it should do.
However i think it is a bit slow but working anyways...