powered by
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 series that is coercible to xts or matrix.
Volume series that is coercible to xts or matrix, that corresponds to price object.
A object of the same class as price and volume or a vector (if try.xts fails) containing the OBV values.
price
volume
try.xts
OBV is calculated by adding (subtracting) each day's volume to a running cumulative total when the security's price closes higher (lower).
The following site(s) were used to code/document this indicator: http://www.fmlabs.com/reference/OBV.htm https://www.metastock.com/Customer/Resources/TAAZ/?p=82 https://www.linnsoft.com/techind/balance-open-interest http://www.stockcharts.com/school/doku.php?id=chart_school:technical_indicators:on_balance_volume_obv
See chaikinAD.
chaikinAD
# NOT RUN { data(ttrc) obv <- OBV(ttrc[,"Close"], ttrc[,"Volume"]) # }
Run the code above in your browser using DataLab