OBV (On-Balance Volume) explained: how to read it
By Oalgo · Last reviewed
On-Balance Volume (OBV) is a running total of volume. A candle that closes higher than the one before adds its volume, a candle that closes lower subtracts it, and an unchanged close adds nothing.
How is OBV calculated?
#- Compare each close with the close before it.
- Higher: add this candle's volume to the running total. Lower: subtract it. Equal: add nothing.
- The first candle has no candle before it, so it adds nothing and OBV starts at 0.
- OBV can be smoothed with an EMA of the OBV line, 14 candles by default.
What does a worked example look like?
#| Candle | Close | Volume | Adds | OBV |
|---|---|---|---|---|
| 1 | 50 | 200 | 0 (first candle) | 0 |
| 2 | 51 | 150 | +150 | 150 |
| 3 | 50.5 | 300 | −300 | −150 |
| 4 | 50.5 | 120 | 0 (same close) | −150 |
| 5 | 52 | 250 | +250 | 100 |
The OBV number itself means little, because it depends on where the series starts. What counts is its direction and whether it agrees with price.
How do you read OBV?
#| What you see | What it suggests |
|---|---|
| OBV rising along with price | Volume is adding up on candles that close higher. |
| OBV falling along with price | Volume is adding up on candles that close lower. |
| Price makes a new high but OBV does not | The rise has had less volume behind it than the earlier one. Often called a divergence. |
| OBV crosses above its EMA | OBV has turned up compared with its recent average. |
| OBV crosses below its EMA | OBV has turned down compared with its recent average. |
How do people use OBV in rules?
#- OBV crossing above or below its EMA.
- OBV higher than it was a set number of candles ago, as a check that volume agrees with a rise in price.
- A new highest OBV of the last N candles at the same time as a price breakout.
- OBV next to a trend indicator, so that two conditions must agree.
What can OBV not tell you?
#OBV counts the whole volume of a candle as up or down, however small the price change was. A close up by a tiny amount adds as much as a close up by a large amount. It also says nothing about who was buying or selling. Chaikin Money Flow weights volume by where the close sits inside the candle instead. Test any OBV rule on past prices with a backtest, then forward test it.
In Oalgo you can tell Oalgo AI your OBV rule in your own words, check the rule it builds, and test it. After testing, if you choose, you Go Live with your own Live Strategy on your own Venue Account at a Supported Venue.
Read next
- Chaikin Money Flow (CMF) explained: how to read itChaikin Money Flow shows where candles close in their range, weighted by volume, from −1 to +1. See the formula, how to read CMF, and how to test rules.
- What is VWAP? The VWAP indicator explainedThe VWAP indicator is the average price of the day so far, weighted by volume and restarted each day. See how it is calculated, read and tested.