Candlestick charts are financial charts to plot open, close, high and low values of a stock over short periods of time. Each candlestick in these charts consist of a body, a wick and a tail. While body of a candlestick chart represents the opening and closing values of the stock in a particular span of time, wick and tail, the vertical lines above and below the body, indicate the highest and lowest value of stock in that time span respectively. Being packed with so much information in a single chart, these charts are used in tracking the price movements of stock.
Like Candlestick charts, HighLowOpenClose charts or HLOC charts are also used to plot high, low, open and close values of stocks in a specified time frame and are used for stock analysis. The only difference from a candlestick chart is that the HLOC charts are drawn without candlestick 'body'.
Candlestick Chart |
HighLowOpenClose Chart |
---|---|
With FlexChart, you can create Candlestick or HLOC chart by setting the ChartType property of FlexChart class to Candlestick or HighLowOpenClose. This property accepts the values from ChartType enumeration of C1.Chart namespace. You can also change the size of the candle or symbols in HLOC chart by setting the SymbolSize properties of the series.
To create a candlestick or HLOC chart using FlexChart:
At design-time
Using code
To create a WinForms HLOC or candlestick chart through code, the first step after initializing the control is to clear the default series and add a new series using the Add method. Set up the data source through the DataSource property and configure the X and Y axes by setting the BindingX and Binding property. You also need to set up the chart by setting the ChartType property and other required properties.
Note that the above sample code uses a custom method named GetQuotes to supply data to the chart. You can set up the data source as per your requirements.