OPEN-SOURCE SCRIPT
Updated Williams Accumulation/Distribution

This is an indicator described by Larry Williams in one of his books. Larry won the 1987 World Cup Championship of Futures Trading, where he turned $10,000 to over $1,100,000 in a 12-month competition with real money.
Larry used this indicator to track divergences between price action and volume, which he called patterns of accumulation (bullish divergence) and distribution(bearish divergence). Its logic is similar to On Balance Volume(OBV), where it accumulates up and down volume in a single line, but also takes into account the size of the candle in its calculation, by taking the difference between the open and close, and the high and the low.
Enjoy!
Larry used this indicator to track divergences between price action and volume, which he called patterns of accumulation (bullish divergence) and distribution(bearish divergence). Its logic is similar to On Balance Volume(OBV), where it accumulates up and down volume in a single line, but also takes into account the size of the candle in its calculation, by taking the difference between the open and close, and the high and the low.
Enjoy!
Release Notes
Updated to pinescript V5Added Moving Average cloud, with option to disable it
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
@FractalTrade_
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
@FractalTrade_
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.