GlossaryCommodity Channel Index (CCI)
Commodity Channel Index (CCI)
The Commodity Channel Index measures how far a candle's typical price is from its moving average, in units of mean deviation. Donald Lambert developed it for commodities, but it works on any market. It helps you spot unusually strong swings and the start of new moves.
Calculation
, and are a candle's high, low and close, and is the CCI length.
1. Typical price:
2. Simple moving average over the last candles:
3. Mean absolute deviation of all values from the current average:
4. CCI:
The mean absolute deviation is not a standard deviation. Calculated with a standard deviation, the CCI values would sit noticeably closer together. Lambert chose the constant 0.015 so that about 70 to 80% of the values fall between −100 and +100. If , there is no value. The first value appears on candle .
How to read it
The curve is red from +100 up, green at −100 and below, and gray in between. Reference lines sit at −100, 0 and +100.
- Extremes: Above +100 the typical price is unusually far above its average, below −100 unusually far below it. There is no fixed upper or lower limit; in strong moves, ±200 and more are possible.
- Two readings: As a trend signal, a rise above +100 counts as the start of a strong upward move, a fall below −100 as the start of a downward move. As a counter-signal, what counts is the return from an extreme zone into the range in between. Which reading fits depends on whether the market is trending or moving sideways.
- Zero line: Above zero the typical price is above its average, below zero below it.
- Divergences: A new price high with a lower CCI high shows fading momentum, and the mirror image applies at a low.
Settings
| Setting | Default | Effect |
|---|---|---|
| CCI length | 20 | Window for the average and the deviation (2–100). Shorter swings further and more often. |
Limitations
- Because the CCI is unbounded, what counts as “extreme” differs by symbol and interval. Look at the values a symbol has reached in the past.
- In very quiet phases the mean deviation gets small, and even small moves produce large swings.