| Financial Toolbox | Search  Help Desk |
| highlow | Examples See Also |
Syntax
highlow(hi, lo, cl, op, color) highlow(hi, lo, cl, op) highlow(hi, lo, cl) highlow(hi, lo, cl, [], color) h = highlow(hi, lo, cl, op, color)
Arguments
hiloclopcolor when op is unknown, enter op as an empty matrix [].colorcolor names.Description
highlow(hi, lo, cl, op, color)
plots the high, low, opening, and closing prices of an asset. Plots are vertical lines whose top is the high, bottom is the low, open is a short horizontal tick to the left, and close is a short horizontal tick to the right.
h = highlow(hi, lo, cl, op, color)
plots the figure and returns the handles h of the lines. See Using MATLAB Graphics for information on graphics and object handles.
Example
The high, low, and closing prices for an asset are stored in equal-length vectorsassethi, assetlo, and assetcl respectively
highlow(assethi, assetlo, assetcl, [], 'cyan')plots the price data using cyan lines.
See Also
bolling, candle, dateaxis, movavg, pointfig