Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to set the Dash Style

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

    How to set the Dash Style

    For every plot there is Plot style and a Dash style.

    The Add() does not have a parameter where you can set the Dash style. And far as I can tell you can not set the Dash style using the Plots[].

    Is there anyway to set the Dash style inside the indicator?

    #2
    Add(new Plot(Color.Blue, PlotStyle.Hash, "Support"));
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Plot objects are managed by the Plots collection. If you only have one plot in your indicator, the plot object rests in the collection at index 0.

      So to change the dash style, add the following line of code in Initialize() after adding the plot itself.

      Plots[0].Pen.DashStyle = DashStyle.Dash;
      RayNinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      571 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      330 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      548 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      549 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X