Quick question about this trailing stop
-
This is part of an EA that must do the following:
- Move SL to break even once a fixed amount of profit pips is reached. This part is executed correctly.
- From that moment on every new 10 profit pips reached a trailing stop is activated so that it will move the SL 10 pips forward. Example: when 20 pips are reached move the SL from break even to 10 pips forward, when 30 pips are reached move the SL from 10 pips to 20 pips forward and so on. This is what it doesn't do.
I guess I have a wrong configuration for that block. Could someone check it out, please?

-
Hi
I think the Trailing Stop block should not be connected after the Break Event block because the Break Event condition takes place only one time per trade or position. So the Trailing Stop condition will be true just one time after the Break Event's condition had been triggered.
Try to connect both blocks to the true output of the pink block or you can try what is explained here
https://fxdreema.com/help/working-with/trailing-stop
Good luck
-
You're right. I followed the example and it works fine now. Thank you very much.
-
Glad to help you!!!
-
I revisited this thread to check the solution suggested to my initial problem and it seems the example link by josecortesllobat is wrong: no trailing stop solution is included there. Could you please confirm it?
-
I think that showing an image will be easier to explain my problem. This is what I want:
- Once the price reaches a profit of 20 pips, move SL to Break Even. Only then...
- Activate a trailing-stop so that every new 10 profit pips the SL also moves 10 pips forward. This means that the trailing-stop will begin to move only when a 30 pips profit has been acheived.
This how I configured the blocks, but only point 1 works correctly.

Any hint why the trailing stop is not working?
-
Hi I'm newbie, but I think you can make a new for each trade block, and make the first pink block a connection to the block of break even trade and the second pink block with the same conditions, conected to the break even block, that make two different logical trees, but I think it can solve your problem
-
Hi Cartujin,
Firstly, thank you for your suggestion. However, I'm not sure having two different logic trees would solve it. Why separating them when both must be under a 'For each trade' Block? I'm afraid I don't understand the logic behind that. Could you please explain a bit more? -
Sorry I was wrong, but maybe this can help you