OriginLab Corporation - Data Analysis and Graphing Software - 2D graphs, 3D graphs, Contour Plots, Statistical Charts, Data Exploration, Statistics, Curve Fitting, Signal Processing, and Peak Analysis     
 
Skip Navigation Links
All BooksExpand All Books
TutorialsExpand Tutorials
GraphingExpand Graphing

6.18 Open-High-Low-Close-Volume Stock Chart


Summary

This tutorial will show you how to create a stock chart to display open, high, low, and close prices, along with trading volume.

OHLCV Graph Gallery Tutorial 4.png

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

Steps

  1. Download the source data file from our ftp and import it into Origin. When importing this file, keep the system default settings.
  2. 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.
  3. OHLCV Graph Gallery Tutorial 1.png

  4. Highlight all columns in the worksheet, and then choose Plot: Stock: OHLC-Volume to create a graph.
  5. 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.
  6. OHLCV Graph Gallery Tutorial 5.png

  7. Change the axis rang From 3/5/2001 To 5/4/2001.
  8. OHLCV Graph Gallery Tutorial 6.png

  9. Under the Major Ticks branch, make sure Type is set to By Increment. Type 1week for Value.
  10. 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.
  11. OHLCV Graph Gallery Tutorial 7.png

  12. 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
    OHLCV Graph Gallery Tutorial 8.png
    Click OK button to close the dialog.
  13. 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.
  14. OHLCV Graph Gallery Tutorial 3.png

  15. Click OK button to finish the axis setting. The Final graph should appear as shown below:
  16. OHLCV Graph Gallery Tutorial 4.png

 

© OriginLab Corporation. All rights reserved.