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.

On this page
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

- Price, daily candles (hollow up, filled down)
- OBV, in millions (solid line)
- Signal line, SMA(20) of OBV (solid line, second color)
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

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.
| Pattern | Usual reading |
|---|---|
| Price and OBV rise together | Volume confirms the advance |
| Price makes a higher high, OBV a lower high | Bearish divergence: less volume behind the advance |
| Price makes a lower low, OBV a higher low | Bullish divergence: less volume behind the decline |
| Price flat, OBV rising | Up-day volume outweighs down-day volume while the price waits |
| OBV crosses its moving average | A 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

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

- Share of days
- Share of the volume OBV counted
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

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) | Days | Mean change over the next 20 days | Share of rises |
|---|---|---|---|
| All days | 8,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

- S&P 500 ETF, 1993 to 2026
- Bitcoin, 2017 to 2026
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.
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.
