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

Williams' Percent Range oscillator displayed as a color histogram, using volumes.

Calculation formula:

WPR Histogram Vol = ( WPR + 50) * Volume

For quite understandable reasons, the recalculation of overbought and oversold levels in such a modified oscillator should be performed using the same formula. In the final version, these levels are no longer permanent. Two levels with the appropriate breakout indication were used.

input int                 HighLevel2=+20;           // overbought level 2  input int                 HighLevel1=+15;           // overbought level 1  input int                 LowLevel1=-15;            // oversold level 1  input int                 LowLevel2=-20;            // oversold level 2  

In the indicator input parameters, these levels are shifted by the levels of 50 of the source WPR, and then multiplied by volumes at each indicator tick.

MetaTrader Experts, Indicators, Scripts and Libraries 

Fig. 1. WPR_Histogram_Vol

22393