API documentation for pandas_ta.momentum.rvgi Python function.
- rvgi(open_, high, low, close, length=None, swma_length=None, offset=None, **kwargs)#
Relative Vigor Index (RVGI)
The Relative Vigor Index attempts to measure the strength of a trend relative to its closing price to its trading range. It is based on the belief that it tends to close higher than they open in uptrends or close lower than they open in downtrends.
- Default Inputs:
SWMA = Symmetrically Weighted Moving Average numerator = SUM(SWMA(close - open, swma_length), length) denominator = SUM(SWMA(high - low, swma_length), length) RVGI = numerator / denominator
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: 14 swma_length (int): It’s period. Default: 4 offset (int): How many periods to offset the result. Default: 0
fillna (value, optional): pd.DataFrame.fillna(value) fill_method (value, optional): Type of fill method
pd.Series: New feature generated.