Candle Stock Graphs: Open-Close

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

The constant for this graph type is STOCK_CANDLE.

Standard use of a stock graph

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

Data structure of an open-close candle stock graph

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

  Open-close candle stock graph

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

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

The lesser of the two 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-close candle stock graphs

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

Example: Data in an open-close candle stock graph

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

Candle stock graph

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

Mon Open Mon Close Tues Open Tues Close
30.25 40.13 40.75 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