Can anyone please explain why I am getting an early fill.
I have a short position with an exit order, on stop, at a specific stop price. I have a trailing stop. The position is closing early, before the trailing stop is hit.
High[0]) = 1137.7
OnOrderUpdate():
stopOrder = Order='NT-00001/Backtest' Name='ShortStop' State=Working Instrument='TF 09-14' Action=BuyToCover Limit price=0 Stop price=1137.9 Quantity=1 Strategy='PB_TrailStopStrategy' Type=Stop Tif=Day Oco='' Filled=0 Fill price=0 Token='ff1a8cffecf747dabac858420773bdd6' Gtd='12/1/2099 12:00:00 AM'
Notice that the above clearly states the
State = Working
Stop Price = 1137.9
OnOrderUpdate():
stopOrder = Order='NT-00001/Backtest' Name='ShortStop' State=Filled Instrument='TF 09-14' Action=BuyToCover Limit price=0 Stop price=1137.9 Quantity=1 Strategy='PB_TrailStopStrategy' Type=Stop Tif=Day Oco='' Filled=1 Fill price=1137.9 Token='ff1a8cffecf747dabac858420773bdd6' Gtd='12/1/2099 12:00:00 AM'
Notice that the above clearly states the
State = Filled !!!!!!!!!!!!!!!!!!!!
Stop Price = 1137.9
Fill Price = 1137.9
OnExecution(): stopOrder 3 = Order='NT-00001/Backtest' Name='ShortStop' State=Filled Instrument='TF 09-14' Action=BuyToCover Limit price=0 Stop price=1137.9 Quantity=1 Strategy='PB_TrailStopStrategy' Type=Stop Tif=Day Oco='' Filled=1 Fill price=1137.9 Token='ff1a8cffecf747dabac858420773bdd6' Gtd='12/1/2099 12:00:00 AM'
Why am I getting a fill at 1137.9 when the current high is 1137.7 (short position). Does this have anything to do with the slippage being set to 2 ticks?

Comment