Sidechair

ta.accdist

Browse the reference

The accumulation/distribution line: a running total of each bar's close location within its range, multiplied by volume.

Try it in the editor

Each bar contributes ((close - low) - (high - close)) / (high - low) * volume, a value between -volume and +volume that depends on where the close lands in the bar. ta.accdist adds those contributions from the first bar onward.

A bar with no range, where high equals low, contributes 0. As with other cumulative volume lines, the level depends on the history loaded and the slope carries the information.

Type

series float

Remarks

  • Divergence between this line and price is the usual way it is read.

Example

Pine ScriptAccumulation/distributionOpen in editor
//@version=6
indicator("Accumulation/Distribution")
plot(ta.accdist, "A/D", color = color.green)

See also

Runs on Sidechair