| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Financial Toolbox |
| Contents | Index |
| Learn more about Financial Toolbox |
hhv = hhigh(data) hhv = hhigh(data, nperiods, dim) hhvts = hhigh(tsobj, nperiods) hhvts = hhigh(tsobj, nperiods, ParameterName, ParameterValue)
data | Data series matrix. |
nperiods | (Optional) Number of periods. Default = 14. |
dim | (Optional) Dimension. |
tsobj | Financial time series object. |
ParameterName | The valid parameter name is:
|
ParameterValue | The parameter value is a string that represents the valid parameter name. |
hhv = hhigh(data) generates a vector of highest high values the past 14 periods from the matrix data.
hhv = hhigh(data, nperiods, dim) generates a vector of highest high values the past nperiods periods. dim indicates the direction in which the highest high is to be searched. If you input [] for nperiods, the default is 14.
hhvts = hhigh(tsobj, nperiods) generates a vector of highest high values from tsobj, a financial time series object. tsobj must include at least the series High. The output hhvts is a financial time series object with the same dates as tsobj and data series named HighestHigh. If nperiods is specified, hhigh generates a financial time series object of highest high values for the past nperiods periods.
hhvts = hhigh(tsobj, nperiods, ParameterName, ParameterValue) specifies the name for the required data series when it is different from the default name. The valid parameter name isHighName. The parameter value is a string that represents the valid parameter name.
Compute the highest high prices for Disney stock and plot the results:
load disney.mat
dis_HHigh = hhigh(dis)
plot(dis_HHigh)
title('Highest High for Disney')

![]() | getnameidx | highlow (fts) | ![]() |
View demos and recorded presentations led by industry experts.
Now On Demand
Network with industry peers and learn the latest applications of the leading software product for computational finance.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |