On-Balance Volume
A running total of volume, signed by the direction of each price change. Aims to show whether volume is accumulating into rallies or selling into declines.
On-Balance Volume on GME, daily candles. Data via Financial Modeling Prep, cached server-side.
Quick reference
On-Balance Volume (OBV) is a running total of volume, signed by whether each bar closed up or down. When OBV rises with price, volume confirms the trend. When OBV diverges from price, it warns the trend may be about to turn.
OBV was introduced by Joseph Granville in 1963. It is one of the oldest indicators in technical analysis and still useful for its specific purpose: showing whether volume is accumulating into rallies or selling into declines.
What OBV actually measures
OBV measures the net directional flow of volume over time. It is built on Joseph Granville's premise that volume precedes price: smart money accumulates ahead of price moves, leaving fingerprints in the volume data before the move shows up on the chart.
When volume is overwhelmingly happening on up-days, OBV rises persistently. When volume is overwhelmingly happening on down-days, OBV falls persistently. The slope of OBV reveals whether buying or selling has been dominant, integrated over the period you are looking at. Because OBV is cumulative, its absolute value is meaningless - it depends on when the data started. What matters is its slope and its divergence from price.
The formula
OBV has one rule, applied bar by bar:
| Close vs prior close | OBV update |
|---|---|
| Close up | OBV = prior OBV + today's volume |
| Close down | OBV = prior OBV - today's volume |
| Close flat | OBV = prior OBV (unchanged) |
That is the entire formula. There is no smoothing, no period setting, no parameter to tune.
The result is a single line that walks up when price closes up on volume and walks down when price closes down on volume. The line's absolute value is arbitrary (it depends on the starting point of the data); the shape is what reveals the pattern.
A worked example
Assume the close before Day 1 was $49.50, so Day 1 closed up. OBV starts at 0.
| Day | Close | Change | Volume | OBV |
|---|---|---|---|---|
| 1 | $50.00 | Up | 100,000 | 100,000 |
| 2 | $51.20 | Up | 150,000 | 250,000 |
| 3 | $50.80 | Down | 120,000 | 130,000 |
| 4 | $50.80 | Flat | 180,000 | 130,000 |
| 5 | $52.00 | Up | 200,000 | 330,000 |
| 6 | $53.10 | Up | 90,000 | 420,000 |
| 7 | $52.40 | Down | 110,000 | 310,000 |
Price rose from $50.00 to $52.40 over the seven days, up 4.8%. OBV rose from 0 to 310,000. Volume on up-days totaled 540,000; volume on down-days totaled 230,000. Day 4 closed flat, so its 180,000 shares did not move OBV at all.
Now imagine price had barely moved during these seven days - ending roughly where it started. OBV would still have risen, because more volume traded on up-closes than down-closes. That is OBV catching a pattern (heavier buying than selling on a flat price chart) that the price line itself does not reveal. This is what "stealth accumulation" looks like on OBV.
OBV Calculator
Enter five closes and their volumes. OBV starts at 0 and adds volume on up-days, subtracts it on down-days, and ignores flat days.
| Day | Close | Volume | OBV |
|---|---|---|---|
| 1 | $50.00 | 100,000 | 100,000 |
| 2 | $51.20 | 150,000 | 250,000 |
| 3 | $50.80 | 120,000 | 130,000 |
| 4 | $50.80 | 180,000 | 130,000 |
| 5 | $52.00 | 200,000 | 330,000 |
How to read OBV in 3 steps
- Check the slope. Rising OBV means volume is happening mostly on up-days; falling OBV means volume is happening mostly on down-days. Flat OBV means buying and selling volume are balanced.
- Compare OBV to price. If price and OBV move together, the trend has volume behind it. If they move apart, that is divergence - OBV's highest-value signal.
- Look for the turn, not the level. OBV has no meaningful absolute value and no overbought or oversold level. What matters is a change in slope, a break of an OBV trendline, or a divergence against a new price high or low.
How traders actually use OBV
Six uses, in order of reliability. The first three generate consistent edge. The last three are supporting reads, not standalone signals.
1. Divergence
OBV's highest-value signal. Two flavors:
- Bullish divergence: price makes a lower low, OBV makes a higher low. The new low in price happened on less down-volume than the prior one - sellers are exhausted. Confluent with structure (a break of the prior swing high), this is a high-conviction long setup.
- Bearish divergence: price makes a higher high, OBV makes a lower high. The new high happened on less up-volume - buyers losing conviction. Confluent with structure breaking down, a high-conviction short setup.
Daily OBV divergence is more reliable than intraday. The longer the timeframe, the more meaningful the volume pattern.
2. Trend confirmation
The simple version. Price is in an uptrend; OBV is also trending up. Volume is supporting the move - the trend is healthy. Price is in an uptrend; OBV is flat or trending down. The trend is being driven by something other than broad participation - usually short-covering or low-volume drift, neither of which is durable.
OBV trending in agreement with price is a green light. OBV trending against price is a yellow light to tighten stops or reduce size.
3. Stealth accumulation / distribution
The most interesting OBV pattern. Price is sideways or even slightly down, but OBV is rising. Volume is happening on up-days even though price is not making progress. This suggests informed buyers are absorbing supply at current prices ahead of an eventual breakout.
The reverse pattern: price is holding sideways or slightly up, but OBV is falling. Sellers are unloading into strength, often ahead of a breakdown.
These setups have lead times of weeks. They do not produce immediate signals. They are watchlist criteria - "this stock looks like it is being accumulated; watch for the breakout when it comes."
4. OBV breakout
When OBV breaks above its prior swing high while price is still below resistance, volume is leading price. Traders watch for price to follow through the resistance. The reverse holds at lows: OBV breaking below its prior swing low while price still holds support warns that the support is likely to fail.
5. OBV trendline
Draw a trendline on the OBV line itself, the same way you would on price. A break of a rising OBV trendline says buying momentum is fading even if price has not turned yet. A break of a falling OBV trendline says selling pressure is easing. OBV trendline breaks often print a few bars before the equivalent break in price.
6. 20-day moving average crossover
Plot a 20-day moving average on OBV. OBV crossing above its own average says short-term volume flow has turned positive; crossing below says it has turned negative. This is a lagging read - the average smooths OBV, so the signal arrives after the turn - but it gives a mechanical rule for traders who want one. Do not trade the crossover alone; use it to confirm a divergence or breakout read.
OBV by market
OBV is only as good as the volume data underneath it.
| Market | How reliable is OBV? |
|---|---|
| Stocks and ETFs | Most reliable. Exchange-reported volume on liquid names is clean and hard to fake. |
| Futures | Reliable on the most active contract. Avoid thin, back-month contracts where volume is sparse. |
| Forex | Less reliable. There is no central exchange, so platforms report tick volume (number of price changes), not traded volume. Direction is roughly right; size is not. |
| Crypto | Reliable on major exchanges only. Bitcoin and Ethereum on large venues have usable OBV. Avoid wash-traded altcoins, where reported volume is mostly fake. |
OBV vs other volume indicators
| Indicator | How it weights volume | Bounded? | Best for |
|---|---|---|---|
| OBV | Full volume, signed by close direction | No | Divergence and trend confirmation |
| Accumulation/Distribution | Volume weighted by close position within the bar's range | No | Finer-grained accumulation reads |
| Money Flow Index (MFI) | Volume weighted by price change, RSI-style | Yes, 0-100 | Overbought and oversold volume signals |
| Volume-Price Trend | Volume weighted by percent price change | No | Cumulative momentum with size weighting |
| Chaikin Money Flow | Volume weighted by close position, fixed lookback | Yes, -1 to +1 | Systematic buying and selling pressure |
vs Accumulation/Distribution Line. A/D weights each bar's volume by the close's position within the bar's range. A bar that closes near its high gets more positive weight; a bar that closes near its low gets more negative weight. OBV treats every up-bar equally. A/D is finer-grained; OBV is simpler.
vs Money Flow Index (MFI). MFI is bounded 0-100 like RSI and weights volume by price changes. MFI handles "how big was the move" while OBV ignores it. MFI produces overbought/oversold signals; OBV does not.
Volume bars themselves show per-period volume and are useful for spotting individual high-volume events. OBV integrates direction into volume to produce a cumulative line, which is useful for spotting cumulative patterns instead.
vs Chaikin Money Flow. CMF combines OBV-style cumulative volume with bar-position weighting (similar to A/D) over a fixed lookback. CMF is bounded and easier to read for systematic strategies. OBV is unbounded and useful for divergence reads on longer horizons.
How to add OBV in TradingView
- Open a chart and click Indicators at the top.
- Search for On Balance Volume.
- Click the result to add it to the chart. It plots in a pane below price.
- There are no settings to change. OBV is parameter-free - no period, no smoothing, nothing to tune.
The trap most retail traders fall into
OBV at "5 million" tells you nothing on its own. The number depends entirely on when the data series began. A chart showing OBV at 100 million on Stock A and OBV at 50 thousand on Stock B does not mean Stock A has "more buying" - it means Stock A has more data history.
What matters with OBV is its slope (rising? falling? flat?) and its relationship to price (confirming? diverging?). The absolute number is just a coordinate on the line.
The second trap: trading OBV crosses through zero or other arbitrary levels. There are no meaningful threshold levels in OBV. The indicator has no natural overbought or oversold.
The third trap: using OBV on instruments with poor volume data. Volume on small-cap stocks, illiquid futures contracts, or thin altcoins can be wildly inaccurate or manipulated. OBV computed on bad volume data is garbage. Stick to liquid instruments with reliable exchange-reported volume.
When to use OBV and when not to
Use OBV when:
- You are looking for volume divergence between OBV and price on a daily or weekly chart
- You are scanning for stealth accumulation / distribution patterns
- You want a simple, parameter-free volume confirmation tool
Skip OBV when:
