Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Non plotting series

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

    Non plotting series

    In an indicator I have 4 AddPlots... and I define, update and access them as in the code below.

    However, the 4th one (Atr)... I don't want to show up on the chart... I just want to access it from code in my strategy... do I use AddDataSeries instead, if so what should the parameter(s) be?

    Also, if I did plot it... is there a way to get it into a separate panel?

    Code:
                    IsOverlay                    = true;
                    ...
                    AddPlot(Brushes.Orange, "Upper");
                    AddPlot(Brushes.Blue, "PDC");
                    AddPlot(Brushes.Orange, "Lower");
                    AddPlot(Brushes.Orange, "Atr");
                    ...
                Upper[0] = pdc + atr;            
                PDC[0] = pdc;
                Lower[0] = pdc - atr;
                AtrSeries[0] = atr;
                ...
            [Browsable(false)]
            [XmlIgnore()]
            public Series<double> Upper
            {
                get { return Values[0]; }
            }
            
            [Browsable(false)]
            [XmlIgnore()]
            public Series<double> PDC
            {
                get { return Values[1]; }
            }
            
            [Browsable(false)]
            [XmlIgnore()]
            public Series<double> Lower
            {
                get { return Values[2]; }
            }
            
            [Browsable(false)]
            [XmlIgnore()]
            public Series<double> Atr
            {
                get { return Values[3]; }
            }

    #2
    Hello BrianARice,

    Thanks for your post.

    If you don't wish to see the plot, set the color to be transparent and then you can access as you have been in your strategy.

    You would not be able to set it into a separate panel.

    Alternatively, you could just use the ATR() directly in the strategy.
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Ok... that worked great... one of the things I was concerned about was that the Y Axis would still include the 4th data series... but when it's set to Transparent it doesn't.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Segwin, 05-07-2018, 02:15 PM
      14 responses
      1,788 views
      0 likes
      Last Post aligator  
      Started by Jimmyk, 01-26-2018, 05:19 AM
      6 responses
      837 views
      0 likes
      Last Post emuns
      by emuns
       
      Started by jxs_xrj, 01-12-2020, 09:49 AM
      6 responses
      3,293 views
      1 like
      Last Post jgualdronc  
      Started by Touch-Ups, Today, 10:36 AM
      0 responses
      12 views
      0 likes
      Last Post Touch-Ups  
      Started by geddyisodin, 04-25-2024, 05:20 AM
      11 responses
      62 views
      0 likes
      Last Post halgo_boulder  
      Working...
      X