Financial Time Series    
onbalvol

On-Balance Volume (OBV)

Syntax

Arguments

closep
Closing price (vector)
tvolume
Volume traded
tsobj
Financial time series object

Description

obv = onbalvol(closep, tvolume) calculates the On-Balance Volume (OBV) from the stock closing price (closep) and volume traded (tvolume) data.

obv = onbalvol([closep tvolume]) accepts a two-column matrix representing the closing price (closep) and volume traded (tvolume), in that order.

obvts = onbalvol(tsobj) calculates the On-Balance Volume from the stock data in the financial time series object tsobj. The object must minimally contain series names Close and Volume. obvts is a financial time series object with the same dates as tsobj and a series named OnBalVol.

obvts = onbalvol(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.

Example

Compute the On-Balance Volume for Disney stock and plot the results.

See Also

negvolidx

Reference

Achelis, Steven B., Technical Analysis From A To Z, Second Printing, McGraw-Hill, 1995, pg. 207 - 209


 negvolidx peravg