Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

DrawLine NullReference Exception

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

    DrawLine NullReference Exception

    Found a bug in DrawLine

    Code:
    var middleBar = x;
    
    Draw.Line(this, "HighighestHighMouse", false, middleBar - 15, price, middleBar + 15, price, Brushes.Green, DashStyleHelper.Dot, 5);
    This code which intends to draw a line from middleBar('s ago) extended 15 bars forward and 15 bars back; results in an Unhandled System.NullReference Exception if middleBar + 15 is greater than the number of bars available.

    #2
    Hi reach4thelasers,

    Thank you for reporting there may be an issue with the Line drawing tool. I will do some testing with this and if I am able to reproduce the behavior I will report this to our development.

    I appreciate your patience while I test.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hi reach4thelasers,

      May I confirm you are using the latest version of NinjaTrader 8.0.5.2?

      I was not able to reproduce this behavior.

      Attached is a test indicator. Are you able to reproduce the crash adding this test indicator to a chart?
      Attached Files
      Chelsea B.NinjaTrader Customer Service

      Comment


        #4
        Hey Chelsea,

        I am no longer able to reproduce the issue either. Just spent an hour trying - I think its been fixed!

        Thank you

        Kevin.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by fx.practic, 10-15-2013, 12:53 AM
        5 responses
        5,404 views
        0 likes
        Last Post Bidder
        by Bidder
         
        Started by Shai Samuel, 07-02-2022, 02:46 PM
        4 responses
        95 views
        0 likes
        Last Post Bidder
        by Bidder
         
        Started by DJ888, Yesterday, 10:57 PM
        0 responses
        8 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by MacDad, 02-25-2024, 11:48 PM
        7 responses
        160 views
        0 likes
        Last Post loganjarosz123  
        Started by Belfortbucks, Yesterday, 09:29 PM
        0 responses
        9 views
        0 likes
        Last Post Belfortbucks  
        Working...
        X