protected override void OnExecution(IExecution execution)
{
if (execution.Order != null && _yEntryOrder == execution.Order &&
execution.Order.OrderState == OrderState.Working)
{
Print(execution.ToString() + "\t\tOrder working.");
}
}
On the other hand, if I used the OnOrderUpdate method to detect any working orders, like this:
protected override void OnOrderUpdate(IOrder order)
{
if (_yEntryOrder != null && _yEntryOrder == order &&
_yEntryOrder.OrderState == OrderState.Working)
{
Print("Order working.");
}
}
Thanks!

Comment