Volume indicators

On Balance Volume (OBV) Indicator: Formula, Divergences, Volume Spikes, and a Real S&P 500 Example

Joe Granville’s On Balance Volume adds a day’s whole volume when the close rises and subtracts it when the close falls; here is the formula, how to read its trend and divergences, why a single heavy day can bend the line, and what OBV divergences were followed by on the S&P 500 ETF since 1993.

· Founder of PatternsWizard
Checked 9 min read
OBV, signal SMA(20) on S&P 500 ETF, dividend-adjusted prices, daily, May 6, 2025 to July 31, 2025. Illustration of how the indicator reads, not a backtest.
On this page
  1. How OBV is calculated
  2. How to read On Balance Volume
  3. One heavy day can bend the line
  4. OBV on a real chart
  5. Does it work?
  6. OBV vs other volume indicators
  7. Frequently asked questions

On Balance Volume (OBV) is a running total of volume that adds a bar’s volume when the close is higher than the previous close and subtracts it when the close is lower. Joe Granville first explained it in his 1963 book Granville’s New Key to Stock Market Profits, and StockCharts describes it as one of the earliest measures of volume flowing into and out of a security. Granville’s idea was that volume precedes price: a rising OBV shows volume concentrated on up days, a falling OBV on down days. The chart below shows OBV, in millions of shares, with a 20-day average as a signal line.

On Balance Volume with a 20-day signal line on the daily S&P 500 ETF

OBV, signal SMA(20) on S&P 500 ETF, dividend-adjusted prices, daily, December 23, 2024 to July 31, 2025. Illustration of how the indicator reads, not a backtest.
  • Price, daily candles (hollow up, filled down)
  • OBV, in millions (solid line)
  • Signal line, SMA(20) of OBV (solid line, second color)
OBV, signal SMA(20) on S&P 500 ETF, dividend-adjusted prices, daily, December 23, 2024 to July 31, 2025. Illustration of how the indicator reads, not a backtest.

How OBV is calculated

Each bar adds its volume, subtracts it or leaves the total unchanged, depending only on the direction of the close. The size of the price move plays no part: a 0.1% gain and a 5% gain add the same volume. The starting value is arbitrary, so the level of OBV depends on where the data begins. StockCharts notes that the scale of OBV is not relevant, which is why it does not even show it; chartists look at whether the line is rising or falling compared with previous periods.

OBV over the four hypothetical days

OBV over the four hypothetical days. Day 1: up on 1,000 shares: 1,000; Day 2: down on 600 shares: 400; Day 3: unchanged on 900 shares: 400; Day 4: up on 300 shares: 700. Hypothetical example, computed from the assumptions in the text.
Hypothetical example, computed from the assumptions in the text.OBV after each day of the example above, starting from 0.

How to read On Balance Volume

StockCharts suggests three steps: define the trend of OBV, check whether it matches the trend of the price, then look for support or resistance on the OBV line itself, whose breaks change its trend. The usual readings are summed up below.

PatternUsual reading
Price and OBV rise togetherVolume confirms the advance
Price makes a higher high, OBV a lower highBearish divergence: less volume behind the advance
Price makes a lower low, OBV a higher lowBullish divergence: less volume behind the decline
Price flat, OBV risingUp-day volume outweighs down-day volume while the price waits
OBV crosses its moving averageA change in the short-term balance of up and down volume

These are readings, not rules with a known success rate. The last section measures the divergence reading over 33 years.

One heavy day can bend the line

Because OBV gives each bar all or nothing, a day with a small move and a huge volume weighs as much as a crash day. On April 7, 2025, the S&P 500 ETF closed at 496.15, 0.18% below the previous close, on 256.6 million shares, the heaviest volume of the chart above. OBV fell by the whole 256.6 million. Over the four sessions from April 3 to April 8, OBV lost 766.4 million shares, from 876.8 million at the close of April 2 to 110.4 million. On April 9, the ETF rose 10.50% on 241.9 million shares, and OBV recovered only that amount.

What OBV added or subtracted each day, April 3 to 9, 2025

