Have such code:
if (Position.MarketPosition == MarketPosition.Flat &&
(Closes[0][0] - X) > 0 &&
(Closes[0][0] - X) > 10*TickSize
)
{
if (BarsInProgress == 0)
EnterShort(5);
if (BarsInProgress == 1)
EnterLong(2);
}
If it is history all is OK:

If it is Demo Love have problem:

It enters not in same time, delay in 1-3 bars of time frame.
Why this can happen?

Comment