Skip to content
All library documents

A CCI Variant Using Rolling Highs and Lows

Article MQL5 code base

Summary

This note introduces the Commodity Channel Index as a measure of how far the current price is from an average price over a chosen period. CCI may help identify potential trend changes or unusually high and low conditions, and the document says it can be applied beyond commodities to instruments such as stocks, indices, and ETFs. Higher readings indicate prices well above their average, while lower readings indicate prices well below it.

The variant changes the price input used in the calculation. Instead of averaging the current high, low, and close, it averages the highest high and lowest low over the period with the current close. The author suggests this adjustment makes extreme readings more pronounced and the indicator more responsive to sudden price moves. No period settings, formula details beyond this input change, testing results, or threshold rules are provided, so the claimed responsiveness is not supported by comparative evidence here.

Key ideas

  • CCI compares a price measure with its average over a selected period.
  • High and low CCI readings can help flag prices far from their average.
  • This variant combines the period's highest high and lowest low with the current close.
  • The document claims the modified input emphasizes extremes and responds more quickly to sharp price changes.
  • No thresholds or comparative testing are supplied.

Tags

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