obv

forge.tafunctionSince Forge API 1
Functionpython
forge.ta.obv(close: ArrayLike, volume: ArrayLike) -> np.ndarray

On-balance volume: a running total that starts with the first bar's volume.

Parameters

NameType
closeArrayLike
volumeArrayLike

Indicator: On-balance volume

Volume is added on an up close and taken away on a down close. After a missing bar the total starts again. Its level depends on where the data starts; only its shape means anything.

Classpython
forge.ta.OBV(**inputs: Any) -> None

Volume added on up closes and taken away on down closes.

Inputs

NameTypeDefault
volumevolumetick

A running total of volume, added on an up close and taken away on a down close, starting with the first bar's volume

It depends on where the data starts.