bias#

API documentation for pandas_ta.momentum.bias Python function.

bias(close, length=None, mamode=None, offset=None, **kwargs)[source]#

Bias (BIAS)

Rate of change between the source and a moving average.

Sources:

Few internet resources on definitive definition. Request by Github user homily, issue #46

Calculation:
Default Inputs:

length=26, MA=’sma’

BIAS = (close - MA(close, length)) / MA(close, length)

= (close / MA(close, length)) - 1

Args:

close (pd.Series): Series of ‘close’s length (int): The period. Default: 26 mamode (str): See `help(ta.ma)`. Default: ‘sma’ drift (int): The short period. Default: 1 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.