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 Round

Standard WPR oscillator implemented as a histogram rounding its values to the standard range:

  • 1 — no rounding;
  • 2 — all values from minus 100 to 0 divided by 2;
  • 5 — all values from minus 100 to 0 divided by 5;
  • 10 — all values from minus 100 to 0 divided by 10;
  • 20 — all values from minus 100 to 0 divided by 20;
  • 50 — 0, 50, 100.

For all WPR values less than minus 50, rounding occurs to the lower side, while for all RSI values exceeding 50 — to the greater one.

The following input is used for rounding in the indicator:

input ENAM_ROUND_MODE Round=X10; // rounding level

MetaTrader Experts, Indicators, Scripts and Libraries

Fig.1. WPR_Histogram_Round

16706

Best MetaTrader Indicators + Profitable Expert Advisors