AD
Summary
Chaikin Accumulation/Distribution Line, a cumulative volume-flow indicator. Sums a volume-weighted money-flow multiplier per bar to gauge buying vs. selling pressure. Rising line = accumulation (buying pressure); falling = distribution.
Formula
MFM = ((close-low) - (high-close)) / (high-low); AD_t = AD_{t-1} + MFM_t * volume_t (running sum, seeded at 0)
Inputs
inPriceHLCV— High, low, close, and volume series
Outputs
outReal— Cumulative A/D line value per bar
Implementation
TA-Lib Definition: ad.c · ad.yaml
| Native | File |
|---|---|
| C | ta_AD.c |
| Rust | ad.rs |
| Java | Core.java |
TA-Lib is also available for Python, R and more using a wrapper.
Aliases
Chaikin A/D Line, Accumulation/Distribution Line, Accumulation Distribution