My questions is... can you work oco into this in order to avoid CancelOrders()? Does inputting the EntrySignal string do it?
My stop and profit targets are pretty straight forward but I am getting some slippage on calculating stop and profit prices using SetStopLoss(). Therefore, handling this in OnExecution will expose the avgfillprice to make sure these calculation are correct. It appears in OnBarUpdate() avgfillprice is not available within the same bar as the order is submitted.
Thanks

Comment