Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Custom Dash?

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

    Custom Dash?

    Hi,

    We all know about the three default options in Ninja, but what if I wanted to assign a custom dash that has more spaces inbetween or use a different character for the dash?
    And what if I wanted to assign that custom dash as a 4th option which is selectable in the indicator settings?

    Just wanting to know what the options are with that, thank you very much in advance!

    #2
    Hello davydhnz,

    Are you referring to the Dash style for a plot?
    Unfortunately, these cannot be modified or added.

    You can, however, custom render anything you would like in OnRender().
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hi Chelsea,

      Yes, I mean with draw.line if there was a way.

      I asked ChatGPT before you lol and it said to:

      Code:
      private enum DashStyleType { Solid = 0, Dash = 1, Dot = 2, Custom = 3 }
      [NinjaScriptProperty] [Display(ResourceType = typeof(Custom.Resource), Name = "Dash Style", GroupName = "Appearance", Order = 0)]
      public DashStyleType MyDashStyle { get; set; }
      private DashStyle customDashStyle; // Declare the custom DashStyle as a class-level variable
      Obviously that didn't work . It is good for some things, but clearly has certain limitations.

      I guess I'll have to put it on my longterm wishlist for when I finally get to learning OnRender.

      Thanks for your reply, regardless.
      David​

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      592 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      343 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      103 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      556 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      554 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X