I have a strategy that generate a daily stop order that at times did not get hit. I need to delete that stop order the following day. Is this the correct way to do so:
if (Bars.BarsSinceNewTradingDay ==1) { if (Position.MarketPosition == MarketPosition.Flat){ if(longOrder !=null) { CancelOrder(longOrder); longOrder = null; } } }
Comment