when a position is closed to close and a pending order
-
Hello, i tried a lot but i don't understand how to do that
i want to make a expert advisor, that when are placeing a buy position are placing and a pending sell stop order too, everything fine till here
but in case if this buy position are closed (by me, or by take profit) i want to be closed and this sell stop order too. how can i do that?
is about a specific one position, because i will elaborate this strategy, and in some cases will have 3-4 positions opened, and when a specific one position is closed, i want to close and stop order too
-
There is a light blue block to delete all pending orders. Try have a look.
-
i tryed in different variations like that ...

-
Since you use No Position block, and want to delete all, everything, do you still need to count the trades?
-
I want cancel a specific pending order, when a specific position was closed (by me or by take profit)
My EA are placeing a position with TP and a pending order. In case if this position was closed, i want to be canceled pending order if was not feeled, and to place other one position in same conditions
-
If closed by you you can just push the x in your terminal. On the on trade tab, trade closed (purple block) - close/delete will delete if trade action has happened