2020-12-14 15:13:54:327 (Conexión de reproducción) Cbi.Account.OrderUpdateCallback: realOrderState=Rejected orderId='xxxx' account='Playback101' name='SE' orderState=Rejected instrument='NQ 12-20' orderAction=SellShort limitPrice=0 stopPrice=11949.5 quantity=1 orderType='Stop Market' filled=0 averageFillPrice=0 time='2020-11-23 00:31:23' statementDate='2020-11-23' error=OrderRejected comment='Sell stop or sell stop limit orders can't be placed above the market.' nr=2
OnBarUpdate:
if ( (CrossBelow(x, a, 1))
&& (z< y && Position.Quantity == 0)
{
SetStopLoss(CalculationMode.Price, (buyEntryprice+20));
EnterShortStopMarket(0, true, Convert.ToInt32(DefaultQuantity),sellEntryprice, "SE");
}
the strange thing is that the error happens when the replay is at 1000x and not when it is done at 1x. What am I missing here?
Comment