Draw.Rectangle(this, "rect" + CurrentBar, 1, Low[0] + 0.125, 0, Low[0] - 0.125, Brushes.Red);
float x = chartControl.GetXByBarIndex(ChartBars, CurrentBar); SharpDX.RectangleF rectangleF = new SharpDX.RectangleF(x, x, 10, 10); SharpDX.Direct2D1.SolidColorBrush brush = new SharpDX.Direct2D1.SolidColorBrush(RenderTarget, SharpDX.Color.Blue); RenderTarget.DrawRectangle(rectangleF, brush);

Comment