obv
forge.tafunctionSince Forge API 1
Functionpython
forge.ta.obv(close: ArrayLike, volume: ArrayLike) -> np.ndarrayOn-balance volume: a running total that starts with the first bar's volume.
Parameters
| Name | Type |
|---|---|
| close | ArrayLike |
| volume | ArrayLike |
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) -> NoneVolume added on up closes and taken away on down closes.
Inputs
| Name | Type | Default |
|---|---|---|
| volume | volume | tick |
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.