Guys need help with how to cancel the EnterLongLimit order when the price has moved 3 ticks up from close[0].
Close[0] + 3 * TickSize - seems not to work or do I need to use Calculate.OnEachTick instead of OnBarClose?
if (entryOrder == null) { EnterLongLimit(0, true, 1, Close[0] - 1 * TickSize, "long entry"); } else if (Price has moved 3 ticks up from close[0]) { CancelOrder(entryOrder); }
Comment