On-Balance Volume (OBV) Calculator

Technical indicators

On-balance volume108,565
Volume today (shares)24,315
Signed volume added24,315
DirectionUp day (volume added)
How this was calculated
  1. Yesterday's line: OBV stands at 84,250 shares.
  2. Direction: the close at 187.35 is above yesterday's 185.90, so today's 24,315 shares are added.
  3. Update: 84,250 + 24,315 = 108,565 shares.
  4. On-balance volume result: 108,565 - the cumulative line rose.

Joseph Granville's on-balance volume, published in 1963, rests on a deliberately crude idea: volume is the fuel of price moves, and the direction of the close decides whose fuel it was. If the close rises, the entire day's volume is added to the running total; if it falls, the entire volume is subtracted; if the close is unchanged, nothing is signed at all. No fractions, no weighting by the size of the move - the all-or-nothing rule is the indicator.

The first worked example is the plain up day: a close of 187.35 against yesterday's 185.90 signs the day's 24,315 shares positive, and the line climbs from 84,250 to 108,565. Granville's claim was that this crude total turns before price does - volume, in his phrase, is the steam that makes the whistle blow - because informed money shows up in the volume column before it dares move the price.

This calculator performs the single daily step and exposes its logic: the volume, the signed amount actually applied, and the direction rule that fired. Chained across days it rebuilds the whole OBV line, and checking the step on each day type is the fastest way to verify a platform's series.

Worked examples

OBV step on an up day

(84250 · 187.35 · 185.9 · 24315)

On-balance volume108,565
Volume today (shares)24,315
Signed volume added24,315
DirectionUp day (volume added)

OBV step on a heavy down day

(-54230 · 45.3 · 46.85 · 98640)

On-balance volume-152,870
Volume today (shares)98,640
Signed volume added-98,640
DirectionDown day (volume subtracted)

OBV on an unchanged close

(78245 · 62.4 · 62.4 · 12047)

On-balance volume78,245
Volume today (shares)12,047
Signed volume added0
DirectionUnchanged close (no volume signed)

Granville's all-or-nothing volume rule

The rule's crudeness is its robustness. A close higher by a single cent signs millions of shares exactly as a limit-up close does, which offends anyone who wants the indicator to measure conviction - but it also means OBV cannot be gamed by the size of moves, only by their persistence. What the line actually tracks is the accumulated balance of winning days' fuel over losing days' fuel, and its trend over weeks is the statistic Granville traded on.

The second worked example shows the line's lesser-known property: it can go deeply negative. A down close signs 98,640 shares negative, dragging the total from -54,230 to -152,870. OBV has no floor and no natural zero - its level depends entirely on where the series was started, which is why every competent reading of OBV is a reading of its direction and its divergences, never of its absolute value.

Close vs yesterdayVolume signedOBV movement
HigherFull volume addedRises by the day's volume
LowerFull volume subtractedFalls by the day's volume
UnchangedZero, whatever the volumeFlat

Reading OBV trend and divergence

Granville's primary signal was confirmation: a price breakout with OBV breaking out first, or at least together, had the volume sponsorship to be trusted; a price breakout on a lagging OBV was suspect. The divergence form is the bearish and bullish warning pair - price to new highs while OBV stalls below its own prior high says the advance is running on fewer and fewer signed shares, and the mirror at lows marks quiet accumulation.

The unchanged-close rule quietly shapes those patterns. The third worked example trades 12,047 shares - a real day's business - and signs none of them, because the close repeated 62.40 exactly. In markets that pin closes frequently, whole weeks can pass with OBV frozen while volume churns, and the line's stillness then says something specific: neither side is winning closes, whatever the intraday excitement.

  • The size of the price move is irrelevant to the step - only its sign. A one-cent up close signs the full volume.
  • OBV's starting value is arbitrary; platforms that seed the series at different dates report different levels and identical changes.
  • An unchanged close signs zero even on enormous volume - check for pinned closes before calling a flat OBV a data error.
  • Negative OBV is normal for series seeded before a long decline; it is not a broken reading.
  • Verify a platform's series by stepping three day types - up, down, unchanged - exactly as the worked examples do.

Worked examples

Example 1: OBV yesterday 84250; Close today 187.35; Close yesterday 185.9; Volume today 24315. On-balance volume = 108,565. Supporting values: Volume today (shares) 24,315; Signed volume added 24,315; Direction Up day (volume added). Yesterday's line: OBV stands at 84,250 shares. Direction: the close at 187.35 is above yesterday's 185.90, so today's 24,315 shares are added. Update: 84,250 + 24,315 = 108,565 shares. On-balance volume result: 108,565 - the cumulative line rose.

Example 2: OBV yesterday -54230; Close today 45.3; Close yesterday 46.85; Volume today 98640. On-balance volume = -152,870. Supporting values: Volume today (shares) 98,640; Signed volume added -98,640; Direction Down day (volume subtracted). Yesterday's line: OBV stands at -54,230 shares. Direction: the close at 45.30 is below yesterday's 46.85, so today's 98,640 shares are subtracted. Update: -54,230 - 98,640 = -152,870 shares. On-balance volume result: -152,870 - the cumulative line fell.

