Pending for each new sell or buy
-
Hello guys! I want to create for each new sell or buy order a pending order instead of Stop Loss and after hit a Take profit to close all orders and pendings. I tried different ways but i can't get exactly what i want. Or are opened to many pendings and i don't why or don't open pendings always. I don't get it. I will attach a visual explanation of how i want to work.

-
This is the closest variant to what i want. But doesn't open always pendings or open wrong pending sometimes and not where i want to open.
https://fxdreema.com/shared/UhSjwTJ8 -
Because you placed the pending order blocks behind the Buy now block.
Those block behind the Buy now block only get executed if the buy now block is executed succesfully.
you need a seperate leg for the peding order logic -
@lucivuur https://fxdreema.com/shared/VF2qb9T2d
In this form when a sell/buy is opened, is opened a pending order too. But the problem is when the pending order is activated, the second pending order that should be open, doesn't open. -
@andrew-b I recommend you to move all pending order structures to the 'on trade' tab. That way they will not be conditioned by the 'on tick' behaviour.
-
@l-andorrà Don't look like second pending order open. But now first pending order opens 10000 pending orders not just 1 how it should. I struggle for few days already, I tried multiple variants for what i want but i can't figure it out to work as i want. You have any suggestion of structures i should do for this to work?