indicator · own pane · open source
Accumulation/Distribution
Running…
Loading chart…
About
Accumulation/Distribution Line cumulatively weights volume by where the close sits inside the bar's range — a classic A/D flow tracker.
- Rising A/D = buyers absorbing supply; falling = sellers dumping.
- Divergences between A/D and price often precede the actual turn.
Source code
//@version=5
indicator("Accumulation/Distribution", overlay=false)
mfm = close == high and close == low or high == low ? 0.0 : ((close - low) - (high - close)) / (high - low)
ad = ta.cum(mfm * volume)
p_A_D = plot(ad, "A/D", color=color.blue, linewidth=2)
No comments yet.
Sign in to comment.