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 michi08, 10-05-2018, 09:31 AM
    2 responses
    737 views
    0 likes
    Last Post Denver_Wayne  
    Started by sightcareclickhere, Today, 01:55 PM
    0 responses
    1 view
    0 likes
    Last Post sightcareclickhere  
    Started by Mindset, 05-06-2023, 09:03 PM
    9 responses
    258 views
    0 likes
    Last Post ender_wiggum  
    Started by Mizzouman1, Today, 07:35 AM
    4 responses
    18 views
    0 likes
    Last Post Mizzouman1  
    Started by philmg, Today, 01:17 PM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_ChristopherJ  
    Working...
    X