How to Spot Institutional Accumulation Using Chaikin A/D and Accumulation/Distribution

Price tells you where a stock closed. Volume tells you how many shares changed hands. The Chaikin Accumulation/Distribution (A/D) line combines the two. It asks where each day's close landed inside that day's range and weights the answer by volume. When the line rises, closes are landing in the upper part of the range on volume. When it falls, they are landing in the lower part. This guide shows how the number is built, how to read it, and how to pull it from Mboum's API. One caution first: A/D is built from candles alone, so it cannot show who is buying. "Institutional accumulation" is how many traders interpret a rising line, not something the data proves.

How the A/D line is built

Each candle gets a money flow multiplier between -1 and +1:

multiplier = ((close - low) - (high - close)) / (high - low)

A close at the high gives +1, a close at the low gives -1, and a close in the middle gives 0. Multiply the multiplier by the candle's volume to get money flow volume, then add it to a running total. That total is the A/D line.

A worked example with live data

These are AAPL's last two sessions before this post was written, taken from the history endpoint:

  • Nov 19: high 355.28, low 346.47, close 349.21, volume 40,906,900. The multiplier is -0.378, so money flow volume is about -15.46 million.
  • Nov 20: high 354.34, low 340.56, close 342.56, volume 80,464,200. The multiplier is -0.710, so money flow volume is about -57.11 million.

The A/D endpoint returned 4,099,872,600 for Nov 18, 4,084,410,544 for Nov 19 and 4,027,303,153 for Nov 20. The day-to-day changes, -15.46 million and -57.11 million, match the hand calculation. Heavy volume with a close near the low pulled the line down hard on Nov 20. That is distribution, the opposite of accumulation. The same endpoint works for the reverse case, where closes near the highs push the line up.

The two endpoints

  • GET https://api.mboum.com/v1/markets/indicators/ad returns the A/D line in a field named Chaikin A/D. It takes no period settings.
  • GET https://api.mboum.com/v1/markets/indicators/adosc returns the Chaikin Oscillator in a field named ADOSC. It is the difference between a fast and a slow exponential average of the A/D line, 3 and 10 candles by default, set with fast_period and slow_period. It turns the slow-moving line into a momentum reading around zero.

Both cost 2 per call. Send ticker, interval and limit, plus series_type=close for ADOSC.

curl --get "https://api.mboum.com/v1/markets/indicators/ad" \
  --data-urlencode "ticker=AAPL" \
  --data-urlencode "interval=1d" \
  --data-urlencode "limit=3" \
  --header "Authorization: Bearer YOUR_MBOUM_API_KEY"

The body is a list, oldest first, with a Unix timestamp in seconds. These are the last three values from the live response:

[
  {"timestamp": 1795012200, "Chaikin A/D": 4099872600.08},
  {"timestamp": 1795098600, "Chaikin A/D": 4084410544.025},
  {"timestamp": 1795185000, "Chaikin A/D": 4027303153.061}
]

The values are large because they are running totals of volume. The starting level depends on where the series begins, so compare changes over a window, not the level itself. For the same days, ADOSC returned -19.7 million on Nov 16 falling to -53.7 million on Nov 20, which fits the weakening seen above.

Using A/D to confirm a breakout

The common test is whether volume agrees with price:

  • Confirmation: price closes at a new high for the window and the A/D line is at a new high too. Volume-weighted buying supports the move.
  • Divergence: price makes the new high but A/D does not. The move has less volume behind it than the price suggests.
  • Early watch: A/D reaches a new high while price has not yet. Some traders watch for a breakout in this case.

The script below runs that test over a watchlist. It reads 60 daily A/D values and the daily history, lines them up by timestamp, and checks the last 20 trading days.

import time

import requests

HEADERS = {"Authorization": "Bearer YOUR_MBOUM_API_KEY"}
AD_URL = "https://api.mboum.com/v1/markets/indicators/ad"
HISTORY_URL = "https://api.mboum.com/v1/markets/stock/history"

WATCHLIST = ["AAPL", "MSFT", "NVDA", "AMD", "TSLA"]
WINDOW = 20  # trading days used for the "highest of the last N days" test


def get_body(url, params):
    resp = requests.get(url, headers=HEADERS, params=params, timeout=30)
    resp.raise_for_status()
    data = resp.json()
    body = data.get("body")
    if data.get("success") is False or not body:
        raise ValueError(data.get("message") or "No data returned")
    return body


def fetch_ad(symbol):
    body = get_body(AD_URL, {"ticker": symbol, "interval": "1d", "limit": 60})
    return {row["timestamp"]: row["Chaikin A/D"] for row in body}


def fetch_closes(symbol):
    body = get_body(HISTORY_URL, {"ticker": symbol, "interval": "1d"})
    return {c["date_utc"]: c["close"] for key, c in body.items() if key != "events"}


def check(symbol):
    ad = fetch_ad(symbol)
    closes = fetch_closes(symbol)
    stamps = sorted(set(ad) & set(closes))[-WINDOW:]
    last = stamps[-1]

    price_high = closes[last] >= max(closes[t] for t in stamps)
    ad_high = ad[last] >= max(ad[t] for t in stamps)
    ad_change = ad[last] - ad[stamps[0]]

    if price_high and ad_high:
        verdict = "CONFIRMED  price and A/D both at window highs"
    elif price_high:
        verdict = "DIVERGENCE price at window high, A/D is not"
    elif ad_high:
        verdict = "WATCH      A/D at window high, price is not"
    else:
        verdict = "no signal"
    return closes[last], ad_change, verdict


def main():
    print(f"Window: last {WINDOW} trading days")
    for symbol in WATCHLIST:
        try:
            close, ad_change, verdict = check(symbol)
        except (requests.RequestException, ValueError) as exc:
            print(f"{symbol:<6} skipped: {exc}")
            continue
        print(f"{symbol:<6} close {close:>9.2f}  A/D change {ad_change / 1e6:>+10.1f}M  {verdict}")
        time.sleep(0.3)


if __name__ == "__main__":
    main()

Each symbol costs 3: the A/D call at weight 2 and the history call at weight 1. Output looks like this, with a made-up symbol:

XYZ    close    129.50  A/D change     +190.0M  CONFIRMED  price and A/D both at window highs

Best practices

  • Use daily candles for this test. On 1h candles the final bar can have zero volume, which leaves the last two A/D values identical.
  • Skip the events key. If you add diffandsplits=true to the history call, the body gains an events key that is not a candle. The script skips it.
  • Check for failures. A bad ticker can return HTTP 200 with "success": false, and a bad parameter returns HTTP 422.
  • Treat A/D as one input. It ignores gaps between sessions, because it looks only at each candle's own range. Pair it with momentum, as in our guide to RSI, MACD and ADX.

Next steps

Run the script on your own watchlist and compare its flags with the price chart. For all parameters, see the API documentation, and get a free key at mboum.com/pages/api.

The data is for information only. It is not investment advice.