obv#

obv(close, volume, talib=None, offset=None, **kwargs)[source]#

On Balance Volume (OBV)

On Balance Volume is a cumulative indicator to measure buying and selling pressure.

Sources:

https://www.tradingview.com/wiki/On_Balance_Volume_(OBV) https://www.tradingtechnologies.com/help/x-study/technical-indicator-definitions/on-balance-volume-obv/ https://www.motivewave.com/studies/on_balance_volume.htm

Calculation:

signed_volume = signed_series(close, initial=1) * volume obv = signed_volume.cumsum()

Args:

close (pd.Series): Series of ‘close’s volume (pd.Series): Series of ‘volume’s talib (bool): If TA Lib is installed and talib is True, Returns the TA Lib

version. Default: True

offset (int): How many periods to offset the result. Default: 0

Kwargs:

fillna (value, optional): pd.DataFrame.fillna(value) fill_method (value, optional): Type of fill method

Returns:

pd.Series: New feature generated.