What am I missing here? Can't figure out why this creates a drastic slow down.
if ( Position.MarketPosition == MarketPosition.Long && BarsSinceEntryExecution(0,"LongEntry",0) >= 2 //test this period && Closes[1][0] > exPriceLong + (ticksOverEntry2*TickSize)) { CancelOrder(stopOrderLong1a); stopOrderLong1b = ExitLongStopMarket(1, true, (lotLong*2), stopLong1b,"StopExitLong1b", "LongEntry"); }
Comment