Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 5 Indicator | Volatility adjusted WPR

This is volatility adjusted WPR (Williams Percent Range). Volatility used for adjusting is the "simple volatility" (no need for it, it is already incorporated in the code of this indicator)

There are 2 deviations compared to original WPR:

  • in order to display histogram in a simple way (without usage of 2 extra buffers), the value of WPR is shifted by +50 (ie: up)
  • smoothing is added (WPR is known for being "nervous" - this version can use low lag smoothing to smooth the results up. To turn the smoothing off, set the smoothing period to be less than or equal to 1)

MetaTrader Experts, Indicators, Scripts and Libraries

PS: an example why the smoothing seems to be necessary for WPR. 3 instances of WPR :

  • top most - the smoothed volatility adjusted
  • middle - volatility adjusted without smoothing
  • lowest - "regular" WPR

Which one would you use for trading decision on that chart?

MetaTrader Experts, Indicators, Scripts and Libraries


22815