Products & Services Solutions Academia Support User Community Company

Learn more about Financial Toolbox   

typprice - Typical price

Syntax

tprc = typprice(highp, lowp, closep)
tprc = typprice([highp lowp closep])
tprcts = typprice(tsobj)
tprcts = typprice(tsobj, ParameterName, ParameterValue, ...)

Arguments

highp

High price (vector).

lowp

Low price (vector).

closep

Closing price (vector).

tsobj

Financial time series object.

Description

tprc = typprice(highp, lowp, closep) calculates the typical prices tprc from the high (highp), low (lowp), and closing (closep) prices. The typical price is the average of the high, low, and closing prices for each period.

tprc = typprice([highp lowp closep]) accepts a three-column matrix as the input rather than two individual vectors. The columns of the matrix represent the high, low, and closing prices, in that order.

tprcts = typprice(tsobj) calculates the typical prices from the stock data contained in the financial time series object tsobj. The object must contain, at least, the High, Low, and Close data series. The typical price is the average of the closing price plus the high and low prices. tprcts is a financial time series object of the same dates as tsobj containing the data series TypPrice.

tprcts = typprice(tsobj, ParameterName, ParameterValue, ...) accepts parameter name/parameter value pairs as input. These pairs specify the name(s) for the required data series if it is different from the expected default name(s). Valid parameter names are

Parameter values are the strings that represent the valid parameter names.

Examples

Compute the typical price for Disney stock and plot the results:

load disney.mat
dis_Typ = typprice(dis);  
plot(dis_Typ)
title('Typical Price for Disney')

References

Achelis, Steven B., Technical Analysis from A to Z, Second printing, McGraw-Hill, 1995, pp. 291 - 292.

See Also

medprice, wclose

  


Free Interactive Computational Finance CD

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