if ((iOrderL1 == null || Historical) && iQuantity1 != 0)
iOrderL1 = EnterLongLimit(0, true, iQuantity1, Close[0], sENTRY1L);
Shouldnt the above wait until cancelled for a fill at the Close price from the trigger bar, ie the last bar that closed on BarsArray[0] ??
First attempt today on MBTrading demo gives a fill at same slippage as a strategy running with code that is EnterLong()
Screen attached of the limit order fill
TJ



Comment