Skip to content
All library documents

CCI and ATR Trend Indicator with Up, Down, and Flat States

Article MQL5 code base

Summary

This brief description explains a chart indicator that uses the Commodity Channel Index (CCI) and Average True Range (ATR) to classify market direction. It draws a colored line representing one of three states: an uptrend, a downtrend, or a flat market. The user can set the CCI calculation period and the ATR calculation period, so the indicator’s behavior depends on the selected lookback settings.

The document gives no formula details, threshold rules, examples, backtest results, or evidence about whether the indicator forecasts returns. It identifies the tool’s inputs and visual output, but does not explain how to interpret state changes as entries, exits, or risk controls. As a result, it is useful as a concise description of a technical chart study, while its trading value and sensitivity to parameter choices remain unassessed here.

Key ideas

  • The indicator combines CCI and ATR values to show market direction on a chart.
  • Its output distinguishes uptrend, downtrend, and flat conditions using a colored line.
  • CCI period and ATR period are the two configurable inputs.
  • The description provides no trading rules, formula thresholds, or performance evidence.

Tags

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