Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Guidance

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Guidance

    I have tge following error

    2024-08-09 11:28:36:167|3|4|Error in realtime market data handling: System.NullReferenceException: Object reference not set to an instance of an object.
    at NinjaTrader.NinjaScript.StrategyBase.Process(Objec t sender, ExecutionEventArgs executionUpdate)
    at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
    at NinjaTrader.Cbi.Account.RaiseExecutionUpdate(Execu tionEventArgs e)
    at NinjaTrader.Cbi.Account.ExecutionUpdateCallback(In strument instrument, String executionId, Exchange exchange, DateTime time, MarketPosition marketPosition, String orderId, Int32 quantity, Double price, Double commission, Double fee, Boolean isSod, DateTime statementDate, Operation operation)
    at NinjaTrader.Cbi.Simulator.Fill(Int32 maxFillQuantity, Double price)
    at NinjaTrader.Cbi.Simulator.OnMarketData(Object sender, MarketDataEventArgs e)
    at NinjaTrader.Cbi.Instrument.<>c__DisplayClass153_0. <OnRealtimeDataTimerElapsed>g__Action|1(Subscrib ed Thread[] threads, Int32 i, RealtimeEvents evts)​

    I have studied my OnExecutonUpdate quite hard and can't seem to find what object instance is missing - can anyone point me in the right direction?
    I should add this happens sporadically - so 8/10 code runs fine.

    #2
    Hello Mindset,

    Thank you for your post.

    It looks like you have already posted about this topic and it has received a response: https://forum.ninjatrader.com/forum/ninjatrader-8/strategy-development/1313532-guidance

    We kindly ask that users refrain from posting multiple threads about the same topic as this can impact our team's ability to help users in a timely fashion.

    Thanks for your understanding.

    Comment


      #3
      No I didn't do this - the platform said it had an issue posting ( ie to my mind it did not work) - so I re posted.
      You can tell by the time stamps FYI.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by NullPointStrategies, Today, 05:17 AM
      0 responses
      50 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      126 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      69 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      42 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      46 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X