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.

    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 cmoran13, 04-16-2026, 01:02 PM
      0 responses
      81 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      46 views
      0 likes
      Last Post PaulMohn  
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      169 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      101 views
      1 like
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      175 views
      2 likes
      Last Post CaptainJack  
      Working...
      X