Bar- and candle style graph for stocks

Plots a bar graph of stock OHLC values, o
2.9K Downloads
Updated 30 Mar 2009

View License

I needed to plot some bar charts but I haven't got the financial toolbox. I couldn't find one here so I modified Nagi Hatoum's Candlestick Graph script to display bar charts.

**Update 03-30-09**
I've also updated Hatoum's candlestick plotter, custom colors are available for both bars and candles. Also expanded the number of ways to input data. In combination with tlabel (see acknowledgements), auto-updating dates can be shown on the x axis.

Input instructions are in the file (look at the file or use 'help [fcnname]')

Cite As

Jelle Veraa (2026). Bar- and candle style graph for stocks (https://uk.mathworks.com/matlabcentral/fileexchange/23463-bar-and-candle-style-graph-for-stocks), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2007b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Bar Plots in Help Center and MATLAB Answers
Acknowledgements

Inspired by: Candlestick Graph, tlabel.m v2.6.1 (Sep 2009)

Inspired: superbar

Version Published Release Notes
1.1.0.0

Added new candlestick options, made available use of dates 'inside function', can use colors.

1.0.0.0