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 sjsj2732, Today, 04:31 AM
      0 responses
      20 views
      0 likes
      Last Post sjsj2732  
      Started by NullPointStrategies, 03-13-2026, 05:17 AM
      0 responses
      280 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      279 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      130 views
      1 like
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      90 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Working...
      X