Candle Stock Graphs: Open-High-Low-Close

An open-high-low-close candle stock graph is a graph that is specifically designed for showing the opening, high, low, and closing prices of a stock on a particular day. Each stock marker displays four separate values.

The constant for this graph type is STOCK_OHLC_CANDLE.

Standard use of a stock graph

You use stock graphs to show more than one stock price for a stock.

Data structure of a stock graph with opening values

The following figure shows the data structure of a STOCK_OHLC_CANDLE stock graph.

Sample candle stock graph

The data structure for open-high-low-close candle stock graphs is as follows:

Each group in this kind of stock graph has four measure values:

The lesser of the open and close values defines the bottom of the candle. The greater value defines the top. If the closing value is greater than the opening value, then the candle is green. If the opening value is higher than the closing value, then the candle is red.

Data guidelines for open-high-low-close candle stock graphs

Data for this kind of stock graph has the following guidelines:

Example: Data in an open-high-low-close candle stock graph

The following graph shows the stock data for one stock for two different days.

Simple candle stock graph

The following table shows the structure of the data that the stock graph displays. This example assumes that Graph.isDataRowShownAsASeries returns true.

Mon Open Mon High Mon Low Mon Close Tues Open Tues High Tues Low Tues Close
30.25 47.63 28.33 40.13 40.75 45.13 31.13 31.75

Stock Graphs
Handling Problems in Graph Data
Specifying Data for a Graph
Example: Setting Data from a File on a High-Low-Close Stock Graph