INDICATORS · OBV

OBV in Crypto: Why the Value Changes Before Candle Close

On-Balance Volume adds or subtracts a bar's whole volume depending on whether it closes up or down. On a live bar, that sign can flip with every tick around the prior close.

Short answer

OBV = previous OBV + volume if close > prior close, − volume if close < prior close, unchanged if equal. On the live bar the 'close' is the current price, so OBV's step for that bar is provisional twice over: the volume keeps growing, and the sign depends on whether price is above or below the prior close right now. If price hovers near the prior close, OBV can jump by the bar's full volume in either direction several times before the close. Use closed-bar OBV for any rule.

Which part of OBV uses the live bar

ComponentUses current bar?Effect intrabar
Prior OBVNoFixed
Current bar volumeYesGrows through the bar
Sign (close vs prior close)YesCan flip repeatedly
OBV valueYesJumps by ± full volume

OBV has no smoothing to damp the flip. A bar with 5,000 BTC of volume that is +1 tick above the prior close adds 5,000; one tick lower, it subtracts 5,000 — a 10,000 swing from a one-tick move.

Compare OBV in Crypto across Binance, Bybit, OKX and Hyperliquid markets.

Open markets in ChartsPod

How much it moves inside one bar

OBV during one bar (illustrative)OBV during one bar (illustrative): OPEN: Above prior close: +800; MID: Dips below: −2,900; LATE: Back above: +4,100; CLOSE: Below by 1 tick: −5,000.OPENAbove prior close: +800MIDDips below: −2,900LATEBack above: +4,100CLOSEBelow by 1 tick: −5,000
Only OBV's closing value is kept in history. Original ChartsPod editorial graphic.
Illustrative intrabar range of OBV vs its closed valueIllustrative intrabar range of OBV vs its closed value: OBV swing from one-tick sign flip 10,000 ; Typical closed-bar OBV step 3,200 .ILLUSTRATIVE INTRABAR RANGE OF OBV VS ITS CLOSED VALUEOBV swing from one-tick signflip10,000Typical closed-bar OBV step3,200
How far OBV travels inside a bar versus between bars. Original ChartsPod editorial graphic.

Rules

OBV signal hygieneOBV signal hygiene: Signals on closed bars; Bar-close alerts; Backtest uses the same rule; Live value labelled provisional; Settings identical across chart and alerts.OBV SIGNAL HYGIENESignals on closed barsBar-close alertsBacktest uses the same ruleLive value labelled provisionalSettings identical across chart and alerts
Closed values are what history shows. Original ChartsPod editorial graphic.

OBV is used as a confirmation filter in OBV Confirmation Backtest in Crypto: Fees, Slippage and Break-Even Costs; that rule must use closed bars.

Check OBV in Crypto against a live market before relying on it.

Try it in ChartsPod

Questions readers ask

Why does OBV jump so much mid-bar?

The bar's whole volume is signed by the current close vs the prior close.

Is OBV smoothed?

No.

When is OBV final for a bar?

At the close.

Sources and methodology

Indicator formulas are standard definitions; live-versus-closed behaviour follows TradingView's repainting documentation. Values in examples are illustrative.

  1. TradingView Pine Script: Repainting — live vs historical calculation.
  2. ChartsPod indicator reference — indicator calculations.

This article explains research tools and workflows. It is not financial advice, does not recommend buying or selling any asset and does not predict prices. Crypto derivatives carry a risk of rapid and total loss of margin.

CHARTSPOD EDITORIAL EDITION · RESEARCH AND EDUCATION ONLY · NOT FINANCIAL ADVICE.