What is OBV (on-balance volume)?
On-balance volume (OBV) keeps a running total of volume: a bar that closes higher than the previous one adds its whole volume, a lower close subtracts it, and an unchanged close adds nothing.
The idea is that volume tends to lead price, so the running total shows whether volume is flowing in on up days or out on down days. Ours starts at zero on the first loaded bar and also draws MAOBV, a 30-bar simple average of OBV, in the same pane.
How is OBV calculated?
OBV[t] = OBV[t-1] + V[t] if C[t] > C[t-1], − V[t] if C[t] < C[t-1], else OBV[t-1]; MAOBV = SMA(OBV, 30)
The terms in the formula
- V[t]
- Volume of bar t.
- C[t], C[t-1]
- Close of the current and previous bar.
- MAOBV
- Simple moving average of OBV over 30 bars (the smoothing input).
How do you read OBV?
- The level means nothing on its own; the direction does. OBV rising with price shows volume confirming the advance.
- OBV making a new high before price does is often read as accumulation; OBV falling while price holds as distribution.
- OBV crossing above or below MAOBV marks a change in the recent balance of up-volume and down-volume.
- A flat OBV during a price move suggests the move is happening on light, less committed volume.
What are the limits of OBV?
- It starts at zero on the first loaded bar, so the absolute number changes when more history loads; only the shape is meaningful.
- A bar that closes one cent higher adds all its volume, the same as a big rally day.
- Volume spikes from index rebalances, option expiry or block trades can dominate the line without saying anything about sentiment.
- Sources that report volume differently (consolidated versus one exchange) give different OBV for the same stock.
Where can you see it on TickerBase?
Open a live chart and add the indicator