Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Need some help

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

    Need some help

    189: error System.NullReferenceException: Object reference not set to an instance of an object.
    at NinjaTrader.Data.DataSeries.get_Item(Int32 barsAgo)
    at NinjaTrader.Indicator.IndicatorBase.get_Item(Int32 barsAgo)
    at NinjaTrader.Strategy.SignalBars.OnBarUpdate()

    I got this error. Can someone help me on this?

    #2
    Hello,

    I would be happy to take a look.

    From the error it seems that this may be caused by a DataSeries not being set at Initialize but I could be wrong. Without seeing any code it is hard to say what may be causing it to throw the error.

    Can you please post the section of code where you are getting this error? If you do not wish to post the code publicly then please email me at platformsupport[@]ninjatrader.com and include ticket # 1104242 in the subject.

    Please let me know if I may be of additional assistance.

    Comment


      #3
      Thanks for the reply Jesse. I already found the cause of the error. I forgot to initialize the DataSeries that is being used in the OnBarUpdate.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      671 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      379 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      111 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      575 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      582 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X