Click or drag to resize


For a candles graphic display, you can use the special Chart component, which draws candles as follows: (see Chart components):

sample candleschart

The candles, coming from the CandleManager, then passed to the ChartHelperDraw method for displaying.

The current candle changes will be displayed when the candle is passed from the Processing event to draw on the graph.

If you want to display the finished candles, check the State property of candle that came:

private ChartArea _area;
private ChartCandleElement _candlesElem;

// _chart - StockSharp.Xaml.Chart
// a new chart area
_area = new ChartArea();

// chart candle element for draw candles
_candlesElem = new ChartCandleElement();


_candleManager.Processing += DrawCandle;


private void DrawCandle(CandleSeries series, Candle candle)
    if (candle.State == CandleStates.Finished) this.GuiAsync(() => _chart.Draw(_candlesElem, candle) );
See Also

Other Resources