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

Plot code printing a line not a bar

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

  • NinjaTrader_PatrickH
    replied
    Hello Tinkerz,

    Thank you for your response.

    Do you have multiple Plots in your indicator?

    If so, please go to the Properties section of your code and make sure the Values are set appropriately (0, 1, 2, etc.). For information on the Plot please visit the following link: http://www.ninjatrader.com/support/h...plot_class.htm

    If this does not resolve the matter please attach your code to your response or a toy version. If you prefer you can send the file to support[at]ninjatrader[dot]com with 'ATTN: Patrick - 860657' in the subject line and a reference to this thread in the body of the e-mail: http://www.ninjatrader.com/support/f...ad.php?t=58323

    Please let me know if I may be of further assistance.

    Leave a comment:


  • tinkerz
    replied
    Yes I get values plotting but in line not a bar

    Thanks

    Leave a comment:


  • NinjaTrader_PatrickH
    replied
    Hello Tinkerz,

    Thank you for your post.

    Have you set the values for the plot? How many plots are set?

    For information on .Set please visit the following link for information on the DataSeries class: http://www.ninjatrader.com/support/h...ries_class.htm

    Leave a comment:


  • tinkerz
    started a topic Plot code printing a line not a bar

    Plot code printing a line not a bar

    Hi,

    In my code I am adding a plot with a style of a bar, but the chart is changing this to a line, when I right click the chart and select indicators and then look for the options on this indicator, their is no plot option call Volume Bar.

    What have I deleted not to get that option

    Thanks

    Tinkerz


    Code:
                Add(new Plot(Color.FromKnownColor(KnownColor.Lime), PlotStyle.Bar, "VolumeBar"));

    Code:
            #region Properties
            [Browsable(false)]    // this line prevents the data series from being displayed in the indicator properties dialog, do not remove
            [XmlIgnore()]        // this line ensures that the indicator can be saved/recovered as part of a chart template, do not remove
            public DataSeries VolumeBar
            {
                get { return Values[0]; }
            }

Latest Posts

Collapse

Topics Statistics Last Post
Started by PaulMohn, Today, 12:36 PM
1 response
14 views
0 likes
Last Post NinjaTrader_Gaby  
Started by yertle, Yesterday, 08:38 AM
8 responses
36 views
0 likes
Last Post ryjoga
by ryjoga
 
Started by rdtdale, Today, 01:02 PM
1 response
6 views
0 likes
Last Post NinjaTrader_LuisH  
Started by alifarahani, Today, 09:40 AM
3 responses
17 views
0 likes
Last Post NinjaTrader_Jesse  
Started by RookieTrader, Today, 09:37 AM
4 responses
20 views
0 likes
Last Post RookieTrader  
Working...
X