Accumulation/distribution

accdistvolumeForge API 1

Volume weighted by where the close sits in the bar.

Inputs

NameTypeDefault
volumevolumetick

Outputs

NameTypeRequiredDescription
accdistvalueOptionalcolor theme.accent, style line, width 1
Warm-up
0 bars (0 at the defaults)
Repaints
No
Parity
TA-Lib, within 1e-9

Formula

The running total of ((close - low) - (high - close)) / (high - low) * volume

A bar with no range adds 0.