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 charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    59 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    143 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    161 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    97 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    283 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X