ta.wad - Pine Script Variable
ta.wad
Section titled “ta.wad”Overview
Section titled “Overview”Williams Accumulation/Distribution.
floatQualifier
Section titled “Qualifier”series
Examples
Section titled “Examples”Example 1
Section titled “Example 1”//@version=6indicator("Williams Accumulation/Distribution")plot(ta.wad, color=color.yellow)// the same on pinef_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())