File Exchange

image thumbnail

Bar- and candle style graph for stocks

version 1.1.0.0 (2.66 KB) by Jelle Veraa
Plots a bar graph of stock OHLC values, o

1 Download

Updated 30 Mar 2009

View Version History

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 (2021). Bar- and candle style graph for stocks (https://www.mathworks.com/matlabcentral/fileexchange/23463-bar-and-candle-style-graph-for-stocks), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (3)

JasonXu

comments on date format is not clear, keeps getting errors when using either datenum or datetime

gaia buratti

Hi Jelle, maybe you can help me, I need to draw a candle or bar chart on intraday stockprices and I would like to see the dates and times on the x-axis.
As you know the trading time is not continuous, Can you suggest me a method to have a nice candle chart with no gaps for the non trading hours? I tried also with the timeseries, but the problem is the same... Thanks

Jelle Veraa

I used the 'export' function in stead of a screenshot, candles will look better on screen. (Referring to to-be-accepted update I just send in)

MATLAB Release Compatibility
Created with R2007b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

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

Inspired: superbar

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!