WOI
Market
S&P 500
7,297.07 -1.47%
Nasdaq 100
26,895.39 -2.59%
Dow Jones
50,760.79 -0.77%
VIX
21.67 +17.39%
Dollar Index (DXY)
104.97 +0.07%
Gold
3,770.90 +2.48%
Oil (WTI)
84.36 -3.02%
BTC/USD
46,199.76 +7.39%

Technical Indicators · Illustrated reference

OBV: signed volume and the price information it discards

How does cumulative volume behave when each bar is signed only by close direction?

Read, watch or explore. No exercises, scores or required progression.

Animated explanation · synthetic observations

OBV: signed volume and the price information it discards

Equal volume changes the cumulative path while keeping prices identical. The indicator is a signed-volume summary, not proof of accumulation or future returns.
Compare equal-volume signing

Equal volume changes the cumulative path while keeping prices identical. The indicator is a signed-volume summary, not proof of accumulation or future returns.

Original synthetic obv explanation with calculated outputs, explicit initialization and a comparison view. The complete reference is shown when motion is unavailable. Playback is optional.

In this reference
  1. How does cumulative volume behave when each bar is signed only by close direction?
  2. Inputs and reproducible calculation
  3. A calculation you can reproduce
  4. Read the behavior with price
  5. Initialization and implementation differences
  6. Compare the calculation, not just the shape
  7. What the output cannot establish
  8. A practical reading sequence
  9. Methodology and source notes

How does cumulative volume behave when each bar is signed only by close direction?

On-Balance Volume adds the current bar’s volume when its close exceeds the previous close and subtracts it when the close is lower. An unchanged close contributes zero in the convention used here. The size of the price change does not affect the weight. This makes OBV a useful example of how a simple transformation preserves some information and deliberately discards other information.

The animation begins with the analytical purpose, then relates the calculated output to the price observations that produced it. Every line is recomputed from the same local synthetic inputs. No historical market dataset or success-rate claim is implied.

Inputs and reproducible calculation

OBV(0) = 0 in this demonstration
OBV(t) = OBV(t−1) + sign[C(t)−C(t−1)] × Volume(t)
sign(positive)=+1; sign(negative)=−1; sign(0)=0

Specify the observation interval, input field, price adjustment, history length and missing-value policy. A period counts observations, not calendar days. A partial candle can change its close, high, low and volume before completion; the corresponding indicator can change too. This reference treats its synthetic observations as completed.

A calculation you can reproduce

For closes 100,101,100.5,100.5 and subsequent volumes 10,20,30, the zero-seeded OBV sequence is 0,10,−10,−10. The final 30 units of activity produce no change because the close is unchanged. A one-cent increase with volume 50 contributes more than a ten-unit increase with volume 10, because price-change magnitude is not in the formula.

Keep full precision through intermediate updates and round only for presentation. Repeatedly rounding the recursive state produces a different series. A numerical difference between implementations should first be traced to input history, seed, smoothing and degenerate-case rules before being called a market signal.

Read the behavior with price

The first part of the example rises with ordinary volume. Later, tiny upward closes occur on five-million-unit bars while larger downward closes occur on one-million-unit bars. OBV rises across those pairs while price declines. The final segment has unchanged closes and substantial volume, so OBV stops changing despite continuing activity.

A divergence is a disagreement between two summaries. Here the divergence is fully explained by the sign-only weighting rule; it is not proof of accumulation by informed investors. The equal-volume view keeps the price sequence and removes the volume imbalance, isolating the effect of the weighting assumption.

Initialization and implementation differences

A zero seed sets an arbitrary origin. Some implementations begin with first-bar volume; that shifts the level by a constant when later inputs agree. Differences or slopes remain the same, but absolute plotted values differ. Missing volume must not silently become zero, and split-related changes in share volume require consistent adjustment when comparing long histories.

Indicator values may differ across platforms because of calculation methods, initialization, data history, session settings and missing-data handling. The synthetic examples in this guide illustrate the stated calculation method and may differ from live indicator readings.

Compare the calculation, not just the shape

Input event

The next segment uses tiny upward closes and larger downward closes. OBV ignores the difference in price-change size.
The next segment uses tiny upward closes and larger downward closes. OBV ignores the difference in price-change size.

Later behavior

The final closes are unchanged while volume continues. Under the stated equality rule, those bars add zero to OBV.
The final closes are unchanged while volume continues. Under the stated equality rule, those bars add zero to OBV.

Controlled comparison

Equal volume changes the cumulative path while keeping prices identical. The indicator is a signed-volume summary, not proof of accumulation or future returns. Comparison: equal volume changes signing weights, not the price path.
Equal volume changes the cumulative path while keeping prices identical. The indicator is a signed-volume summary, not proof of accumulation or future returns. Comparison: equal volume changes signing weights, not the price path.

The comparison view changes the stated input or parameter while retaining the rest of the experiment. It is an optional demonstration, not an exercise. The captions explain the result directly; no answer or prediction is required.

What the output cannot establish

OBV units are volume units, not currency or a normalized strength score. Cross-asset raw levels are not directly comparable. A single enormous-volume bar can dominate the cumulative path indefinitely. The all-or-nothing close sign does not describe buying versus selling initiation, intrabar balance, or which participants held positions overnight.

A threshold crossing is an observation about the formula. Turning it into a decision requires an entry convention, an exit convention, execution assumptions and a loss budget. Without those, an attractive indicator picture is not an investment strategy. Repeated signals derived from the same prices are also not automatically independent confirmations.

Parameter choices should follow the question being asked, not a search for the smoothest historical chart. A shorter memory can reveal change sooner while reacting to more transient variation. A longer memory can reduce some fluctuations while retaining obsolete conditions. Neither choice removes uncertainty, transaction costs or gap risk.

A practical reading sequence

First identify the price behavior and interval. Next inspect whether the indicator has enough completed observations to be initialized. Then describe the output in its actual units and compare it with the relevant input event. Finally consider a competing explanation, such as a window exit, an unusual volume weight or a change in the reference range. This sequence prevents a familiar line shape from replacing the calculation.

Preserve failed or ambiguous examples when evaluating a rule. Do not move an indicator backward in time to make it appear more responsive, exclude cases with unavailable outputs without describing the exclusion, or use a completed higher-timeframe value before that candle actually ended.

Related: smoothing and initialization, market context, completed and incomplete intervals, risk and adverse execution.

Methodology and source notes

Methodology attribution: Joseph Granville’s On-Balance Volume. TA-Lib’s OBV implementation record identifies the indicator and links its implementation. WOI’s zero-origin educational convention is stated explicitly.

Source references checked 3 December 2026. Formulas are explained independently; no external illustration is reproduced. The original synthetic scenarios explain mechanisms and limitations, not validated investment advantages.