What OBV added or subtracted each day, April 3 to 9, 2025. Apr 3: close −4.93%: −126.0M; Apr 4: close −5.85%: −218.0M; Apr 7: close −0.18%: −256.6M; Apr 8: close −1.57%: −165.8M; Apr 9: close +10.50%: +241.9M. Our computation; the inputs and the method are in the text.
Our computation; the inputs and the method are in the text.S&P 500 ETF, daily volume in millions of shares, counted with the sign of the day's close change; dividend-adjusted closes.

The Price Volume Trend weights each day’s volume by the percentage change instead: on April 7 it moved by −0.46 million, not −256.6 million.

Small moves are not rare. On the ETF from February 1993 to October 2026, 26.7% of the 8,494 daily changes were up or down by less than 0.25%, and 62 more closes were unchanged. Those small moves carried 21.6% of all the volume OBV added or subtracted over the period. On Bitcoin, from August 2017 to October 2026, the share was smaller: 10.9% of the days moved less than 0.25%, carrying 7.7% of the volume OBV counted. On these days OBV registers a full day of buying or selling for a close that barely moved, so the smaller the typical move of a market, the more of its OBV comes from noise.

Days that moved less than 0.25%, and the volume OBV counted on them

Days that moved less than 0.25%, and the volume OBV counted on them. S&P 500 ETF, Feb 1993 to Oct 2026: Share of days 26.7%, Share of the volume OBV counted 21.6%; Bitcoin, Aug 2017 to Oct 2026: Share of days 10.9%, Share of the volume OBV counted 7.7%. Our computation; the inputs and the method are in the text.
  • Share of days
  • Share of the volume OBV counted
Our computation; the inputs and the method are in the text.Daily closes; days with an unchanged close, which OBV ignores, are counted among the days but carry no volume.

OBV on a real chart

The chart covers the daily S&P 500 ETF from December 23, 2024 to July 31, 2025, with dividend-adjusted prices; OBV is counted from the first bar of our data series, June 7, 2024. On January 23, 2025, the ETF closed at 598.00 with OBV at 1,113.1 million. On February 19 it closed higher, at 601.12, but OBV was lower, at 1,054.1 million: a bearish divergence by the textbook. The ETF then fell to 488.38 on April 8, 18.8% below the February 19 close, and OBV reached its low of the window, 110.4 million, the same day.

OBV crossed above its 20-day average on April 24, at a close of 537.77, and stayed above it until June 5, at 583.37, while the ETF gained 8.5%. OBV and the ETF both made their highs of the window on July 25, 2025, at 1,807.4 million and 628.56. On the last day, July 31, the ETF closed at 623.60 on 103.4 million shares and OBV fell back below its average.

Over the whole window, OBV crossed its 20-day average 24 times in 150 sessions: 12 spells above the average, each ended by a cross back below. Six of the 12 lasted three sessions or fewer, and only three were followed by a higher close at the cross back below, those that began on January 15, April 24 and June 25. A cross of the average is a frequent event that the next few sessions often undo.

ETF change during each spell of OBV above its 20-day average

ETF change during each spell of OBV above its 20-day average. Dec 26 to 27, 2024, 1 session: −1.05%; Jan 15 to Feb 3, 2025, 12 sessions: +0.84%; Feb 5 to 7, 2 sessions: −0.57%; Feb 10 to 12, 2 sessions: −0.25%; Feb 13 to 14, 1 session: −0.005%; Feb 18 to 21, 3 sessions: −1.89%; Mar 24 to 28, 4 sessions: −3.21%; Mar 31 to Apr 4, 4 sessions: −9.67%; Apr 24 to Jun 5, 29 sessions: +8.48%; Jun 6 to 13, 5 sessions: −0.36%; Jun 16 to 17, 1 session: −0.85%; Jun 25 to Jul 31, 25 sessions: +4.11%. Our computation; the inputs and the method are in the text.
Our computation; the inputs and the method are in the text.S&P 500 ETF, dividend-adjusted daily closes, from the close of the cross above the average to the close of the cross back below, December 23, 2024 to July 31, 2025.

Does it work?

