Color series exceeds the maximum number (65535) of unique brushes. Please adjust code to use fewer brushes.
if (State == State.SetDefaults) { AddPlot(new Stroke(Brushes.White, DashStyleHelper.Solid, 3f), PlotStyle.Line, "A50"); } ... protected override void OnBarUpdate() { double cbe = 1 - btw1nd(Math.Abs(Close[i] - A50[i]) / (4 * bd_D[i])); System.Windows.Media.Brush brush3 = new System.Windows.Media.SolidColorBrush(System.Windows.Media.Color.FromArgb(colorByte(128 * cbe), colorByte(255 * cbe), colorByte(200 * cbe), 0)); brush3.Freeze(); PlotBrushes[10][i] = brush3; }
Comment