Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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
    BertrandNinjaTrader Customer Service

    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.
        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by cmtjoancolmenero, Yesterday, 03:58 PM
        9 responses
        35 views
        0 likes
        Last Post cmtjoancolmenero  
        Started by DayTradingDEMON, Today, 09:28 AM
        4 responses
        23 views
        0 likes
        Last Post DayTradingDEMON  
        Started by geddyisodin, Yesterday, 05:20 AM
        9 responses
        50 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by George21, Today, 10:07 AM
        1 response
        15 views
        0 likes
        Last Post NinjaTrader_ChristopherJ  
        Started by Stanfillirenfro, Today, 07:23 AM
        9 responses
        24 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Working...
        X