Concept

OBV

OBV, also known as on-balance volume, OBV-Modified, is a Volume & Order Flow concept. The Library holds 8 implementations, each one a working definition you can pull into Quant.

Top OBV indicators

8 total

What is OBV?

OBV (on-balance volume) is a cumulative volume line introduced by Joe Granville in 1963. The rule is deliberately simple: if a bar closes above the prior close, add its entire volume to a running total; if it closes below, subtract it; if the close is unchanged, do nothing. Every bar's volume is treated as all buying or all selling based purely on the close-to-close direction, which makes OBV a blunt but assumption-light proxy for whether volume is flowing with advances or with declines.

The line's absolute value is meaningless, since it depends on where your data starts; the information is in its slope, its swings, and its agreement with price. When price makes a new high and OBV confirms with its own high, the advance is carrying participation. When price makes an extreme that OBV refuses to match, that OBV divergence suggests the move is running on thinner volume. Granville's premise was that volume precedes price, so he also watched OBV break its own trendline or range ahead of price. The crude assignment rule is the known weakness: a bar barely positive on huge volume counts as fully bullish, so most traders read OBV alongside structure rather than alone.

How to calculate OBV

OBV needs only closes and volume, built bar by bar from an arbitrary starting value, commonly zero.

  1. 1Compare the current close to the prior close.
  2. 2If the close is higher, add the bar's full volume to the previous OBV value; if lower, subtract it; if equal, carry the previous value forward.
  3. 3Plot the running total and ignore its absolute level. Read direction, swing highs and lows, and trendlines drawn on the line itself.
  4. 4Compare OBV's swings with price's swings: confirmation supports the trend, and non-confirmation flags a divergence worth investigating.

How traders use it

  • For trend confirmation: OBV printing new highs alongside price argues the advance is participated in, while a flat OBV under a rising price warns the rally is volume-light.
  • For divergences: a price extreme that OBV fails to match is an early caution, handled like any regular divergence: a warning that needs price confirmation, not a standalone reversal signal.
  • For early breaks: because volume can shift before price, some traders watch for OBV to break a range or trendline first and then look for price to follow; the sequence is a tendency Granville described, not a guarantee.
  • As an input series: OBV is often smoothed with a moving average or fed into oscillator-style transforms to steady its bar-to-bar jumpiness before signals are taken from it.

OBV vs other volume flow lines

Accumulation/Distribution Line: The A/D line weights each bar's volume by where the close lands inside the bar's range, while OBV assigns all volume by close-to-close direction. They disagree most on gaps and on bars that close mid-range.

Volume Price Trend: VPT scales volume by the percentage price change instead of taking all of it, so a small up-close adds a little and a large one adds a lot; OBV is all-or-nothing.

Money Flow Index: MFI turns volume-weighted price movement into a bounded 0-100 oscillator with overbought and oversold zones; OBV is unbounded and cumulative, read through slope and divergence rather than levels.

More OBV implementations

Related concepts · Cumulative flow lines

Concept family

Volume & Order Flow

87 concepts mapped · 62 in the Library

OBV FAQ

What does the OBV value actually mean?

Nothing on its own. OBV starts from an arbitrary number, so its level reflects your data history, and comparing values across symbols or feeds is meaningless. The reading comes from its shape: rising or falling slope, the pattern of its swings versus price, and breaks of trendlines or ranges drawn on the line itself.

Is OBV a reliable indicator by itself?

It is blunt by design: a bar closing up by one tick on huge volume counts as fully bullish, and gaps or quiet sessions can distort the line. Used alone it produces plenty of noise. Its practical role is as a confirmation and divergence tool read next to price structure, not a standalone signal generator.

Who invented OBV?

Joe Granville popularized on-balance volume in his 1963 book Granville's New Key to Stock Market Profits, built on the premise that volume precedes price. Similar cumulative-volume ideas had circulated earlier, but Granville's close-to-close formulation is the one that stuck and is what charting platforms compute today.

Build OBV your way.

Quant writes, tests, and refines it with you — then it runs on LuxAlgo charting or ports to TradingView.