protected override void OnBarUpdate()
{
if (BarsInProgress==2 )
{
if (Close[0] > Close[1]) boxColor = Brushes.Blue;
if (Close[0] < Close[1]) boxColor = Brushes.Red;
BarBrush.Freeze();
BarBrush=boxColor;
}
}
It gives an index error as it seems to be expecting an index to the bar you are coloring
PlotBrushes[0][0] works fine this way for setting the color and opacity. But what is the Analog to coloring the price bars and setting the opacity of the price bars of a particular data series bar.
~J
Comment