| Financial Time Series Toolbox | ![]() |
Syntax
pvt = pvtrend(closep, tvolume) pvt = pvtrend([closep tvolume]) pvtts = pvtrend(tsobj) pvtts = pvtrend(tsobj, ParameterName, ParameterValue, ...)
Arguments
closep |
Closing price |
tvolume |
Volume traded |
tsobj |
Financial time series object |
Description
pvt = pvtrend(closep, tvolume)
calculates the Price and Volume Trend (PVT) from the stock closing price (closep) data and the volume traded (tvolume) data.
pvt = pvtrend([closep tvolume])
accepts a two-column matrix in which first column contains the closing prices (closep) and the second contains the volume traded (tvolume).
pvtts = pvtrend(tsobj)
calculates the PVT from the stock data contained in the financial time series object tsobj. The object tsobj must contain the closing price series Close and the volume traded series Volume. The output pvtts is a financial time series object with dates similar to tsobj and a data series named PVT.
pvtts = pvtrend(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 PVT for Disney stock and plot the results:
load disney.mat dis_PVTrend = pvtrend(dis) plot(dis_PVTrend) title('Price and Volume Trend for Disney')
Reference
Achelis, Steven B., Technical Analysis from A To Z, Second printing, McGraw-Hill, 1995, pp. 239 - 240.
| prcroc | rdivide | ![]() |