Our bench tests chart patterns detected by rule against random entries, not indicators (see our methodology). We measured what followed OBV divergences on the daily S&P 500 ETF from February 1993 to October 2026, without costs, using a simple definition: the close and OBV compared with their values 20 sessions earlier. A day counts as a bearish divergence when the close is higher than 20 sessions before and OBV lower, and as a bullish divergence in the reverse case; the outcome is the change in the close over the next 20 sessions. OBV is counted from the first bar of each series, January 29, 1993 for the ETF and August 17, 2017 for Bitcoin, with dividend-adjusted closes for the ETF, and the last outcome ends on October 28, 2026.

Case (ETF, 1993 to 2026)DaysMean change over the next 20 daysShare of rises
All days8,455+0.92%65.3%
Price higher, OBV lower (bearish divergence)1,184+1.26%68.2%
Price lower, OBV higher (bullish divergence)474−0.45%59.1%

Both divergences were followed by the opposite of their textbook meaning, on average. On Bitcoin, from 2017 to 2026, with volume from a single exchange, the bullish divergence days (283) were followed by a mean 20-day change of −1.64%, against +3.25% for all days, and the bearish ones (414) by +2.83%, a little below the average. These are descriptive averages over overlapping periods, not a trading test, and a divergence drawn by eye between two peaks is not the same thing as this mechanical version.

Mean change over the next 20 sessions, by OBV divergence

Mean change over the next 20 sessions, by OBV divergence. All days: S&P 500 ETF, 1993 to 2026 +0.92%, Bitcoin, 2017 to 2026 +3.25%; Bearish divergence (price up, OBV down): S&P 500 ETF, 1993 to 2026 +1.26%, Bitcoin, 2017 to 2026 +2.83%; Bullish divergence (price down, OBV up): S&P 500 ETF, 1993 to 2026 −0.45%, Bitcoin, 2017 to 2026 −1.64%. Our computation; the inputs and the method are in the text.
  • S&P 500 ETF, 1993 to 2026
  • Bitcoin, 2017 to 2026
Our computation; the inputs and the method are in the text.Close and OBV compared with their values 20 sessions earlier; overlapping periods, no costs. A description of what followed, not a trading test.

OBV vs other volume indicators

The Price Volume Trend uses the same running total but weights volume by the percentage change: on the ETF since 1993, the two disagreed on the 20-day direction on 20.1% of the 8,455 days in the divergence table above. The Accumulation Distribution Line weights volume by where the close sits in the day’s range instead of the change from the previous close. Net Volume plots each bar’s signed volume without adding it up. All of them are listed with the other volume indicators.

Every pattern's results on one sheet

The only pattern cheat sheet with tested stats: 152 patterns, what the textbook says and what really happened on 6 markets. Free PDF, sent to your inbox.

The PDF by email, plus our newsletter: new tests and results that change. Unsubscribe anytime. Privacy.

Frequently asked questions

What does OBV stand for in trading and what does it measure?

OBV stands for On Balance Volume. It is a running total of volume that adds each day’s volume when the close rises and subtracts it when the close falls, to show whether volume is heavier on up days or on down days.

Who created On Balance Volume?

Joe Granville. StockCharts dates his first explanation of it to his 1963 book Granville’s New Key to Stock Market Profits.

Does the OBV value matter?

No. The level depends on the date the count starts. What matters is the direction of the line and how it compares with the price.

Is OBV a leading indicator?

Granville thought volume precedes price. On the S&P 500 ETF from 1993 to 2026, OBV divergences were not followed by moves in the direction they pointed to, on average.

Can OBV be used on crypto and forex?

On crypto, yes, but the volume of a single exchange is only part of the market. Spot forex trades over the counter, with no single published volume, so OBV there counts whatever volume the platform reports, which is not the whole market either.

Sources

  1. StockCharts ChartSchool, On Balance Volume (OBV)
  2. TradingView, On Balance Volume (OBV)
, Founder of PatternsWizard

Passionate about finance, quantitative trading and data analysis. Amaury built the PatternsWizard test bench, which detects each pattern on full price history and measures what happened next against random entries.

PatternsWizard tests chart and candlestick patterns on full market history, against random entries. How we test patterns.

179 patterns testedRandom-walk self-test passed

Related guides

All volume indicators articles