- Cancel the original target.
- In the OnOrderUpdate, I added my new target once the cancellation was confirmed.
- Then received the following Trace Order message: "Ignored PlaceOrder...Reason= There already is a matching, terminal exit orderin place
The order cancellation was confirmed in the trace order message, so I know there is no matching order. Unless it is just a timing thing with OnExection. Could this be because the new target was added in the OnOrderUpdate event, instead of the OnExecution event?
My original target was entered in the OnExecution event as per the samples, but I put the code to add the replacement target in the OnOrderUpdate because I needed to receive the cancellation confirmation.
If this is the reason for the error, how can I receive the cancellation confirmation, AND place the new target code in OnExecution?

Comment