Using Limit orders to scale out partial profit implies that I must cancel these limit orders if the base trade goes to stoploss.
I checked OnTrade() and OnTradeTransaction() but did not get any wiser. Constantly monitoring the "base" trade seems an awkward way of doing it.
Agree, not trivial. I think I will save the ticket number for the "Base" transaction in the comment section of the limit out order(s). The time between an actual SL of the base order
and coming close to the limit out order(s) gives me time to check my current limit orders and check if the base order still is alive, I have a timing routine for 1 minute. And if I am late on some occasion
that can be handled. There should never be a position for an order containing a ticket number. Just kill it if it appears
Love your comment in the post you linked to:
"Dont religiously believe what a computer tells you" :-)