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
Fig.1. CCI_Histogram_Round indicator