Trade should be opened and a 4 pip stop loss entered. The stop loss order looks fine, but for some reason it gets cancelled right after it's created, if you look at the 'time' value, it's almost like it happens before the trade as the trade happes at 14:59:46, but the order gets placed and cancelled at 14:59:45.
I tried changing order type from Day to Gtc and also tried disabling the Break at EOD all without success. I think cleared all the cache/db for NinjaTrader thinking it was some bad data, but same thing happens each time.
orderId='NT-00073-184' account='Backtest' name='long' orderState=Submitted instrument='ES 06-23' orderAction=Buy orderType='Market' limitPrice=0 stopPrice=0 quantity=1 tif=Day oco='' filled=0 averageFillPrice=0 onBehalfOf='' id=-1 time='2023-05-15 14:59:46' gtd='2099-12-01' statementDate='2023-05-20' orderId='NT-00073-184' account='Backtest' name='long' orderState=Accepted instrument='ES 06-23' orderAction=Buy orderType='Market' limitPrice=0 stopPrice=0 quantity=1 tif=Day oco='' filled=0 averageFillPrice=0 onBehalfOf='' id=-1 time='2023-05-15 14:59:46' gtd='2099-12-01' statementDate='2023-05-20' orderId='NT-00073-184' account='Backtest' name='long' orderState=Working instrument='ES 06-23' orderAction=Buy orderType='Market' limitPrice=0 stopPrice=0 quantity=1 tif=Day oco='' filled=0 averageFillPrice=0 onBehalfOf='' id=-1 time='2023-05-15 14:59:46' gtd='2099-12-01' statementDate='2023-05-20' Trade: orderId='NT-00073-184' account='Backtest' name='long' orderState=Working instrument='ES 06-23' orderAction=Buy orderType='Market' limitPrice=0 stopPrice=0 quantity=1 tif=Day oco='' filled=0 averageFillPrice=0 onBehalfOf='' id=-1 time='2023-05-15 14:59:46' gtd='2099-12-01' statementDate='2023-05-20' orderId='NT-00074-184' account='Backtest' name='Stop loss' orderState=Submitted instrument='ES 06-23' orderAction=Sell orderType='Stop Market' limitPrice=0 stopPrice=4148 quantity=1 tif=Day oco='NT-00044-184' filled=0 averageFillPrice=0 onBehalfOf='' id=-1 time='2023-05-15 14:59:45' gtd='2099-12-01' statementDate='2023-05-20' orderId='NT-00074-184' account='Backtest' name='Stop loss' orderState=Accepted instrument='ES 06-23' orderAction=Sell orderType='Stop Market' limitPrice=0 stopPrice=4148 quantity=1 tif=Day oco='NT-00044-184' filled=0 averageFillPrice=0 onBehalfOf='' id=-1 time='2023-05-15 14:59:45' gtd='2099-12-01' statementDate='2023-05-20' orderId='NT-00074-184' account='Backtest' name='Stop loss' orderState=Working instrument='ES 06-23' orderAction=Sell orderType='Stop Market' limitPrice=0 stopPrice=4148 quantity=1 tif=Day oco='NT-00044-184' filled=0 averageFillPrice=0 onBehalfOf='' id=-1 time='2023-05-15 14:59:45' gtd='2099-12-01' statementDate='2023-05-20' orderId='NT-00075-184' account='Backtest' name='Profit target' orderState=Submitted instrument='ES 06-23' orderAction=Sell orderType='Limit' limitPrice=4169 stopPrice=0 quantity=1 tif=Day oco='NT-00044-184' filled=0 averageFillPrice=0 onBehalfOf='' id=-1 time='2023-05-15 14:59:45' gtd='2099-12-01' statementDate='2023-05-20' orderId='NT-00075-184' account='Backtest' name='Profit target' orderState=Accepted instrument='ES 06-23' orderAction=Sell orderType='Limit' limitPrice=4169 stopPrice=0 quantity=1 tif=Day oco='NT-00044-184' filled=0 averageFillPrice=0 onBehalfOf='' id=-1 time='2023-05-15 14:59:45' gtd='2099-12-01' statementDate='2023-05-20' orderId='NT-00075-184' account='Backtest' name='Profit target' orderState=Working instrument='ES 06-23' orderAction=Sell orderType='Limit' limitPrice=4169 stopPrice=0 quantity=1 tif=Day oco='NT-00044-184' filled=0 averageFillPrice=0 onBehalfOf='' id=-1 time='2023-05-15 14:59:45' gtd='2099-12-01' statementDate='2023-05-20' orderId='NT-00073-184' account='Backtest' name='long' orderState=Filled instrument='ES 06-23' orderAction=Buy orderType='Market' limitPrice=0 stopPrice=0 quantity=1 tif=Day oco='' filled=1 averageFillPrice=4149 onBehalfOf='' id=-1 time='2023-05-15 14:59:46' gtd='2099-12-01' statementDate='2023-05-20' orderId='NT-00074-184' account='Backtest' name='Stop loss' orderState=CancelPending instrument='ES 06-23' orderAction=Sell orderType='Stop Market' limitPrice=0 stopPrice=4148 quantity=1 tif=Day oco='NT-00044-184' filled=0 averageFillPrice=0 onBehalfOf='' id=-1 time='2023-05-15 14:59:45' gtd='2099-12-01' statementDate='2023-05-20' orderId='NT-00074-184' account='Backtest' name='Stop loss' orderState=CancelSubmitted instrument='ES 06-23' orderAction=Sell orderType='Stop Market' limitPrice=0 stopPrice=4148 quantity=1 tif=Day oco='NT-00044-184' filled=0 averageFillPrice=0 onBehalfOf='' id=-1 time='2023-05-15 14:59:45' gtd='2099-12-01' statementDate='2023-05-20' orderId='NT-00074-184' account='Backtest' name='Stop loss' orderState=Cancelled instrument='ES 06-23' orderAction=Sell orderType='Stop Market' limitPrice=0 stopPrice=4148 quantity=1 tif=Day oco='NT-00044-184' filled=0 averageFillPrice=0 onBehalfOf='' id=-1 time='2023-05-15 14:59:45' gtd='2099-12-01' statementDate='2023-05-20' orderId='NT-00075-184' account='Backtest' name='Profit target' orderState=CancelPending instrument='ES 06-23' orderAction=Sell orderType='Limit' limitPrice=4169 stopPrice=0 quantity=1 tif=Day oco='NT-00044-184' filled=0 averageFillPrice=0 onBehalfOf='' id=-1 time='2023-05-15 14:59:45' gtd='2099-12-01' statementDate='2023-05-20' orderId='NT-00075-184' account='Backtest' name='Profit target' orderState=CancelSubmitted instrument='ES 06-23' orderAction=Sell orderType='Limit' limitPrice=4169 stopPrice=0 quantity=1 tif=Day oco='NT-00044-184' filled=0 averageFillPrice=0 onBehalfOf='' id=-1 time='2023-05-15 14:59:45' gtd='2099-12-01' statementDate='2023-05-20' orderId='NT-00075-184' account='Backtest' name='Profit target' orderState=Cancelled instrument='ES 06-23' orderAction=Sell orderType='Limit' limitPrice=4169 stopPrice=0 quantity=1 tif=Day oco='NT-00044-184' filled=0 averageFillPrice=0 onBehalfOf='' id=-1 time='2023-05-15 14:59:45' gtd='2099-12-01' statementDate='2023-05-20' orderId='NT-00076-184' account='Backtest' name='Exit on session close' orderState=Submitted instrument='ES 06-23' orderAction=Sell orderType='Market' limitPrice=0 stopPrice=0 quantity=1 tif=Gtc oco='' filled=0 averageFillPrice=0 onBehalfOf='' id=-1 time='2023-05-16 15:59:59' gtd='2099-12-01' statementDate='2023-05-20' orderId='NT-00076-184' account='Backtest' name='Exit on session close' orderState=Accepted instrument='ES 06-23' orderAction=Sell orderType='Market' limitPrice=0 stopPrice=0 quantity=1 tif=Gtc oco='' filled=0 averageFillPrice=0 onBehalfOf='' id=-1 time='2023-05-16 15:59:59' gtd='2099-12-01' statementDate='2023-05-20' orderId='NT-00076-184' account='Backtest' name='Exit on session close' orderState=Working instrument='ES 06-23' orderAction=Sell orderType='Market' limitPrice=0 stopPrice=0 quantity=1 tif=Gtc oco='' filled=0 averageFillPrice=0 onBehalfOf='' id=-1 time='2023-05-16 15:59:59' gtd='2099-12-01' statementDate='2023-05-20' orderId='NT-00076-184' account='Backtest' name='Exit on session close' orderState=Filled instrument='ES 06-23' orderAction=Sell orderType='Market' limitPrice=0 stopPrice=0 quantity=1 tif=Gtc oco='' filled=1 averageFillPrice=4127.5 onBehalfOf='' id=-1 time='2023-05-16 15:59:59' gtd='2099-12-01' statementDate='2023-05-20'
Comment