how can I access the value "averageFillPrice"?
I have:
protected override void OnExecutionUpdate (Execution execution, string executionId, double price, int quantity, MarketPosition marketPosition, string orderId, DateTime time)
{
// This is the code I used to discover the Stop loss order's name
Print("OOU: order: " + execution.Order);
// Now that I know it is 'Stop loss', I can use this name here
if (execution.Order.Name == "Stop loss")
{
PriceOut = execution.Order.averageFillPrice; // 21599.25 ????
.............
}
}
Falke07

Comment