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 Rapine Heihei, 04-23-2024, 07:51 PM
      2 responses
      30 views
      0 likes
      Last Post Max238
      by Max238
       
      Started by Shansen, 08-30-2019, 10:18 PM
      24 responses
      943 views
      0 likes
      Last Post spwizard  
      Started by Max238, Today, 01:28 AM
      0 responses
      9 views
      0 likes
      Last Post Max238
      by Max238
       
      Started by rocketman7, Today, 01:00 AM
      0 responses
      4 views
      0 likes
      Last Post rocketman7  
      Started by wzgy0920, 04-20-2024, 06:09 PM
      2 responses
      28 views
      0 likes
      Last Post wzgy0920  
      Working...
      X