Price volume chart [3] - Excel 2010
Version 3
The price volume chart is created from a sample of one month of data for the Bank of Queensland Ltd - Australian stock exchange code - BOQ.AX. The data is indexed on date in descending order, and we illustrate how to create the price volume chart, with date series in ascending order for the Price, AND Volume series.
Preliminary
The Defined Names used in this example - are similar to those used in the Stock Analyser project:
- DateV - Refers to:
=$A$2:$A$24
- VolumeV - Refers to:
=OFFSET(INDEX(DateV,1,1),0,5,ROWS(DateV))
- AdjCloseV - Refers to:
=OFFSET(INDEX(DateV,1,1),0,6,ROWS(DateV))
- PriceVolumeData - Refers to:
=DateV,VolumeV,AdjCloseV
Note: In this example, each of the data vectors xxxV include the header row label.
Creating the chart - steps
Steps
- Select the data by typing the name
PriceVolumeData
in the Name Box - Select Insert > Charts > Line > 2-D Line > Line on the ribbon
- Remove the non trading day gaps from the primary date axis - from the Chart Tools tab, select Layout > Current Selection > Chart Elements box then the Horizontal (Category) Axis element. The Axis is now the Selection
- In the same Current Selection group, select Format Selection
- In the Format Axis dialog box, select
Axis Options
(on the left), then setAxis Type:
toText Axis
, and tick theCheck Box Categories in reverse order
. Click Close - From the Chart Tools tab, select Layout > Current Selection > Chart Elements box then the Series "Adj Close" element
- In the same Current Selection group, select Format Selection
- In the Format Data Series dialog box, select
Series Options
(on the left), then setSeries Options, Plot Series On
by selecting theSecondary Axis
item. Click Close - In the Chart Elements box select the Series "Volume" element
- From the Chart Tools tab, select Design > Type > Change Chart Type to display the Change Chart Type dialog box
- In the Change Chart Type dialog box, select
Column
(on the left), then theClustered Column
item from theColumn
group. Click OK - Set the trading day order for the secondary date axis - from the Chart Tools tab, select Layout > Axes > Secondary Horizontal Axis then select the Show Axis without labeling element
- After appropriate Axis formatting, the final chart is shown in figure 1 (Excel Web App #1) and figure 2 (an image of the chart)
Creating a chart template
To save the formats applied in steps 1 to 13 above, you can create a chart template.
To create the template in Excel 2010:
- Select the chart. Its names will appear in the Name Box
- On the Chart Tools > Design tab, select Type > Save As Template to display the
Save Chart Template
dialog box. In the File name: box enter the namexlf-price-volume
, and select Save as type:Chart Template Files
- The template file will be stored in your
../AppData/Roaming/Microsoft/Templates/Charts
folder (or similar). This is the only location where Excel will retrieve the file. Click Save - You can copy the file to another computer. Ensure its assigned to the correct folder or directory
Using the template in Excel 2013
To use the template in Excel 2013:
- Select the chart data
- On the Insert tab, click the Charts group dialog box launcher to display the Insert Chart dialog box
- Click the All Charts tab, then select Templates in the left column. If the template is not visible, use the Manage Templates... button to locate the template
- A copy of the template file is available here: xlf-price-volume.crtx [5 KB]
- Select the template, then click OK
- The chart, with correct format should now be complete
- Important notes: the template data series are - Series 1:
Volume
, and Series 2:Adj Price
- You may need to Edit the series details with the Chart Tools > Data > Select Data Select Data Source dialog box, to incorporate the Stock Analyser specifications
- This example was developed in Excel 2010 32 bit.
- Published: 27 March 2015
- Revised: Saturday 25th of February 2023 - 10:13 AM, [Australian Eastern Standard Time (EST)]