Is money flowing in or out? Accumulation/Distribution, Chaikin Money Flow and the Chaikin Oscillator
Short answerMarc Chaikin's three indicators estimate it from where each bar closes within its high-to-low range, weighted by volume: a close near the high counts most of the volume as buying pressure, a close near the low as selling pressure. The Accumulation/Distribution Line keeps a running total, Chaikin Money Flow compares the last 20 bars' total with their volume, from −1 to +1, and the Chaikin Oscillator tracks how fast the total changes. They are estimates from candle shapes that ignore gaps between bars: in this lesson's synthetic example, a stock gaps up and closes 4.6% higher but near its low, and the A/D Line counts 2.8 million of its 4.0 million shares as selling.
Every share bought is also sold, so "money flow" is a figure of speech, and these lines can disagree with price for a long time. Use them to judge whether a price move has volume behind it, as a check on price, not as a signal on their own.
Valmy noteValmy's v1 strategy language includes the simple moving average and no other indicator, so the Accumulation/Distribution Line, Chaikin Money Flow and the Chaikin Oscillator are taught here for reading charts (as of 26 November 2026).
The money flow multiplier: where the close sits in the bar#
All three indicators start from one number per bar, the money flow multiplier, which says where the close sits between the bar's low and high. It is +1 when the close equals the high, 0 at the exact midpoint and −1 at the low:
money flow multiplier = ((close − low) − (high − close)) ÷ (high − low)
Multiplying it by the bar's volume gives the bar's money flow volume. A bar of 10,000 shares that closes three-quarters of the way up its range has a multiplier of +0.5 and a money flow volume of +5,000.
The name "money flow" is a figure of speech. Every share bought was sold by someone, so no money literally enters or leaves a stock. The idea behind the multiplier is that a close near the high shows buyers were willing to pay up into the end of the bar, while a close near the low shows sellers were pressing. Chaikin has written that the idea rests on his observation that the largest buyers tend to act toward the end of the trading day. Notice what the formula leaves out: the open and the previous close. A bar that gaps up 5% and closes near its low counts as selling. The sections below show where that matters.
Accumulation/Distribution Line: a running total of money flow volume#
The Accumulation/Distribution Line (A/D Line or ADL) adds each bar's money flow volume to a running total, so it rises when bars close in the upper part of their ranges on heavy volume and falls when they close in the lower part. Its inputs are the high, low, close and volume of each bar. Its unit is the instrument's volume unit (shares for a stock, coins for a crypto pair), and its level has no meaning on its own, because it depends on the bar where the total started. It has no lookback setting. Traders read its direction: a rising line with rising prices is taken as confirmation, and a falling line under rising prices as a warning. Marc Chaikin developed it. StockCharts' ChartSchool notes that Chaikin first called it the Cumulative Money Flow Line, and Chaikin's own account places the work after his study of on-balance volume and an earlier accumulation/distribution measure in the 1970s.
Calculating the A/D Line step by step#
To calculate the A/D Line, compute each bar's multiplier, multiply by volume and keep a running sum. In the ten daily bars below (a synthetic stock, synthetic data), the close rises from 50.50 to 52.00, but the A/D Line peaks at 26,000 on bar 3 and ends at 1,000. Each range is 2.00, so the multipliers come out in simple steps.
| Bar | High | Low | Close | Volume | Multiplier | Money flow volume | A/D Line |
|---|---|---|---|---|---|---|---|
| 1 | 51.00 | 49.00 | 50.50 | 10,000 | +0.5 | +5,000 | 5,000 |
| 2 | 52.00 | 50.00 | 51.50 | 12,000 | +0.5 | +6,000 | 11,000 |
| 3 | 52.50 | 50.50 | 52.50 | 15,000 | +1.0 | +15,000 | 26,000 |
| 4 | 53.00 | 51.00 | 51.50 | 14,000 | −0.5 | −7,000 | 19,000 |
| 5 | 52.50 | 50.50 | 51.50 | 9,000 | 0.0 | 0 | 19,000 |
| 6 | 53.50 | 51.50 | 53.00 | 11,000 | +0.5 | +5,500 | 24,500 |
| 7 | 54.00 | 52.00 | 52.00 | 16,000 | −1.0 | −16,000 | 8,500 |
| 8 | 53.00 | 51.00 | 51.50 | 13,000 | −0.5 | −6,500 | 2,000 |
| 9 | 52.00 | 50.00 | 50.50 | 12,000 | −0.5 | −6,000 | −4,000 |
| 10 | 52.50 | 50.50 | 52.00 | 10,000 | +0.5 | +5,000 | 1,000 |
Two rows worked out in full:
- Bar 1: ((50.50 − 49.00) − (51.00 − 50.50)) ÷ (51.00 − 49.00) = (1.50 − 0.50) ÷ 2.00 = +0.5. Money flow volume = 0.5 × 10,000 = +5,000. The line starts at 5,000.
- Bar 7: ((52.00 − 52.00) − (54.00 − 52.00)) ÷ 2.00 = −1.0, a close at the very low. Money flow volume = −16,000, so the line drops from 24,500 to 8,500.
Over the ten bars the close rose from 50.50 to 52.00, but the A/D Line peaked at 26,000 on bar 3 and ended at 1,000. Most of the heavy-volume bars after bar 3 closed in the lower half of their ranges. That gap between price and the A/D Line is what traders call a divergence.
Reading the A/D Line on a chart#
On a chart, read the A/D Line by comparing its direction with price. In Figure 1 the A/D Line peaks at session 30 and falls while the closes keep rising to a high at session 47, a bearish divergence that this designed example follows with a decline. The chart shows 86 daily sessions of a synthetic stock with overnight gaps (synthetic data). Price climbs for 30 sessions, then spends 20 sessions edging higher while every session closes in the lower half of its range, then falls and settles into a range.
Three labeled points:
- A, session 21. Price closes at 45.30 and the A/D Line, at 7.7 million shares, is rising with it. Up sessions are closing near their highs on solid volume. A trader would read this as volume confirming the trend.
- B, session 47. The close reaches its highest level, 50.81, 8.6% above the close at session 30, when the A/D Line peaked at 13.1 million. Yet the A/D Line has fallen to −3.8 million. Every one of the 20 shaded sessions closed in the lower half of its range, many after long upper wicks. This is a bearish divergence: price makes a new high, the money flow estimate does not.
- C, session 61. Price has fallen to 44.65 and the A/D Line is at −11.8 million. Here the divergence was followed by a decline.
This synthetic example was designed so that the divergence resolved. The section on Chaikin Money Flow below shows one that never did. A divergence says that the closes were weak relative to the ranges, not when or whether price will turn.
When the A/D Line misleads: gaps between bars#
The A/D Line misleads when a bar gaps, because the multiplier looks only inside the bar and ignores the move from the previous close. A stock that gaps up on news and then closes near the low of the day counts as heavy distribution, even if it gained several percent and held the gain. On-balance volume (OBV), explained in Is volume confirming the move? On-balance volume and relative volume, does the opposite: it adds the whole day's volume when the close is above the previous close.
The numbers for session 11 (synthetic data):
- Multiplier: ((52.30 − 52.00) − (54.00 − 52.30)) ÷ (54.00 − 52.00) = (0.30 − 1.70) ÷ 2.00 = −0.7.
- A/D Line change: −0.7 × 4,000,000 = −2,800,000 shares.
- OBV change: the close of 52.30 is above the previous close of 50.00, so OBV adds all 4,000,000 shares.
- Price: +4.6% on the day. The low of every later session stays at or above 52.00, and the last close is 53.90.
By the end of the chart the A/D Line is at −0.63 million, below its pre-gap level of 0.10 million, while OBV has risen from −0.92 million to 8.68 million. A trader reading only the A/D Line would have seen distribution in a stock that gapped up and held. Neither indicator is right in general. They measure different things: the A/D Line measures the close within the day, and OBV measures the close against yesterday.
Two smaller traps: the level of the A/D Line depends on where the data starts, so two platforms can show different numbers for the same stock on the same day; and a bar whose high equals its low has no range, so it adds nothing (TA-Lib skips it, and this lesson's calculation sets its multiplier to 0).
Chaikin Money Flow: the 20-bar balance of buying and selling pressure#
Chaikin Money Flow (CMF) adds up the money flow volume of the last 20 bars and divides by the total volume of those bars, which turns the A/D idea into a bounded reading from −1 to +1. A value of +0.25 means the volume-weighted closes sat well into the upper halves of their ranges over the window; −0.25 means the lower halves. Its inputs are high, low, close and volume. It has no unit, because volume cancels out. Its default lookback is 20 bars in TA-Lib and StockCharts, and both StockCharts and TradingView say 20 or 21 are the usual choices. Marc Chaikin developed it. A reading of +1 would need every bar in the window to close at its high, so in practice StockCharts describes values as usually staying between −0.5 and +0.5.
Calculating Chaikin Money Flow step by step#
To calculate Chaikin Money Flow, add the money flow volume of the last n bars and divide by their total volume. Using the ten bars from the A/D example above and a short window of 5 bars so the arithmetic stays visible (the default is 20):
- At bar 5: money flow volume 5,000 + 6,000 + 15,000 − 7,000 + 0 = 19,000. Volume 10,000 + 12,000 + 15,000 + 14,000 + 9,000 = 60,000. CMF(5) = 19,000 ÷ 60,000 = +0.317.
- At bar 10: money flow volume 5,500 − 16,000 − 6,500 − 6,000 + 5,000 = −18,000. Volume 11,000 + 16,000 + 13,000 + 12,000 + 10,000 = 62,000. CMF(5) = −18,000 ÷ 62,000 = −0.290.
Over the first five bars, buying pressure dominated. Over the last five, selling pressure did, even though bar 10 closed higher than bar 5. Over all ten bars, the money flow volumes sum to the final A/D value of 1,000 and the volume to 122,000, so CMF(10) is only +0.008: the window length decides which story the number tells.
Reading Chaikin Money Flow on a chart#
On a chart, read Chaikin Money Flow by its sign and by the direction it is moving relative to price. Figure 3 uses the same 86 synthetic sessions as Figure 1 (synthetic data), with CMF(20) below. In this example CMF turned negative 11 sessions before the highest close.
- +0.30 at session 30. Through the climb, CMF(20) stayed between +0.19 and +0.30 over sessions 20 to 30. A trader would read steady buying pressure.
- Below zero at session 36. CMF crossed below zero with the close at 48.29, 11 sessions before the highest close of 50.81. The window now held more weak closes than strong ones.
- −0.41 at session 50. The low came after the top, as price started to fall. In the final range CMF drifted back toward zero, between −0.14 and +0.03 over the last 16 sessions, as buying and selling pressure alternated.
Zero-line crossings can flip back and forth. StockCharts illustrates buffers, for example treating only readings above +0.05 or below −0.05 as meaningful, to cut down the number of crossings. A buffer reduces whipsaws but makes every signal later.
When Chaikin Money Flow misleads: a divergence that never resolves#
Chaikin Money Flow misleads when price keeps rising while most bars close in the lower half of their ranges, because the bearish divergence it shows may never be followed by a decline. Figure 4 was designed to show this: a synthetic pair that trades around the clock, so each daily bar opens at the previous close, climbs steadily with long upper wicks (synthetic data).
How the numbers fit together:
- 63% of the bars close above their open, so price climbs from 110.16 at bar 20 to 147.25 at bar 120, a 33.7% gain.
- 84% of the bars have a negative multiplier: they trade well above the close during the bar and finish in the lower half of the range.
- CMF(20) is negative on every bar from bar 20 to bar 120, between −0.30 and −0.15.
A trader who sold or shorted on the divergence would have been wrong for the entire chart. The multiplier measures the shape of each bar, not whether the bar made progress from the one before. In a continuous market a bar can open at the previous close, rally hard, give back part of the gain and still close higher. Long upper wicks can reflect profit-taking inside a strong trend as easily as distribution. Before acting on a CMF divergence, check whether closes are still rising from bar to bar, and decide in advance what price action would show the reading was wrong.
Chaikin Oscillator: the momentum of the A/D Line#
The Chaikin Oscillator is the 3-bar exponential moving average (EMA) of the A/D Line minus its 10-bar EMA, so it measures whether the A/D Line is rising or falling faster than usual. It is positive when the line's recent direction is up, and negative when down. It applies the logic of MACD, explained in What does MACD show, and why does it lag?, to the A/D Line instead of to price. Its inputs are high, low, close and volume. Its unit is the instrument's volume unit, so its size has no fixed scale. Its usual settings are 3 and 10 bars: they are TA-Lib's defaults and the periods in the StockCharts and TradingView formulas. Marc Chaikin developed it. An EMA is an average that gives recent values more weight: each new value moves the average a fixed fraction, 2 ÷ (n + 1), of the way toward the newest input. What does a moving average actually measure? covers it in detail.
Calculating the Chaikin Oscillator step by step#
To calculate the Chaikin Oscillator, take the A/D Line, compute its 3-bar and 10-bar EMAs, and subtract. In the ten-bar example the result at bar 10 is −9,598.44 shares. With the A/D values from the ten-bar example (5,000; 11,000; 26,000; 19,000; 19,000; 24,500; 8,500; 2,000; −4,000; 1,000), this lesson starts each EMA from the simple average of its first n values, as TA-Lib does for its plain EMA function.
The 3-bar EMA uses a weight of 2 ÷ (3 + 1) = 0.5:
| Bar | A/D Line | EMA(3) calculation | EMA(3) |
|---|---|---|---|
| 3 | 26,000 | (5,000 + 11,000 + 26,000) ÷ 3 | 14,000 |
| 4 | 19,000 | 14,000 + 0.5 × (19,000 − 14,000) | 16,500 |
| 5 | 19,000 | 16,500 + 0.5 × (19,000 − 16,500) | 17,750 |
| 6 | 24,500 | 17,750 + 0.5 × (24,500 − 17,750) | 21,125 |
| 7 | 8,500 | 21,125 + 0.5 × (8,500 − 21,125) | 14,812.5 |
| 8 | 2,000 | 14,812.5 + 0.5 × (2,000 − 14,812.5) | 8,406.25 |
| 9 | −4,000 | 8,406.25 + 0.5 × (−4,000 − 8,406.25) | 2,203.13 |
| 10 | 1,000 | 2,203.13 + 0.5 × (1,000 − 2,203.13) | 1,601.56 |
The 10-bar EMA's first value, at bar 10, is the simple average of the ten A/D values: 112,000 ÷ 10 = 11,200. The oscillator at bar 10 is 1,601.56 − 11,200 = −9,598.44. The A/D Line's recent values are well below its ten-bar average, so the oscillator is negative.
Starting values matter on short histories. TA-Lib's Chaikin Oscillator function starts both EMAs at the first A/D value instead, a choice its source code says MetaStock shares. On the same ten bars that gives an EMA(3) of 1,625, an EMA(10) of about 7,359 and an oscillator of about −5,734. The sign agrees, the size doesn't. With a few dozen bars of history the two methods converge, which is why charts with long histories agree.
Reading the Chaikin Oscillator on a chart#
On a chart, read the Chaikin Oscillator by its zero crossings and by divergences from price. Figure 5 shows the same 86 synthetic sessions (synthetic data). In this example the oscillator turned negative 14 sessions before the highest close.
- Peak of 1.85 million during the climb. The A/D Line was rising faster than its 10-session average.
- Negative at session 33. Three sessions after the A/D Line peaked, the oscillator crossed below zero, 14 sessions before the highest close. In this designed example the early warning was correct.
- Low of −3.2 million at session 40. The oscillator bottomed while price was still climbing toward its high, then recovered toward zero during the decline, because the A/D Line kept falling at a steady rather than accelerating pace.
When the Chaikin Oscillator misleads: whipsaws and scale#
The Chaikin Oscillator misleads most often in sideways markets, where its short 3- and 10-bar averages keep crossing. In the shaded range of Figure 5, from session 63 to 86, closes stayed between 44.00 and 45.43 while the oscillator crossed zero 4 times as buying and selling pressure alternated every few sessions. A trader treating each crossing as a signal would have been in and out four times with nothing to show for it. StockCharts notes that the default (3, 10) setting crosses zero often, and that the oscillator, built from the A/D Line and then smoothed twice, can drift away from price.
Two more cautions:
- No fixed scale. The oscillator is measured in volume units. A reading of −60,000 shares is a large swing for a stock that trades 2 million shares a day and a rounding error for one that trades 50 million. Compare a market only with its own history.
- Platform differences. As the hand calculation showed, the EMA starting values change early readings, and some platforms let users change the 3 and 10 settings. Check the settings before comparing screenshots.
Stocks and crypto: gaps, volume units and venues#
The main difference between stocks and crypto for these indicators is the gap. A US stock chart limited to regular sessions can open far from the previous session’s close, even when some trading took place after hours. The multiplier ignores that gap, as Figure 2 showed. Crypto pairs on venues such as Binance trade around the clock, so each bar normally opens where the last one closed. The gap problem shrinks, but the multiplier still ignores the move from the previous close, as Figure 4 showed.
Three more differences:
- Volume units and day boundaries. Stock volume is in shares. Binance candles report volume in the base asset (coins) and in the quote asset (for example USDT), and its daily candles run on UTC days by default (as of 26 November 2026). The A/D Line and the Chaikin Oscillator change unit with the volume you choose. CMF is a ratio, so its unit cancels, although the weighting shifts slightly with quote volume.
- Which trades are counted? A Binance Spot BTC/USDT candle counts trading in that pair on Binance. Another venue can report a different high, low, close and volume for the same hour. With a multiplier of +0.5, 100 BTC of volume adds 50 BTC to the A/D Line. At the same close location, 40 BTC adds only 20 BTC. On a paper chart, check the feed, symbol, interval and volume unit before comparing readings. The stock-like charts in this lesson use synthetic share volumes.
- No volume at all. Some instruments, such as an index level calculated from its members, have no traded volume of their own. Without volume these indicators can't be calculated.
How platforms differ#
The variant in this lesson follows the formulas documented by StockCharts and TradingView and the shared implementation behind its charts:
- Multiplier with no range. When high equals low, TA-Lib leaves the A/D Line unchanged for that bar, and this lesson's calculation sets the multiplier to 0, which gives the same result.
- CMF window. 20 bars here and in TA-Lib. StockCharts and TradingView describe 20 or 21 as common.
- Chaikin Oscillator starting values. This lesson starts each EMA from a simple average of its first n values. TA-Lib starts both from the first A/D value. Readings differ early in a series and converge later.
- A/D starting point. Every platform starts the running total at a different bar, so compare direction and divergences, not levels.
Check your understanding: the A/D Line, Chaikin Money Flow and the Chaikin Oscillator#
Question.
- A/D Line. A stock closed at 17.60 yesterday. Today it trades between 18.00 and 20.00, closes at 18.50 on 100,000 shares, and its A/D Line was 1,000,000 before today. What is the new A/D value, and what would OBV do today?
- Chaikin Money Flow. Over the last 20 sessions, money flow volume totals −300,000 shares and volume totals 2,000,000 shares. What is CMF(20), and how would you describe it?
- Chaikin Oscillator. A stock's A/D Line has an EMA(3) of 940,000 and an EMA(10) of 1,000,000. What is the oscillator? Another stock shows the same reading. Does that mean the same thing if it trades 50,000,000 shares a day instead of 2,000,000?
Show the answers
Answer.
- Multiplier = ((18.50 − 18.00) − (20.00 − 18.50)) ÷ (20.00 − 18.00) = (0.50 − 1.50) ÷ 2.00 = −0.5. Money flow volume = −0.5 × 100,000 = −50,000, so the A/D Line falls to 950,000. OBV rises by 100,000, because 18.50 is above yesterday's close of 17.60. The stock gapped up and gained 5.1% on the day, but closed in the lower half of its range, so the two indicators disagree, as in Figure 2.
- CMF(20) = −300,000 ÷ 2,000,000 = −0.15. Over the window, volume-weighted closes sat in the lower halves of their ranges: moderate selling pressure by this measure, outside a ±0.05 buffer. Whether it matters depends on price. If closes are still rising from session to session, as in Figure 4, the reading may never be followed by a decline.
- 940,000 − 1,000,000 = −60,000: the A/D Line's recent average is below its longer average, so its recent direction is down. For a stock trading 2,000,000 shares a day, 60,000 is 3% of a day's volume. For one trading 50,000,000, it is 0.12%, a negligible move. The oscillator's size only means something compared with the same stock's own history.
Related lessons#
- Before this lesson: What does volume add to a price chart?
- Next: How much volume does it take to move price? Ease of Movement and the Force Index
- See also: Is volume confirming the move? On-balance volume and relative volume, What changes when an indicator is weighted by volume? VWMA and the money flow index, What does MACD show, and why does it lag?, When does a breakout fail? and Why do two traders read the same chart differently?