6.18 Open-High-Low-Close-Volume Stock Chart
This tutorial will show you how to create a stock chart to display open, high, low, and close prices, along with trading volume.
Minimum Origin Version Required: Origin 2016 SR0
What you will learn
- Set a column format
- Create a stock chart with open, high, low, and close prices, and trading volume
- Set axis Scale Type to skip market-closed days
- Set format for major and minor tick labels, respectively
- Download the source data file from our ftp and import it into Origin. When importing this file, keep the system default settings.
- Set column A as Date format. Double click on the header of column A to bring up the Column Properties dialog. Activate the Properties tab, under the Options branch, select Date from the Format drop-down list, and then select Custom Display from the Display drop-down list. Type dd'-'MMM'-'yyyy in the Custom Display combo box. Click OK button.
- Highlight all columns in the worksheet, and then choose Plot: Stock: OHLC-Volume to create a graph.
- Double click on the bottom X axis of Layer2 to open the X Axis dialog. Switch to the Scale tab. You can see the Type is set to Discrete by default. This is why the X axis skips all weekends and holidays automatically.
- Change the axis rang From 3/5/2001 To 5/4/2001.
- Under the Major Ticks branch, make sure Type is set to By Increment. Type 1week for Value.
- Under the Minor Ticks branch, make sure Type is set to By Counts. Type 5 for Count. Click Apply button.You can see weekend and holidays are skipped clearer.
- To show weekdays of minor tick, switch to the Tick Label tab. Activate the Minor Tick Labels sub-tab. Select Show at each Minor Ticks for Minor Tick Labels. Type 100 for Offset Major by (%). Type D6 for Display Format. For details about Display Format options, refer to Origin Formats. Click Apply button
Click OK button to close the dialog.
- Double click on the left-Y axis in Layer1 to open the Axis' dialog again. Switch to Vertical icon in the Scale tab. Change To = 22.
- Click OK button to finish the axis setting. The Final graph should appear as shown below: