Docs

ta.wad

Track cumulative buying and selling pressure from the close against the prior close, without volume.

itm
ta.wad(bars)

Williams Accumulation/Distribution: the running total of (close - min(low, close[1])) on bars that closed up, (close - max(high, close[1])) on bars that closed down, and 0 on an unchanged close, read from bars. It is not weighted by volume, which is the difference from ta.accdist. Accumulated from the first bar of the run with no session anchor.

Parameters

A series parameter takes a value on every bar. A constant parameter must be known before the first bar, such as a number or an input.

NameKindTypeUnitDefaultRangeDescription
barsConstantbarsbarsna-Which bars to read: a declared series, or na for the chart's own.

Output

NameTypeUnit
valuenumber-

Warm-up and missing values

Warm-up
2 bars.
Missing values
na until a second bar has been seen (the previous close is needed). A bar this cannot be computed on leaves the running total where it was. It does not reset it and does not restart the accumulation.

Example

itm
ta.wad()
itm
plot(ta.wad(), "Accumulation without volume")