Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Ninjatrader Bug disfunctioning

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

    Ninjatrader Bug disfunctioning

    Hello Support Team ,

    Ninjatrader Bug occuring on Indicators which worked a day ago:

    05.05.2011 16:36:42 Default Failed to call method 'Initialize' for indicator 'MyCustomIndicator': Die Datei "c:\MyTextFile.txt" konnte nicht gefunden werden.
    05.05.2011 16:36:36 Default Error on calling 'OnBarUpdate' method for indicator 'MetisVolaSqueeze' on bar 0: You are accessing an index with a value that is invalid since its out of range. I.E. accessing a series [barsAgo] with a value of 5 when there are only 4 bars on the chart.


    The thing is that it is calling these errors on indicators that have worked fine in yesterday.
    Even though this error was reported in the forums before there is no solution posted.

    I hope there is a appropriate fixing for this since unexplainable errors really discredit ninjatrader as a development platform.


    p.s. yes i tryed a currentbar > 200 check the maximum history required for the indicators is 10 bars
    Last edited by MaxxxW; 05-05-2011, 08:53 AM.

    #2
    Hello MaxxxW,

    This is a generic exception anytime you access empty objects. To isolate the lines of code causing it, you can use Try- Catch blocks as demonstrated in this sample:
    Ryan M.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    649 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    370 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    109 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    574 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    576 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X