Skip to content
All library documents

Real-Time CCI Smoothed With Tillson’s Algorithm

Article MQL5 code base

Summary

This document describes a version of the Commodity Channel Index smoothed with Tillson’s algorithm. Its defining behavior is recalculation on every incoming tick, with the indicator drawn in real time. The description also notes an implementation detail: smoothing coefficients must be retained in buffer variables across bar closes for the algorithm to operate correctly.

To limit computation, the indicator calculates only over a configured number of bars rather than processing the full historical series. This makes the indicator’s historical coverage dependent on that setting. The document explains the calculation approach and runtime behavior, but does not provide trading rules, signal thresholds, charts, or performance evidence. It therefore serves as a technical description of an indicator implementation, not as evidence that the smoothed CCI is predictive or suitable for a particular market or timeframe.

Key ideas

  • The indicator applies Tillson smoothing to the Commodity Channel Index.
  • It recalculates on every tick and displays values in real time.
  • Smoothing coefficients need to persist in buffers after a bar closes.
  • Calculations are restricted to a configured number of bars rather than the full history.
  • No trading rules or performance evidence are provided.

Tags

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