Do not plot certain outputs of indicator

Created at 09 May 2017, 15:51
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
PI

pipsniper123

Joined 21.12.2016

Do not plot certain outputs of indicator
09 May 2017, 15:51


Hello,

I've made a custom indicator which has 6 different outputs.

5 of these outputs should be plotted.

1 of these outputs should NOT be plotted. This certain output is made for later reference in a bot. It can only take on the values 0 or 1. This is why if this certain output is actually plotted, it messes up the whole figure. In the picture below, the messed up figure is shown.

So my question is: "How can I program my indicator, such that some dataseries are plotted, and some are not?"

 

Thank you in advance.

 


@pipsniper123
Replies

uvwxyz
10 May 2017, 13:07

     

hi,

try: 

    [Output("willPlotTheSeries_R ", Color = Colors.Yellow, LineStyle = LineStyle.Solid)]
     public IndicatorDataSeries willPlotTheSeries { get; set; }

        private IndicatorDataSeries willNotPlotTheSeries;       
     
        protected override void Initialize()
        {
            willNotPlotTheSeries= CreateDataSeries();

        }

//this will create 2 indicatorDataSeries, one will plot and and one will not.

Hope this helps. Cheers.
           


@uvwxyz