I need to cancel stop orders that haven't been filled with 1 week of expiration.
My code to create that order is:
SubmitOrderUnmanaged(0, OrderAction.Sell, OrderTyp e.StopMarket, execution.Order.Filled, 0, execution .Order.AverageFillPrice - StopDistance * TickSize, oco, "StopLossLong");
How can I cancel that order when isn't filled yet?
Some sample code please?
Thank you so much
Comment