Documentation / @finchart/indicators / obv
Function: obv()
obv(
source):Obv
Defined in: indicators/src/factories.ts:1030
OBV — a running sum of volume, signed by the direction of the close. The first value is vol₀ (TA-Lib convention — the absolute level is meaningless, only the shape matters). A bar without volume is null and the sum resumes on the next bar that has one: since the level is arbitrary anyway, a gap costs exactly one bar's contribution and nothing else — every later up/down is real information, and throwing it away for good (as VWAP must, whose weights are unknown until its anchor) would be pretending the shape is unknowable. The direction on the resuming bar is against the previous bar's close, gap or not — a gap is missing volume, not a missing price.
Parameters
source
Source<OHLC>