The Williams Accumulation/Distribution (AD) is calculated using the following formula:
Williams AD = Today’s Accumulation/Distribution + Yesterday’s Williams AD - where:
AD = Today’s Price Move x Today’s Volume
Today’s Price Move = one of the following:
Today’s Close - True Range Low (if today’s close is greater than yesterday’s close)
Today’s Close - True Range High (if today’s close is less than yesterday’s close)
Zero (if today’s close is equal to yesterday’s close)
True Range High = the greater of today’s high price and yesterday's closing price
True Range Low = the lesser of today’s low price and yesterday's closing price
On the settings modal, users have the option to toggle between ‘Use Volume’ yes/no. When 'yes' is selected, the Williams Accumulation/Distribution (AD) is calculated using the above formula. When the toggle is set to 'no', volume is not used to calculate the AD value. This means that the indicator will only take today's price move and add it to yesterday's price move.