Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NT 8 Crash when loading indicator

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

    NT 8 Crash when loading indicator

    I am porting an indicator from NT 7.
    It is a simple oscillator with overbought/oversold lines.

    I started from scratch in NT 8 and began adding the code.
    It began crashing when I had the combination of a custom data series being passed into an EMA indicator AND the two overbought/oversold lines.

    To try and isolate the problem, I created an indicator that only has the custom data series being passed into an EMA indicator (see GTest.cs).
    It works.
    Then I created an indicator that just had the oscillator plot and lines (see GTestLine.cs).
    It works.


    When I combine the two (see GTestWithLines) it crashes NT 8 when loading on the chart.
    It regularly produced the same exception. (See attached trace file).

    In addition to the crash itself, the other problem is that I have try/catch surrounding all my code and it never catches the exception.
    Why is that?

    Can anybody shed some light on this?
    Again, The offending code is: GTestWithLines.cs
    Attached Files

    #2
    The issue is a result of the NS Wizard AddLine generation which is incorrectly adding a public series<double> and attempting to get a Values[n] series which does not exist. We are looking into #8403.

    The reason your try-catch blocks did not execute is that the exception occurred in the region properties, specifically under the Upper/Lower getters. If you added try-catch here, you would see the exception.

    However there is more going wrong under the hood here we needed to look into and still results in a crash... the attached should get you on your way though.

    Thanks for the report!
    Attached Files
    Last edited by NinjaTrader_Matthew; 06-12-2015, 07:57 AM.
    MatthewNinjaTrader Product Management

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by carnitron, Today, 08:42 PM
    0 responses
    5 views
    0 likes
    Last Post carnitron  
    Started by strategist007, Today, 07:51 PM
    0 responses
    7 views
    0 likes
    Last Post strategist007  
    Started by StockTrader88, 03-06-2021, 08:58 AM
    44 responses
    3,974 views
    3 likes
    Last Post jhudas88  
    Started by rbeckmann05, Today, 06:48 PM
    0 responses
    8 views
    0 likes
    Last Post rbeckmann05  
    Started by rhyminkevin, Today, 04:58 PM
    4 responses
    58 views
    0 likes
    Last Post dp8282
    by dp8282
     
    Working...
    X