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 Hwop38, 05-04-2026, 07:02 PM
      0 responses
      161 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      308 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      245 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      349 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      179 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Working...
      X