Trailing profit as MT4 with right-click - EA
-
Hi all,
I'm trying to recreate the same way that the trailing profit does in MT4 but with an EA. I need to automate that because I'm not 100% of my time in front of my screen.
Here my builder : https://fxdreema.com/shared/S34wMxzBb
I have changed the settings to have a kind of 2 decimals for only GOLD (XAUUSD)

I hope that is correct
20 points will be 2 pipsThe way that the MT4 trailing works it's only when the trade is in profit.
If I choose 20 points > if my entry is 1800.00, when the price reaches 1800.20 > it il add an SL after the prices moves 1 point so > Price 1800.21 > SL 1800.01 etcI have done many changes and sometimes, I have an TP, others an SL but I can't reach to trail on MT4 way.
I try to add a Breakeaven and move this BE but it doesn't move.If someone could give me some advices on what I'm doing wrong, It will be wonderfull

Thanks all for your time !
-
I figured to add a stop-loss in Ontrade for N = 1
and added a trailing stop in InTick but the SL keeps changing to the first value of the SLIt's blinking with new value and the first SL.
Is there something wrong on MT4 ?
Here the link if someone has some time to check : https://fxdreema.com/shared/bUluKL5Yc


Thanks all for your help
-
@foudid This is because you have a confliction with the 2 different types of trail, Itsays in the instructions that trail should be in the on tick section.