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.
Syntax
ta.accdistReturns
series float
Code Examples
//@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
Frequently Asked Questions
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.
Related Pine Script Functions
ta.obv - On Balance Volume
Learn about ta.obv built-in variable in Pine Script. Access On Balance Volume for volume-based trend confirmation.
ta.pvt - Price-Volume Trend
Learn about ta.pvt built-in variable in Pine Script. Access Price-Volume Trend for percentage-weighted volume analysis.
ta.wad - Williams A/D
Learn about ta.wad in Pine Script. Calculate cumulative price movement using true highs and lows; this formula does not use volume.
ta.wvad - Williams Variable A/D
Learn about ta.wvad built-in variable in Pine Script. Access Williams Variable Accumulation/Distribution.
ta.mfi() - Money Flow Index
Learn how to use ta.mfi() in Pine Script. Syntax, parameters, code examples for the volume-weighted RSI indicator.