Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.
    JimNinjaTrader Customer Service

    Comment


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

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by RookieTrader, Today, 07:41 AM
      1 response
      4 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by kujista, Today, 05:44 AM
      1 response
      8 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by elderan, Yesterday, 08:03 PM
      1 response
      12 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Started by samish18, Yesterday, 08:57 AM
      8 responses
      25 views
      0 likes
      Last Post samish18  
      Started by DJ888, 04-16-2024, 06:09 PM
      3 responses
      10 views
      0 likes
      Last Post NinjaTrader_Erick  
      Working...
      X