inertia#

inertia(close=None, high=None, low=None, length=None, rvi_length=None, scalar=None, refined=None, thirds=None, mamode=None, drift=None, offset=None, **kwargs)[source]#

Inertia (INERTIA)

Inertia was developed by Donald Dorsey and was introduced his article in September, 1995. It is the Relative Vigor Index smoothed by the Least Squares Moving Average. Postive Inertia when values are greater than 50, Negative Inertia otherwise.

Sources:

https://www.investopedia.com/terms/r/relative_vigor_index.asp

Calculation:
Default Inputs:

length=14, ma_length=20

LSQRMA = Least Squares Moving Average

INERTIA = LSQRMA(RVI(length), ma_length)

Args:

open_ (pd.Series): Series of ‘open’s high (pd.Series): Series of ‘high’s low (pd.Series): Series of ‘low’s close (pd.Series): Series of ‘close’s length (int): It’s period. Default: 20 rvi_length (int): RVI period. Default: 14 refined (bool): Use ‘refined’ calculation. Default: False thirds (bool): Use ‘thirds’ calculation. Default: False mamode (str): See `help(ta.ma)`. Default: ‘ema’ drift (int): The difference 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.