account.ExecutionUpdate += OnExecutionUpdate;
protected override void OnExecutionUpdate(Execution execution, string executionId, double price, int quantity, MarketPosition marketPosition, string orderId, DateTime time) { .. }
However, if I instead use this function in my Strategy:
private void OnExecutionUpdate(object sender, ExecutionEventArgs e)
Boom works. But the problem is this function is not helpful at all.
The order IDs returned do not match that used in my AtmStrategyCreate call.
I am growing increasingly frustrated with the disjointedness of the documentation. I have no idea why there are two OnExecutionUpdate methods, and I am forced to use the one that won't provide the info I need.
Appreciate any guide here. I basically am using SampleAtmStrategy as my template but I want to immediately change stop and TP as soon as the entry enters market.

Comment