The modified Williams' Percent Range indicator. The indicator calculation equation (%R = (MAX (HIGH (i — n)) — CLOSE (i)) / (MAX (HIGH (i — n)) — MIN (LOW (i — n))) * 100) is left intact. Smoothing is added and the range of fluctuations of the indicator is changed. Now the indicator fluctuates in the range from -50 to 50. Overbought/oversold levels are set to 40 and -40, as well as one more significant level 0 is added.
WPR Period - the indicator period
Averaging period - the smoothing period