Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Code Error in DrawingTools Namespace

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

    Code Error in DrawingTools Namespace

    Hey NT -- not sure if this is the appropriate place for this, but there is an erroneous comma in the 'Line' Class of the Ninjatrader.Ninjascript.DrawingTools namespace. You can find it by going to the Line class within the 'Lines' file in the DrawingTools folder, and observing the first enum definition in the block, which is for 'ChartLineType'. There you will see an erroneous trailing comma after 'VerticalLine'.

    It does not affect functionality in any way that I'm aware of and the compiler probably has tolerance for this kind of thing. Nonetheless, it should be fixed so that issues don't arise from future changes.

    Thanks for everything you guys do. Best trading platform of all time for developers and normies alike!

    #2
    Hello lunardiplomacy,

    Thank you for your note!

    Please note that C# allows for a trailing comma in an enum. This is noted in the Microsoft documentation linked below:

    "Note: C# allows a trailing comma in an enum_body, just like it allows one in an array_initializer (§17.7). end note​"

    This chapter defines the enum types in C#. Enums create a set of named constants and are represented by an underlying integral set of values.

    Comment


      #3
      Touche, Gaby. My bad! You can delete this thread if you'd like.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      553 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      324 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      100 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      543 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      546 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X