Sidechair

ta.wvad

Browse the reference

Williams variable accumulation/distribution: the bar's close-to-open move as a share of its range, times volume.

Try it in the editor

ta.wvad is (close - open) / (high - low) * volume for the current bar. It is positive on bullish bars and negative on bearish ones, larger when the body fills more of the range.

Unlike the cumulative volume lines, this variable is not a running total, so each bar stands alone. Sum it with math.sum or ta.cum to accumulate.

Type

series float

Remarks

  • A bar with zero range gives na.

Example

Pine ScriptSmoothed variable A/DOpen in editor
//@version=6
indicator("WVAD")
plot(ta.wvad, "WVAD", color = color.new(color.blue, 60), style = plot.style_columns)
plot(math.sum(ta.wvad, 14), "14-bar sum", color = color.orange)

See also

Runs on Sidechair