CCI_Histogram_Round – indicator MetaTrader 5

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:

  NonLagMA_v5_HTF - indicator MetaTrader 5
input ENAM_ROUND_MODE Round=X10; // rounding level

Fig.1. CCI_Histogram_Round indicator

Fig.1. CCI_Histogram_Round indicator


📈 ROBOTFX MetaTrader Expert Advisors and Indicators to maximize profits and minimize the risks