Skip to content
All library documents

Rounding CCI Values into a Histogram

Article MQL5 code base

Summary

The indicator described here displays the standard Commodity Channel Index as a histogram after rounding its values to selected increments. Available settings range from no rounding through division by progressively larger values, including a coarse setting that groups readings into steps of fifty. The rounding direction depends on the sign: negative readings are rounded downward, and positive readings upward. This transforms the usual continuous CCI output into a more discretized visual representation.

The document explains the transformation and its available settings, but provides no trading rules, chart example, backtest, or evidence that rounding improves signals. Coarser settings necessarily discard more detail, so the display may make broad zones easier to distinguish while obscuring smaller changes. It does not explain how to interpret rounded readings or establish which setting is appropriate for a particular market or timeframe.

Key ideas

  • The indicator presents the standard CCI as a rounded histogram.
  • Users can select different rounding scales, from no rounding to steps of fifty.
  • Negative values are rounded downward, while positive values are rounded upward.
  • The description gives no trading rules or evidence that rounding improves signal quality.
  • Larger rounding scales reduce detail in the displayed oscillator values.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.