Charting Financial Data
Introduction
The following toolbox financial charting functions plot financial data and produce presentation-quality figures quickly and easily.
Bollinger band chart |
|
Candlestick chart |
|
Time series candle plot |
|
Point and figure chart |
|
High, low, open, close chart |
|
Time series High-Low plot |
|
Leading and lagging moving averages chart |
These functions work with standard MATLAB®functions that draw axes, control appearance, and add labels and titles. The toolbox also provides a comprehensive set of charting functions that work withtimetable
objects, seeChart Technical Indicators.
Here is aBollinger bandchart. This example loads data from an external file (ibm.dat
) and then calls the function using subsets of the data. The MATLAB variableibm
, which is created by loadingibm.dat
, is a six-column matrix where each row is a trading day's data and where columns 2, 3, and 4 contain the high, low, and closing prices, respectively. The data inibm.dat
is fictional and for illustrative use only.
See Also
datedisp
|datenum
|datestr
|datevec
|date
|holidays
|nyseclosures
|busdate
|cfdates
|cur2frac
|cur2str
|frac2cur
|bolling
|bollinger
|candle
|candle
|pointfig
|highlow
|highlow
|movavg
|dateaxis
|load
|size
|addBusinessCalendar
|periodicreturns
|rollingreturns