VolumePine Script v6Built-in Variable

ta.accdistAccumulation/Distribution Index

Accumulation/distribution index. Accumulates volume weighted by the close location within each bar, rather than measuring actual cash transfers or trader identities.

TradingView language reference

Syntax

Syntax
ta.accdist

Returns

series float

Code Examples

Pine Script v6 Example
//@version=6
indicator("Accumulation/Distribution")
plot(ta.accdist, color=color.yellow)

Trading Applications

Compare price trends with a close-location-weighted volume series

Detect divergences between price and accumulation

Study price/volume divergence without inferring institutional ownership

Test divergence hypotheses; divergence does not guarantee a reversal

Related Functions

Frequently Asked Questions

ta.accdist is the Accumulation/Distribution line: a cumulative volume-based measure that weights volume by where the close sits within the bar range, then sums over time.

Rising A/D with rising price suggests confirming volume flow. If price rises but A/D falls (or the reverse), traders watch for possible weakness or hidden strength.

OBV adds or subtracts full volume by the sign of the close change. A/D scales volume by the close location in the high-low range (money flow multiplier), so they can diverge in detail.

Generate ta.accdist Code with AI

Draft Pine Script using ta.accdist with Pineify's AI Coding Agent, then review the arguments and test the result on your chart. Usage depends on your plan and available credits.