| Financial Toolbox™ | ![]() |
highlow(tsobj) highlow(tsobj, color) highlow(tsobj, color, dateform) highlow(tsobj, color, dateform, ParameterName, ParameterValue, ...) hhll = highlow(tsobj, color, dateform, ParameterName, ParameterValue, ...)
tsobj | Financial time series object. |
color | (Optional) A three-element row vector representing RGB or a color identifier. (See plot in the MATLAB documentation.) |
dateform | (Optional) Date string format used as the x-axis tick labels. (See datetick in the MATLAB documentation.) You can specify a dateform only when tsobj does not contain time-of-day data. If tsobj contains time-of-day data, dateform is restricted to 'dd-mmm-yyyy HH:MM'. |
ParameterName | ParameterName can be:
|
ParameterValue | The parameter value is a string that represents the valid parameter name. |
highlow(tsobj) generates a High-Low plot of the data in the financial time series object tsobj. tsobj must contain at least four data series representing the high, low, open, and closing prices. These series must have the names High, Low, Open, and Close (case-insensitive).
highlow(tsobj, color) additionally specifies the color of the plot.
highlow(tsobj, color, dateform) additionally specifies the date string format used as the x-axis tick labels. See datestr for a list of date string formats.
highlow(tsobj, color, dateform, ParameterName, ParameterValue,...) indicates the actual name(s) of the required data series if the data series do not have the default names.
You can specify open prices as optional by providing the parameter name 'OpenName' and the parameter value '' (empty string).
highlow(tsobj, color, dateform, 'OpenName', '')
hhll = highlow(tsobj, color, dateform, ParameterName, ParameterValue, ...) returns the handle to the line object that makes up the High-Low plot.
Generate a High-Low plot for Disney stock for the dates from May 28 to June 18, 1998:
load disney.mat
highlow(dis('28-May-1998::18-Jun-1998'))
title('High-Low Plot for Disney')

![]() | hhigh | highlow | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |