Main Content

hhigh

Highest high

Using a弗林特object for theDataargument ofhhighis not recommended. Use a matrix,timetable, ortableinstead for financial time series. For more information, seeConvert Financial Time Series Objects fints to Timetables.

Description

example

values= hhigh(Data)generates a vector of highest high values from the series of high prices for the pastnperiods.

example

values= hhigh(___,Name,Value)adds optional name-value pair arguments.

Examples

collapse all

Load the fileSimulatedStock.mat, which provides a timetable (TMW) for financial data for TMW stock.

loadSimulatedStock.matvalues = hhigh(TMW); plot(values.Time,values.HighestHigh) title('Highest High for TMW')

Figure contains an axes object. The axes object with title Highest High for TMW contains an object of type line.

Input Arguments

collapse all

Data for high prices, specified as a matrix, table, or timetable. Timetables and tables withMrows must contain a variable named'High'(case insensitive).

Data Types:double|table|timetable

Name-Value Arguments

Specify optional pairs of arguments asName1=Value1,...,NameN=ValueN, whereNameis the argument name andValueis the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.

Before R2021a, use commas to separate each name and value, and encloseNamein quotes.

Example:values = hhigh(TMW_HIGH,'NumPeriods',10)

移动窗口highest high calculation, specified as the comma-separated pair consisting of'NumPeriods'and a scalar positive integer.

Data Types:double

Output Arguments

collapse all

Highest high series, returned with the same number of rows (M) and the same type (matrix, table, or timetable) as the inputData.

References

[1] Achelis, S. B.Technical Analysis from A to Z.Second Edition. McGraw-Hill, 1995.

Version History

Introduced before R2006a