How to move stop loss based on percentages?
-
How would i add a feature that my EA moves my SL to break even when price is 50% towards my TP.
Then when price is within my 75% to my TP my SL moves to 40% position
-
If you want to quickly try it with particular pips levels, try this:

Otherwise something like this:
https://fxdreema.com/shared/j8353dHqc -
Thank you that was very helpful, i'm going to go with the shared project version, do I keep those blocks "On Tick" or do I put them "On Trade"
-
@gtoat777 Al trailing stop blocks need to be used on the 'on tick' tab all the time. Otherwise price info will not be updated.
-
https://fxdreema.com/shared/nZvDGoTQc Should block 10 be connected the way it is or should it be linked to block 7?
-
@l-andorrà https://fxdreema.com/shared/OSbjv7h7c I tested it live, block 6, 7 and 8 work fine but when blocks 9,10 and 11 were meant to initiate it glitched and kept flicking back and both between block 7s SL and block 10s SL, ultimately it kept staying with 7s SL and wouldnt make the new adjustment
-
@gtoat777 You need to to stop each percentage level branch once it is reached in order to avoid that problem. Once 50% is reached, you should use a 'turned off blocks' block pointing at the 'for each trade block ID on top. Same for each branch. Then you will need to turned them on again as soon as the trade is closed via 'on trade' tab. I hope it helps.
-
@l-andorrà https://fxdreema.com/shared/HP2YxOzXc do you mean like this?
-
@gtoat777 Not exactly. Block should be connected below blocks 8 only and then insert block 6 within it. Then repeating it with the other branches.
-
I understand putting it below block 8 but i dont understand where you said put block 6 within it
-
@gtoat777 Just open the block and type it inside it.
-
@l-andorrà I understand putting it below block 8 but i dont understand where you said put block 6 within it
-
@l-andorrà https://fxdreema.com/shared/bPsUcywgd Like this?
-
@gtoat777 Exactly. And then you use these on the 'on trade' tab:

-
@l-andorrà Thank you, n second thought ive realized shouldnt i connect block 15 to block 9 and connect block 16 to block 12 because doing it how it currently is block 15 will turn off my SL before it has initiated blocks 10 and 16, so i should have it turn off block 9 only once its ready to trigger block 16. Does that make sense?
-
@gtoat777 Correct. You need to hold each treeunconnected to each other. Otherwise the Ea will not be able to know when a specific % is to be applied.