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 cmoran13, 04-16-2026, 01:02 PM
      0 responses
      43 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      25 views
      0 likes
      Last Post PaulMohn  
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      163 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      98 views
      1 like
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      158 views
      2 likes
      Last Post CaptainJack  
      Working...
      X