Skip to content
All library documents

Building CCI Candles from OHLC Values

Article MQL5 code base

Summary

The indicator calculates four Commodity Channel Index series, one each from the high, low, open, and close prices. It combines these values in a candlestick-style display, giving a view of how CCI varies across the price bar rather than relying on a single price input.

The display can be interpreted like a conventional CCI, including reference levels, or monitored for candles crossing the zero line as a possible trend-change signal. The document provides no parameter settings, chart examples, performance evidence, or rules for confirming signals. Treat the zero-line cross as an indicator cue, not proof of a reversal; the method’s effectiveness and suitable thresholds are not established here.

Key ideas

  • The indicator computes separate CCI values from high, low, open, and close prices.
  • It combines those four values into a candlestick-style chart display.
  • Users can interpret the display with conventional CCI reference levels.
  • A cross of the zero line is proposed as a possible trend-change signal.

Tags

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