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 timmbbo, Today, 08:59 AM
      2 responses
      10 views
      0 likes
      Last Post bltdavid  
      Started by alifarahani, Today, 09:40 AM
      6 responses
      40 views
      0 likes
      Last Post alifarahani  
      Started by Waxavi, Today, 02:10 AM
      1 response
      18 views
      0 likes
      Last Post NinjaTrader_LuisH  
      Started by Kaledus, Today, 01:29 PM
      5 responses
      15 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by Waxavi, Today, 02:00 AM
      1 response
      12 views
      0 likes
      Last Post NinjaTrader_LuisH  
      Working...
      X