I had a trading error today due to an oddness of a fill I received in the OnExecution event. I maintain a dictionary of IOrders and match that dictionary's keys (orderName) with the execution.Order.Name that comes back from the exchange as a fill. I also write the name of the execution to the log:
I received 3 fills today. Their Order.Name properties were:
side2Order2
side2Order5
External
I'm not sure what an execution.Order.Name of 'External' represents. The signalName for the SubmitOrder method used for this order was "Order1", it seems like the execution for this fill should have printed out "Order1". Can someone enlighten me? I'm using PatsSystems. I'm also using Unmanaged = true.
Essentially what does External mean when it comes back in the execution??

Comment