Help for Trailing Stop
-
Good morning, I need your help I have to set a stop loss equal to 3% of the balance, and when the price goes positive, it should move the stop loss to the nearest fractal: fractal up if it's a SELL, and fractal down if it's a BUY. can you help me?
-
First, get the fractal moving a line to the fractal, and then when SL is < or >the open, check if the fractal is < or > the open, then move SL to fractal and keep moving if new is < or > the current SL. Set up a project doing 1 bit, then when working, move on to the next, then add it all together.
-
@jstap Thanks for the reply, kindly could you give me an example on how to create this control?, I used the custom price level on the buy or sell, but the stop loss line does not come out in display. Am I doing something wrong?
-
Is a little to get it working, make a start, if not working add a shared link and say what you are trying to do. I will help but not create the Whole EA. Bink blocks: for each trade - conditions - modify stops will move the stop, above the trail block check if SL is still at a loss to move
-
@jstap said in Help for Trailing Stop:
È un po 'per farlo funzionare, fare un inizio, se non funziona aggiungere un link condiviso e dire cosa si sta cercando di fare. Aiuterò ma non creerò l'intero EA. Blocchi Bink: per ogni operazione - condizioni - modifica si ferma sposterà lo stop, sopra il blocco del sentiero controlla se SL è ancora in perdita per muoversi
this is the condition :

-
Fractals only appear on ID 2 or 3, but you need to record this value every time one appears, that way you know its value. I think you need to place it initially at a set point, then trail until is level with open, then start to move with fractal. This is why I said to start with drawing a line.
-
@jstap ok ty i try.
-
This https://fxdreema.com/shared/QpwznbiF will save the value into a global variable, it has to run on the chart until the fractal appears but, you can use this value to place/move the stop