TTR (version 0.23-1)

chaikinAD: Chaikin Accumulation / Distribution

Description

The Chaikin Accumulation / Distribution (AD) line is a measure of the money flowing into or out of a security. It is similar to On Balance Volume (OBV). Developed by Marc Chaikin.

Usage

chaikinAD(HLC, volume)

Arguments

HLC

Object that is coercible to xts or matrix and contains High-Low-Close prices.

volume

Vector or matrix of volume observations corresponding to the HLC object.

Value

A object of the same class as HLC and volume or a vector (if try.xts fails) containing the accumulation / distribution values.

Details

The AD line is similar to OBV; the difference is that OBV sums volume multiplied by +/- 1 if the close is higher/lower than the previous close, while the AD line multiplies volume by the close location value (CLV).

References

The following site(s) were used to code/document this indicator: http://www.fmlabs.com/reference/AccumDist.htm http://www.equis.com/Customer/Resources/TAAZ/?c=3&p=27 http://www.linnsoft.com/tour/techind/acc_dis.htm http://stockcharts.com/education/IndicatorAnalysis/indic_AccumDistLine.html

See Also

See OBV, and CLV.

Examples

Run this code
# NOT RUN {
data(ttrc)
ad <- chaikinAD(ttrc[,c("High","Low","Close")], ttrc[,"Volume"])
# }

Run the code above in your browser using DataCamp Workspace