OBV {TTR} | R Documentation |
On Balance Volume (OBV) is a measure of the money flowing into or out of a security. It is similar to Chaikin Accumulation / Distribution.
OBV(price, volume)
price |
Price series to use. |
volume |
Vector or matrix of volume observations corresponding
to price object. |
OBV is calculated by adding (subtracting) each day's volume to a running cumulative total when the security's price closes higher (lower).
A vector containing the OBV values.
OBV is usually compared with the price chart of the underlying security to look for divergences/confirmation.
Josh Ulrich
The following site(s) were used to code/document this indicator:
http://www.fmlabs.com/reference/OBV.htm
http://www.equis.com/Customer/Resources/TAAZ?c=3&p=82
http://linnsoft.com/tour/techind/obVol.htm
http://stockcharts.com/education/IndicatorAnalysis/indic-obv.htm
See chaikinAD
.
data(ttrc) obv <- OBV(ttrc[,"Close"], ttrc[,"Volume"])