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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      128 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      73 views
      1 like
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      116 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      109 views
      1 like
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      88 views
      0 likes
      Last Post CarlTrading  
      Working...
      X