Close all when trailing stop is hit
-
Hi,
I am trying to get the trailing stop to work like this. If I have several sell orders open and trailing stop is activated and hit on one of this orders, I would like it to close all orders that are open in the same sort ( in this example sells)Is this possible? I cant seem to find out how to do it

Thank you -
@garded yes I think it's possible. On the on trade tab you have a special event trade closed.
The type of closure would be SL.
Than you might check if that order was in profit maybe, but that's up to you.
Finally make a for each trade loop and then close block. -
Thank you so much @trader.philipps for pointing me in the right direction
The block`s was - Trade Closed (and choose, by StopLoss) - For Each Trade (Loop) and Close Trades. Make one for sell and one for Buy and viola...
With the Trade SL Modifed block, it closed all there also, but it closed as soon as it activated the SL, not when SL was actually taken out. So when TrailingStop was used it never got the chance to trail as it closed as soon as it was initiated.
Thank You

-
What do you mean by 'when SL was actually taken out'? Are all trade having different TS or are all of them sharing it the same TS?
-
@l-andorrĂ I think he means that the way he did it before the trailing never had a chance to happen. Just a rough guess.