I've created an indicator which colors the bar during some definite periods of time.
But I've noticed that I cannot reset the plot:
Code: Select all
protected override void Create()
{
plotHigh = AddPlot(new PlotAttributes("", EPlotShapes.Line,Color.Empty, Color.Empty, 1, EPlotStyle.Solid, true));
plotLow = AddPlot(new PlotAttributes("", EPlotShapes.Line, Color.Empty, Color.Empty, 1, EPlotStyle.Solid, true));
plotClose = AddPlot(new PlotAttributes("", EPlotShapes.Line,Color.Empty, Color.Empty, 1, EPlotStyle.Solid, true));
plotOpen = AddPlot(new PlotAttributes("", EPlotShapes.Line,Color.Empty, Color.Empty, 1, EPlotStyle.Solid, true));
}
Code: Select all
plotOpen.Set(Bars.Open[0], Color.Empty);
plotHigh.Set(Bars.High[0], Color.Empty);
plotLow.Set(Bars.Low[0], Color.Empty);
plotClose.Set(Bars.Close[0], Color.Empty);
Code: Select all
plotOpen.Reset();
plotHigh.Reset();
plotLow.Reset();
plotClose.Reset();
2) Besides that, How can I retrieve the differents properties of Data1 (Colors, Style,etc.)?
Thank you!