https://fxdreema.com/shared/NderHfNib
"For each Trade" should be also used, but in this particular case I think we can live without it.
I don't like hedging strategies and I don't even want to think about them, so you can play with the rest. You can catch TP events in "on Trade" or in "on Tick" to check for the count of trades/orders and reach when the count is something meaningful. Let's say that 0 trades and 1 (or more) pending orders means that the orders must be deleted.