Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Which plot types are available?

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

    Which plot types are available?

    I've revised:




    I see that we can add

    Code:
    AddPlot(new Stroke(Brushes.Blue), plotStyle, name)
    however, i am interested:
    1) what type of plots are available in NT? only STROKE type, or other types too?
    2) how this will output, if we define stoke type and plotstyle together, like:

    Code:
    AddPlot(new Stroke(Brushes.Blue, dashStyleHelper, width), plotStyle, name)
    will dashStyleHelper override PlotStyle or?

    3) btw, this is mistake i think - https://i.imgur.com/njuaZyJ.png, because DashStyle type is not accepted in NT compiler: https://i.imgur.com/inJFlCT.png
    Last edited by ttodua; 09-20-2017, 06:16 AM.

    #2
    Hello selnomeria,

    Thanks for opening the thread.

    Plots can be created from a brush or from a a combination of a Stroke and a PlotStyle to further describe the Plot. Some PlotStyles will prevent you from seeing the DashStyle of the Stroke, but the two should be thought of separately when a Plot is built.

    As there can be several different combinations, I suggest to create a sample script that adds plots in State.Configure, and then to modify the plot and reload the NinjaScript on a chart to see the differences that the DashStyle and PlotStyle make.

    I will make a note out to have the help guide amended so the parameter is noted as an enum instead of a DashStyle.

    If there is anything else I can do to help out, please let me know.

    Comment


      #3
      excellent answer! that's what i wanted to hear!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      566 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
      547 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      548 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X