Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

error message

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

    error message

    I have an indicator that stays on the chart for a minute or two and then goes away printing the following error message

    Error on calling 'OnBarUpdate' method for indicator 'myindicator' on bar 257: Object reference not set to an instance of an object.

    Can someone tell me what this means and how do I go about tracking it down to fix.

    thanks

    #2
    velocity, you would need to add Prints to your code to check where you attempt to access an object that is not set properly with values...

    I'm curious - is this on NT 7 beta?

    There's a fix for the next beta round being worked in, I think in beta 4 you could run into accessing 'invalid' data series values for those not set to 'infinite' as in 6.5

    Comment


      #3
      Yes, I am using NT7 beta 4

      Where would I find code to place in the print command that accesses an object.

      My indicator is using 3 different dataseries (2 same instrument, 1 different instrument) , wonder if that has anything to do with it.

      When I designed it over the weekend, it worked fine using daily dataseries. When the market opened is when the problem occurred.
      Last edited by velocity; 11-30-2009, 11:10 AM.

      Comment


        #4
        velocity, when using dataseries objects, please check / print the index values you attempt accessing to see where you run into this - http://www.ninjatrader-support2.com/...ead.php?t=3418

        For the special NT 7 beta 4 case > you could set your maximum lookback to 'infinite' (as it was per default in 6.5). However this will have a performance impact, so please retest with 256 on the next beta round where this has been addressed.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        637 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        366 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        107 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        569 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        572 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X