Also Known as William's A/D
There are no inputs. It automatically calculates based on cumulative total of values.
Here is description from TC2000
Williams Accumulation Distribution
Williams AD is a running sum of positive accumulation values (buying pressure) and negative distribution values (selling pressure), as determined by price's location within a given day's true range.
To calculate the Williams' Accumulation/Distribution indicator, determine:
True Range High (TRH) = Yesterday's close or today's high whichever is greater
True Range Low (TRL) = Yesterday's close or today's low whichever is less
The day's accumulation/distribution is then calculated by comparing today's closing price to yesterday's closing price.
If today's close is greater than yesterday's close: Today's A/D = today's close - TRL
If today's close is less than yesterday's close: Today's A/D = today's close - TRH
If today's close is the same as yesterday's close then the A/D is zero.
The Williams' Accumulation/Distribution indicator is a cumulative total of the daily values:
Williams A/D = Today's A/D + Yesterday's Williams A/D
Williams states it's worth selling if the price makes a new high and the indicator fails to follow suit. As well, it's better to purchase if prices fall to a new bottom yet the A/D indicator fails to reach a new low.
Here is code from Trade Navigator but it references a built in function. Makes sense from description above though.
CumulativeSum (Iff (Close > Close.1 , Close - True Low , Iff (Close < Close.1 , Close - True High , 0)))
Anyone know how to code William's Accumulation Distribution
-
- Posts: 2
- Joined: 26 Sep 2011
- Has thanked: 6 times
- TJ
- Posts: 7742
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times
Re: Anyone know how to code William's Accumulation Distribut
Look under oscillators:Also Known as William's A/D
::[/img]
tradersXchange
http://www.tradersxchange.com/index.php