Do not plot certain outputs of indicator
Created at 09 May 2017, 15:51
PI
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.
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