ReferencesChart StyleDownBrushDXAsk a question|Copy page|View as Markdown|More actionsThis page is for NinjaScript.Definition A SharpDX Brush object used to paint the down bars for the ChartStyle. Property Value A SharpDX Brush object used to paint the down bars. Syntax DownBrushDX Examples protected override void OnRender(ChartControl chartControl, ChartScale chartScale, ChartBars chartBars){ for (int idx = chartBars.FromIndex; idx <= chartBars.ToIndex; idx++) { double closeValue = bars.GetClose(idx); double openValue = bars.GetOpen(idx); // Set the brush of the current candle to UpBrushDX or DownBrushDX, depending on the // bar direction Brush brush = closeValue >= openValue ? UpBrushDX : DownBrushDX; }}