Main Content


Using a fints object for the Data argument of typprice is not recommended. Use a matrix, timetable, or table instead for financial time series. For more information, see Convert Financial Time Series Objects fints to Timetables.



TypicalPrice = typprice(Data) calculates the typical prices from the series of high, low, and closing prices. The typical price is the average of the high, low, and closing prices for each period.


collapse all

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

load SimulatedStock.mat
TypicalPrice = typprice(TMW);  
title('Typical Price for TMW')

Figure contains an axes object. The axes object with title Typical Price for TMW contains an object of type line.

Input Arguments

collapse all

Data for high, low, and closing prices, specified as a matrix, table, or timetable. For matrix input, Data is an M-by-3 matrix of high, low, and closing prices stored in the corresponding columns. Timetables and tables with M rows must contain variables named 'High', 'Low', and 'Close' (case insensitive).

Data Types: double | table | timetable

Output Arguments

collapse all

Typical price series, returned with the same number of rows (M) and the same type (matrix, table, or timetable) as the input Data.


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

Introduced before R2006a