Documentation

pvtrend

Price and Volume Trend (PVT)

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.

ParameterName

Valid parameter names are:

  • CloseName: closing prices series name

  • VolumeName: volume traded series name

ParameterValue

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

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 the 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). Parameter values are the strings that represent the valid parameter names.

Examples

expand all

Calculate the Price and Volume Trend (PVT)

This example shows how to calculate 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')

References

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

Was this topic helpful?