On output shows the next:
12/02/2024 18:56:00: OnOrderUpdate. orderId='NT-00000-1699' account='Backtest' name='MyBuyMar****rder' orderState=Submitted instrument='NQ 03-24' orderAction=Buy orderType='Market' limitPrice=0 stopPrice=0 quantity=1 tif=Gtc oco='' filled=0 averageFillPrice=0 onBehalfOf='' id=-1 time='2024-02-12 18:56:00' gtd='2099-12-01' statementDate='2024-02-20' error: NoError
12/02/2024 18:56:00: OnOrderUpdate. orderId='NT-00000-1699' account='Backtest' name='MyBuyMar****rder' orderState=Accepted instrument='NQ 03-24' orderAction=Buy orderType='Market' limitPrice=0 stopPrice=0 quantity=1 tif=Gtc oco='' filled=0 averageFillPrice=0 onBehalfOf='' id=-1 time='2024-02-12 18:56:00' gtd='2099-12-01' statementDate='2024-02-20' error: NoError
12/02/2024 18:56:00: OnOrderUpdate. orderId='NT-00000-1699' account='Backtest' name='MyBuyMar****rder' orderState=Working instrument='NQ 03-24' orderAction=Buy orderType='Market' limitPrice=0 stopPrice=0 quantity=1 tif=Gtc oco='' filled=0 averageFillPrice=0 onBehalfOf='' id=-1 time='2024-02-12 18:56:00' gtd='2099-12-01' statementDate='2024-02-20' error: NoError
12/02/2024 18:56:00: OnOrderUpdate. orderId='NT-00000-1699' account='Backtest' name='MyBuyMar****rder' orderState=Filled instrument='NQ 03-24' orderAction=Buy orderType='Market' limitPrice=0 stopPrice=0 quantity=1 tif=Gtc oco='' filled=1 averageFillPrice=18099 onBehalfOf='' id=-1 time='2024-02-12 18:56:00' gtd='2099-12-01' statementDate='2024-02-20' error: NoError
Strategy 'Strategy/-1': Error on calling 'OnOrderUpdate' method on bar 567: Object reference not set to an instance of an object.
It seems the problem is inside OnOrderUpdate method, what i should check or look? I can't see the exact line where the error is throwing.
Comment