Example 3: OBV yesterday 78245; Close today 62.4; Close yesterday 62.4; Volume today 12047. On-balance volume = 78,245. Supporting values: Volume today (shares) 12,047; Signed volume added 0; Direction Unchanged close (no volume signed). Yesterday's line: OBV stands at 78,245 shares. Direction: the close equals yesterday's close at 62.40, so no volume is signed today. Update: with no signed volume, OBV stays at 78,245 shares. On-balance volume result: 78,245 - the cumulative line was unchanged.

OBV vs volume-weighted indicators

Later volume indicators almost all soften Granville's rule. Chaikin's line signs a fraction of volume set by the close's position in the range; the money flow index ratios signed sums over a window; VWAP-based tools weight by price as well. Each refinement buys sensitivity at the cost of assumptions, and each can be fooled in its own way - a fractional line can rise on a down day, which OBV's sign discipline forbids.

The defence of the crude original is that its failures are legible. When OBV disagrees with price, the reason is always visible in the closes and volumes themselves, with no multiplier or window to interrogate. For a first-pass sponsorship check - is volume, on balance, behind this move or against it - the 1963 tool remains the fastest honest answer, which is why it still ships in every charting package six decades on.

Seeding note: to compare your OBV with a published chart, compare day-to-day changes, not levels. Two correct series differ by a constant - the volume signed before the shorter series began.

OBV in a trading workflow

The workflow Granville taught is a sequence: watch for OBV to change direction ahead of price at turning points, demand OBV confirmation at breakouts, and treat persistent divergence as a reason to tighten, not immediately to reverse. In modern practice it is most often a filter layered under a price system - entries allowed only when OBV's trend agrees, or position size scaled by the strength of that agreement.

Its known blind spot is the one-day wonder: a single enormous up-volume day can yank the line upward and keep it cosmetically strong for weeks while ordinary days quietly bleed it back. Reading the line's slope over a span, rather than its position after one event, is the standard inoculation - and is exactly what stepping through the arithmetic day by day, as this page does, trains the eye to see.

Reading the three examples

The up day adds its full 24,315 shares and the line rises to 108,565; the down day subtracts its full 98,640 and the line falls to -152,870. Note the asymmetry of information: the down day's volume was four times the up day's, and OBV reports that faithfully in the size of the fall - magnitude enters through volume even though it is barred from entering through price.

The unchanged day is the discipline's purest case: 12,047 shares traded, zero signed, the line frozen at 78,245. A reader who understands why that is correct - the close is the only ballot OBV counts, and a tied ballot signs nothing - understands the indicator entire.

Granville's original presentation surrounded the indicator with a discipline that modern summaries often drop, and restoring it explains much of the indicator's track record. He treated OBV as a leading indicator only at extremes of its own behaviour - a line that had run far and then hesitated was information; a line merely drifting was not - and he demanded that price eventually confirm what volume had predicted, abandoning the prediction when it refused. He also watched the line against a moving average of itself, buying its turns upward through that average in confirmed uptrends. None of that machinery changes the step computed here, but it frames the step's proper use: OBV's daily signings are raw evidence, and evidence is not a verdict. The traders who made the indicator's reputation were, on inspection, strict about the difference - patient with the line's long silences, decisive when its trend and price's trend finally spoke together, and quick to discard a divergence that price declined to honour. That discipline, more than the arithmetic, is the inheritance worth keeping.

FAQs

What OBV does the first example reach?

108,565: the prior 84,250 plus the full 24,315 shares of an up day, the close rising from 185.90 to 187.35.

What OBV does the down-day example reach?

-152,870: the prior -54,230 minus the day's full 98,640 shares, signed negative by the fall from 46.85 to 45.30.

What OBV does the unchanged example hold?

78,245 - the close repeated 62.40 exactly, so none of the day's volume was signed.

How much volume does the first example sign?

24,315 shares, all of it positive: the all-or-nothing rule signs the entire day on any up close.

How much volume does the down-day example sign?

98,640 shares, all of it negative - the largest step of the three examples, driven by volume rather than by the size of the price fall.

How much volume trades in the unchanged example?

12,047 shares changed hands and none of it counted - an unchanged close signs zero by rule.

Sources

Related calculators

Chaikin Money Flow Calculator
Marc Chaikin's money flow ratio over a lookback window: the sum of signed money flow volume divided by total volume, with the buying-pressure share alongside.
Klinger Oscillator Calculator
Compute the Klinger oscillator - the 34-period EMA of volume force minus its 55-period EMA - with the 13-period signal line and the oscillator's distance from it.
Force Index Calculator
Compute Alexander Elder's force index - the day's price change times volume - together with its 13-period exponential smoothing for trend confirmation.