AD
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
inHigh— High price of each barinLow— Low price of each barinClose— Close price of each barinVolume— Volume of each bar
Outputs
outReal— Cumulative A/D line value per bar
Properties
Numerical Stability: Path-Dependent
| Display Flags |
|---|
| ☐ Overlap Input |
| ✅ Independent Y-Axis i |
| ☐ Candlestick |
Implementation
TA-Lib Definition: ad.c · ad.yaml
| Native | File |
|---|---|
| C | ta_AD.c |
| Rust | ad.rs |
| Java | Core_AD.java |
TA-Lib is also available for Python, R and more using a wrapper.
Aliases
Chaikin A/D Line, Accumulation/Distribution Line, Accumulation Distribution