Skip to main content
On this page

Williams Accumulation/Distribution: Formula and Divergence Limits

· 3 min read
Pineify Team
Pine Script and AI trading workflow research team

Williams Accumulation/Distribution (WAD) is a cumulative price-based indicator. It uses the current bar's high, low, and close together with the previous close. It does not use volume or identify which participants bought and sold.

Williams Accumulation Distribution Indicator

How the running total is formed​

For each bar, define true-range high as the greater of the current high and previous close, and true-range low as the lesser of the current low and previous close.

  • If close is above the previous close, add close minus true-range low.
  • If close is below the previous close, add close minus true-range high, a negative contribution.
  • If the closes are equal, add zero.

The cumulative sum forms WAD. These are chart bars, not necessarily days. Pine provides the series as ta.wad; Pineify's registered WAD uses that built-in rather than a volume-based formula.

WAD is not the standard ADL​

The Accumulation/Distribution Line described by TradingView incorporates volume. WAD instead measures price relationships. Removing volume avoids a dependency on that field, but does not prove superior reliability in forex, crypto, or illiquid instruments.

WAD's absolute value depends on its starting history and the price scale. Zero is a cumulative reference, not a universal threshold separating institutional accumulation from distribution. Adding earlier history can shift the cumulative level. Avoid comparing raw WAD magnitudes across differently priced instruments.

Read divergence as a hypothesis​

Bullish divergence means price makes a lower swing low while WAD makes a higher swing low. Bearish divergence compares a higher price high with a lower WAD high. These patterns show a difference between price swings and the cumulative calculation; they do not disclose “smart money” positions.

Define the swing-selection rule and the time at which it becomes observable. A pivot confirmed by later bars must be evaluated at its confirmation time. Divergence can persist or fail without a reversal.

The earlier AAPL 12% rally, Bitcoin crash recovery, and TSLA trade anecdotes do not have an accompanying dataset and are not evidence for the signal.

Add and inspect the registered indicator​

In Pineify, search for Williams Accumulation/Distribution, inspect its line styling, generate the script, and add it through TradingView's Pine Editor. The registered indicator has no calculation-length inputs. Alerts, smoothing, or additional conditions are separate choices, not automatic features of a bare WAD line.

Check the generated chart output and available history. A visual editor does not remove the need to validate compilation and intended behavior.

Evaluate a defined rule​

Choose a timeframe and complete entry/exit rules before testing. Keep an unchanged baseline and an independent evaluation period. Include commissions, slippage, signal confirmation delays, and all losing trades.

No universal rule here excludes every chart below four hours, specifies a profitable win-rate range, or establishes a minimum profit factor. Position sizing and execution assumptions must match the instrument and account. Thirty paper trades can reveal workflow defects; that count alone cannot establish a repeatable trading edge.

How to search for and add indicator pages in the Pineify editor
Pineify Website