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 CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    48 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    30 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    99 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    177 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    170 views
    0 likes
    Last Post CarlTrading  
    Working...
    X