Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to set a Plot's Dash Style?

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

    How to set a Plot's Dash Style?

    Hello,

    I have found PlotBrushes, Plots[].PlotStyle, and Plots[].Width but I cannot find say Plots[].DashStyle?

    How would I change a plot's Dash Style? It can be a onetime code (OnStateChange), or it could also be dynamic in OnBarUpdate. Either would work.

    Many Thanks, Caesar.

    #2
    It is part of the plot's stroke. The stroke defines includes the concepts of color, thickness, and the line's style e.g. dashed, dottetd, etc.

    See also: https://ninjatrader.com/support/help...roke_class.htm
    Bruce DeVault
    QuantKey Trading Vendor Services
    NinjaTrader Ecosystem Vendor - QuantKey

    Comment


      #3
      Hello, thanks for writing in. The plot dash style can only be set once when the plot is set up. You can use this overload to set up the plot style:
      AddPlot(new Stroke(Brushes.Firebrick, 2), PlotStyle.Dot, "MyPlot");

      Comment


        #4
        Hi both,

        I found the DashStyle in Stroke.

        Many Thanks, Caesar.
        Last edited by Skechers; 05-25-2023, 12:27 PM.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by SalmaTrader, 07-07-2026, 10:26 PM
        0 responses
        46 views
        0 likes
        Last Post SalmaTrader  
        Started by CarlTrading, 07-05-2026, 01:16 PM
        0 responses
        22 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 06-17-2026, 10:32 AM
        0 responses
        14 views
        0 likes
        Last Post CaptainJack  
        Started by kinfxhk, 06-17-2026, 04:15 AM
        0 responses
        20 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 06-17-2026, 04:06 AM
        0 responses
        22 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X