New to Telerik UI for WinForms? Start a free 30-day trial
Ohlc and Candlestick
Updated over 6 months ago
RadChartView introduces support for stock series – both Ohlc (Open-High-Low-Close) and Candlestick. These series operate with special data points which hold information about each the following parameters: open, high, low, close. As members of the Categorical series, stock series plot their data upon a categorical (or DateTimeCategorical) axis.
Ohlc and Candlestick series are indeed two alternative ways to visualize the same data. Here is how to read the values of an Ohlc and Candlestick point:
| Ohlc | Candlestick |
|---|---|
![]() | ![]() |
Here is how to setup Ohlc series:
Initial Setup OhlcSeries
C#
OhlcSeries ohlcSeries = new OhlcSeries();
ohlcSeries.DataPoints.Add(new OhlcDataPoint(10, 11, 7, 8, DateTime.Now));
ohlcSeries.DataPoints.Add(new OhlcDataPoint(8, 9, 5, 9, DateTime.Now.AddDays(1)));
ohlcSeries.DataPoints.Add(new OhlcDataPoint(12, 12, 9, 10, DateTime.Now.AddDays(2)));
ohlcSeries.DataPoints.Add(new OhlcDataPoint(7, 10, 6, 9, DateTime.Now.AddDays(3)));
this.radChartView1.Series.Add(ohlcSeries);
Figure 1: Initial Setup OhlcSeries

Here is how to setup Candlestick series:
Initial Setup CandlestickSeries
C#
CandlestickSeries candlestickSeries = new CandlestickSeries();
candlestickSeries.DataPoints.Add(new OhlcDataPoint(10, 11, 7, 8, DateTime.Now));
candlestickSeries.DataPoints.Add(new OhlcDataPoint(8, 9, 5, 9, DateTime.Now.AddDays(1)));
candlestickSeries.DataPoints.Add(new OhlcDataPoint(12, 12, 9, 10, DateTime.Now.AddDays(2)));
candlestickSeries.DataPoints.Add(new OhlcDataPoint(7, 10, 6, 9, DateTime.Now.AddDays(3)));
this.radChartView1.Series.Add(candlestickSeries);
Figure 2: Initial Setup CandlestickSeries


