I printed my order before submitting it.
if (MarketPosition.Flat == Position.MarketPosition && entryOrder == null && BarsInProgress == 0)
{
Print("EnterShortStopLimit " + nNumberOfContracts +" " + DEV1[0] + " " + (DEV1[0] + nStopLoss * TickSize) + " MyEntry");
EnterShortStopLimit(nNumberOfContracts, DEV1[0], DEV1[0] + nStopLoss * TickSize, "MyEntry");
}
My limit order is 8827 on the output box is
but the order on the screen is 8832
The second issue :
Minute 1 the order is placed.
Minute 2 order cancels out
Minute 3 the order is placed again.
This is the continuous cycle.
.
Comment