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 | CCI Histogram Round

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

  • 1 — no rounding;
  • 2 — all values divided by two;
  • 5 — all values divided by five;
  • 10 — all values divided by ten;
  • 20 — all values divided by twenty;
  • 50 — 0, 50, 100 etc.

For all CCI values less than zero, rounding occurs to the lower side, while for all CCI values exceeding zero — 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. CCI_Histogram_Round indicator

16869

Best MetaTrader Indicators + Profitable Expert Advisors