Skip to content
All library documents

Smoothing the Commodity Channel Index with a Moving Average

Article MQL5 code base

Summary

This indicator pairs the Commodity Channel Index with a moving average calculated from the CCI values. The CCI uses a configurable lookback period and applied price; its resulting series is then smoothed using a separately configurable moving-average period and averaging method. The output therefore consists of the oscillator and a signal line derived from that oscillator.

The description explains the calculation structure and lists the parameters, but it gives no rules for entries, exits, or interpreting crossings. It also provides no tests or evidence that a particular setting improves decisions. Traders would need to choose parameter values and evaluate the indicator in their own market and timeframe before using it as part of a strategy.

Key ideas

  • The indicator calculates CCI from a selected price input and CCI period.
  • A moving average of the CCI series acts as a smoothed signal line.
  • Users can set the CCI period, applied price, moving-average period, and averaging method.
  • The description gives no trading rules or performance evidence.

Tags

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