Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Bug: Chart freeze and application crash

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

    Bug: Chart freeze and application crash

    Hello.

    I found bug while I write chart indicators.

    new Stroke(null, 1) cause chart freeze and aplication crash later.

    I hope this help you make Ninja.

    PS. my code to crash
    protected override void OnStateChange()
    {
    if (State == State.Configure)
    {
    AddPlot(new Stroke(BackBrush, 1), PlotStyle.Line, "CrashBrush");
    }
    }

    PPS. Forum editor do not allow to me make post formatting.

    Dmitry.
    Last edited by d.pischenko; 08-09-2016, 02:52 PM.

    #2
    Hello Dmitry,

    Thank you for writing in and welcome to the NinjaTrader Support Forum!

    I would like to note that the Stroke class is not expecting a null object. Please take a look at this help guide link for more information about what to pass to a new Stroke object: https://ninjatrader.com/support/help...roke_class.htm

    You cannot pass BackBrush to the new Stroke object. This property sets the brush used for painting the chart panel's background color for the current bar.

    You'll want to specify a specific brush (ie. Brushes.Blue).
    Zachary G.NinjaTrader Customer Service

    Comment


      #3
      Thanks to your reply.

      I understand, that my case is incorrect (I found this case while converting NT7 scripts to NT8), but raise exception is expected. But application is crashed. And my report is about this abnormal action.

      Dmitry.

      Comment


        #4
        Hello d.pischenko,

        Please provide your log and trace files so we may investigate further.

        You can do this by going to the Control Center-> Help-> Email Support.

        Ensuring 'Log and Trace Files' is checked will include these files. This is checked by default.

        Please reference both my name and a link to this thread in the body of the email.
        Zachary G.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        672 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        379 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        111 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        577 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        582 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X