On-Balance Volume (OBV)
By Chad Smith, Director of Research & Analysis · Updated
On this page
On-balance volume (OBV) is a cumulative volume indicator that adds a bar's volume when price closes higher and subtracts it when price closes lower. Joseph Granville introduced it in 1963. His idea was that volume is the force behind price, so changes in volume flow can show up before changes in price. OBV is one of the simplest and oldest ways to combine price and volume in a single line.
What it measures
OBV measures the direction of volume flow. Each bar is classed as up or down based on its close compared with the previous close. Up bars add their volume to a running total; down bars subtract it. Unchanged bars add nothing.
If a market rises on heavy volume and falls on light volume, OBV climbs, because more volume is being added than subtracted. That suggests buyers are more committed than sellers. If the market rises on light volume and falls on heavy volume, OBV falls even while price holds up, which suggests weak buying.
The value of OBV itself is arbitrary. It depends on where the chart's data starts. Only the shape of the line, and how it lines up with price, carries meaning.
The formula
If Close(today) > Close(yesterday):
OBV(today) = OBV(yesterday) + Volume(today)
If Close(today) < Close(yesterday):
OBV(today) = OBV(yesterday) − Volume(today)
If Close(today) = Close(yesterday):
OBV(today) = OBV(yesterday)
The first OBV value is usually set to 0.
Worked example (illustrative numbers). Start with OBV at 0.
- Day 1: close up, volume 5,000. OBV = 5,000.
- Day 2: close up, volume 7,000. OBV = 12,000.
- Day 3: close down, volume 3,000. OBV = 9,000.
- Day 4: close up, volume 6,000. OBV = 15,000.
- Day 5: close unchanged, volume 4,000. OBV = 15,000.
Over five days, OBV rose from 0 to 15,000 because volume on up days outweighed volume on down days. Even the down day on Day 3 had relatively light volume.
Default settings
OBV has no period setting. It is a running total from the first bar on the chart. Some platforms add an optional moving average of OBV, often 20 periods, to act as a signal line.
| Setting | Conventional choice |
|---|---|
| Period | None (cumulative) |
| Signal line | Optional moving average |
| Source | Close and volume |
OBV is built into MetaTrader, TradingView and most charting platforms. On spot forex charts it uses tick volume, since there is no central exchange volume.
How to read it
Trend confirmation. When price and OBV rise together, volume supports the uptrend. When both fall, volume supports the downtrend.
Divergence. If price makes a higher high but OBV makes a lower high, buying volume is not keeping up with the move. If price makes a lower low but OBV makes a higher low, selling volume is drying up. These divergences are the main signals Granville watched.
OBV breakouts. OBV can break out of its own range or trendline before price does. Granville treated a break in OBV as an early hint of a price breakout in the same direction.
Flat OBV. A sideways OBV during a price advance means up and down volume are balanced, so the rise lacks support.
OBV vs accumulation distribution and CMF
OBV assigns the whole bar's volume to one side based on close versus prior close. A bar that closes one tick higher on huge volume adds all of that volume, even if the bar spent most of its time lower.
The accumulation distribution line avoids this by weighting volume by where the close sits within the bar's high-low range. A close near the high adds most of the volume; a close near the middle adds little.
Chaikin money flow uses the same weighting as accumulation distribution, but sums it over a fixed window and divides by total volume, so it oscillates around zero rather than running as a cumulative total.
The money flow index is a bounded oscillator that combines price and volume, similar in shape to RSI.
Common strategies
Confirming breakouts
When price breaks resistance, check whether OBV also makes a new high. A breakout with rising OBV has volume behind it. A breakout with flat or falling OBV is more likely to fail.
Divergence at swing points
Watch for divergence between price and OBV at swing highs or lows, especially near clear levels or reversal patterns like a double top. The divergence warns; price action confirms.
OBV trendlines
Draw trendlines on OBV itself. A break of an OBV uptrend line can warn that buying pressure is fading before price breaks its own trendline.
Signal line crosses
Some traders plot a moving average of OBV and treat OBV crossing above it as bullish and crossing below as bearish. This adds smoothing but also lag.
Weaknesses
OBV is crude. A bar is fully up or fully down based only on the close versus the prior close, so a tiny change in close can swing a large amount of volume from one side to the other.
Volume spikes distort it. A single bar with very large volume, such as on a news event or an index rebalance, can shift OBV for a long time afterward.
Forex volume is tick volume. Without exchange volume, OBV on spot currency charts reflects activity counts, not actual traded size.
Divergence can persist. OBV can disagree with price for long stretches without any reversal following.
Indicators it pairs with
- Accumulation distribution or chaikin money flow, for a range-weighted view of volume.
- Moving averages, to define the trend that OBV is meant to confirm.
- RSI or MACD, for momentum alongside volume flow.
- VWAP, for an intraday volume-weighted reference.
- Bollinger Bands, to judge squeeze breakouts with volume support.
For more on reading volume and how it supports price analysis, see the technical analysis course.
Brokers with strong charting to practice on
Put this into practice on a demo account first, with no money at risk.
- Featured broker
Pepperstone4.7 / 5Visit
IC Markets4.9 / 5Visit
GO Markets4.8 / 5Visit
Frequently asked questions
What does OBV measure?
OBV is a running total of volume that adds the full volume on up days and subtracts it on down days. It is meant to show whether volume is flowing into or out of a market.
Who created on-balance volume?
Joseph Granville introduced it in his 1963 book on stock market timing. He believed volume changes tend to come before price changes.
Does the OBV number itself matter?
No. The absolute value depends on where the calculation started. What matters is the direction of the line and how it compares with price.
What is OBV divergence?
Divergence happens when price makes a new high or low but OBV does not. It suggests volume is not supporting the move, which can be an early warning.
How is OBV different from accumulation distribution?
OBV assigns all of a bar's volume to buyers or sellers based only on the close versus the prior close. Accumulation distribution weights volume by where the close sits within the bar's range.