VolumePine Script v6Built-in Variable

ta.wvadWilliams Variable Accumulation/Distribution

Williams Variable Accumulation/Distribution. Measures the relationship between price range and volume.

TradingView language reference

Syntax

Syntax
ta.wvad

Returns

series float

Remarks

The ratio is undefined when high equals low and requires usable volume. Candle direction weighted by volume is a proxy; it does not classify actual buyer- or seller-initiated trades.

Code Examples

Pine Script v6 Example
//@version=6
indicator("Williams Variable Accumulation/Distribution")
plot(ta.wvad, color=color.yellow)

// the same on pine
f_wvad() =>
    (close - open) / (high - low) * volume

plot(f_wvad())

Trading Applications

Measure buying/selling pressure relative to price range

Identify volume-weighted directional bias

Confirm breakouts with WVAD direction

Use as a component in custom volume analysis

Related Functions

Frequently Asked Questions

ta.wvad is Williams Variable A/D: a per-bar measure combining the candle body direction and size versus total range, scaled by volume.

A common form is (close − open) / (high − low) × volume on each bar, reflecting how much of the bar range is directional body movement, weighted by volume.

ta.wad is a cumulative Williams A/D line. ta.wvad is a non-cumulative bar-by-bar series that uses volume; ta.wad uses a cumulative price-only gain. They answer different analytical questions.

Generate ta.wvad Code with AI

Draft Pine Script using ta.wvad 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.