Accumulation/Distribution Line (A/D) explained
By Oalgo · Last reviewed
The Accumulation/Distribution line (A/D line) is a running total of volume, where each candle adds or subtracts a share of its volume depending on where it closes inside its high-to-low range. A close near the high adds most of the volume, and a close near the low subtracts most of it. It has no setting.
How is the A/D line calculated?
#- For each candle, work out the multiplier: ((close − low) − (high − close)) ÷ (high − low). It is +1 when the close is at the high, 0 in the middle of the range and −1 at the low. A candle with no range (high = low) counts as 0.
- Multiply the multiplier by the candle's volume. That is what the candle adds to the line.
- A/D line = the running total of what every candle has added so far.
- The first candle adds its own amount, so the line starts there and not at 0.
What does a worked example look like?
#| Candle | High | Low | Close | Volume | Multiplier | Adds | A/D line |
|---|---|---|---|---|---|---|---|
| 1 | 110 | 100 | 108 | 100 | +0.6 | +60 | 60 |
| 2 | 112 | 104 | 106 | 200 | −0.5 | −100 | −40 |
| 3 | 109 | 103 | 109 | 50 | +1 | +50 | 10 |
| 4 | 108 | 108 | 108 | 300 | 0 (no range) | 0 | 10 |
Candle 4 had the most volume of the four, but it has no range, so it adds nothing. The A/D number itself means little, because it depends on where the series starts. What counts is the direction of the line and whether it agrees with price.
How do you read the A/D line?
#| What you see | What it suggests |
|---|---|
| A/D rising along with price | Candles have mostly closed in the upper part of their ranges, with volume behind them. |
| A/D falling along with price | Candles have mostly closed in the lower part of their ranges, with volume behind them. |
| Price makes a new high but A/D does not | Closes sat lower in their ranges than at the earlier high. Often called a divergence. |
| A/D rising while price is flat | Candles are closing in the upper part of their ranges even though price is not moving up. Often called accumulation. |
| A/D falling while price is flat | Candles are closing in the lower part of their ranges even though price is not moving down. Often called distribution. |
A/D looks only inside each candle. A candle that closes at its high adds its full volume even if it opened far below the close of the candle before, because the gap is ignored.
How is the A/D line different from OBV and Chaikin Money Flow?
#| A/D line | OBV | CMF | |
|---|---|---|---|
| How a candle's volume is counted | A share of it, set by where the close sits in the range | All of it, added or subtracted by whether the close is above or below the last close | A share of it, the same as the A/D line |
| What is drawn | A running total | A running total | The total over 20 candles divided by the volume of those 20 candles |
| Scale | Open, depends on where it starts | Open, depends on where it starts | −1 to +1 |
| Setting | None | None (its optional EMA line has 14) | 20 candles |
OBV and Chaikin Money Flow have their own pages. CMF uses the same multiplier as the A/D line, but looks at a 20-candle window instead of a running total.
How do people use the A/D line in rules?
#- The A/D line higher than it was a set number of candles ago, as a check that volume agrees with a rise in price.
- A new highest A/D of the last N candles at the same time as a new price high.
- Price making a new high while the A/D line is lower than at the earlier high, often called a divergence.
- The A/D line next to a trend indicator, so that two conditions must agree.
What can the A/D line not tell you?
#The A/D line only knows where the close sits inside its candle and how much volume the candle had. It cannot tell who was buying or selling, and it ignores any gap from the candle before. One candle with very large volume can move the line a lot. Test any rule on past prices with a backtest, then forward test it.
In Oalgo you can tell Oalgo AI your A/D line rule in your own words, check the rule it builds, and test it. After testing, if you choose, you Go Live with your own Live Strategy on your own Venue Account at a Supported Venue.
Read next
- OBV (On-Balance Volume) explained: how to read itOBV adds a candle's volume when price closes up and subtracts it when price closes down. Learn how OBV is calculated, how to read it, and how to test rules.
- Chaikin Money Flow (CMF) explained: how to read itChaikin Money Flow shows where candles close in their range, weighted by volume, from −1 to +1. See the formula, how to read CMF, and how to test rules.