ta.wadWilliams Accumulation/Distribution
Williams Accumulation/Distribution accumulates a price-based gain using the current high/low and previous close. Its formula does not use volume or measure cash flows.
Syntax
ta.wadReturns
series float
Remarks
Despite its name, WAD is price-based. Its cumulative level depends on the available history; divergence from price is an observation, not proof of accumulation by a particular investor or a coming reversal.
Code Examples
//@version=6
indicator("Williams Accumulation/Distribution")
plot(ta.wad, color=color.yellow)
// the same on pine
f_wad() =>
trueHigh = math.max(high, close[1])
trueLow = math.min(low, close[1])
mom = ta.change(close)
gain = (mom > 0) ? close - trueLow : (mom < 0) ? close - trueHigh : 0
ta.cum(gain)
plot(f_wad())Trading Applications
Measure accumulation/distribution using true range concepts
Confirm trend direction with Williams A/D
Detect divergences for reversal signals
Compare with standard A/D for additional confirmation
Related Functions
Frequently Asked Questions
Generate ta.wad Code with AI
Draft Pine Script using ta.wad 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.
Related Pine Script Functions
ta.obv - On Balance Volume
Learn about ta.obv built-in variable in Pine Script. Access On Balance Volume for volume-based trend confirmation.
ta.pvt - Price-Volume Trend
Learn about ta.pvt built-in variable in Pine Script. Access Price-Volume Trend for percentage-weighted volume analysis.
ta.accdist - Accumulation/Distribution
Learn about ta.accdist built-in variable in Pine Script. Access the Accumulation/Distribution Index for money flow analysis.
ta.wvad - Williams Variable A/D
Learn about ta.wvad built-in variable in Pine Script. Access Williams Variable Accumulation/Distribution.
ta.mfi() - Money Flow Index
Learn how to use ta.mfi() in Pine Script. Syntax, parameters, code examples for the volume-weighted RSI indicator.