willr#

willr(high, low, close, length=None, talib=None, offset=None, **kwargs)[source]#

William’s Percent R (WILLR)

William’s Percent R is a momentum oscillator similar to the RSI that attempts to identify overbought and oversold conditions.

Sources:

https://www.tradingview.com/wiki/Williams_%25R_(%25R)

Calculation:
Default Inputs:

length=20

LL = low.rolling(length).min() HH = high.rolling(length).max()

WILLR = 100 * ((close - LL) / (HH - LL) - 1)

Args:

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 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.