Home / Wiki / C / Commodity Channel Index (CCI)

Commodity Channel Index (CCI)

Trading and SpeculationUpdated 16 Nov 2026

The Commodity Channel Index (CCI) is an indicator used in technical analysis that shows where the current price stands relative to its average over a recent period. The difference between price and average is divided by a measure of normal variation, so the result expresses how unusual the present level is. Readings are unbounded but fall mostly between -100 and +100.

The indicator was introduced by Donald Lambert in 1980 in a magazine for commodity traders. He designed it to identify the beginning and end of cyclical moves in commodity prices, which explains the name. It is now applied to shares, currencies, indices and other markets as a general-purpose oscillator, used both to detect new trends and to flag stretched conditions.

01

Formula

The calculation starts from the typical price of each period, TP=(H+L+C)/3\text{TP} = (H + L + C) / 3, the average of the high, low and close. The index is then:

CCI=TP−SMAn(TP)0.015×MD\text{CCI} = \frac{\text{TP} - \text{SMA}_n(\text{TP})}{0.015 \times \text{MD}}
  • TP\text{TP} is the typical price of the current period.
  • SMAn(TP)\text{SMA}_n(\text{TP}) is the simple moving average of the typical price over nn periods. Lambert used 20, and 14 is also common.
  • MD\text{MD} is the mean deviation: the average of the absolute differences between each of the last nn typical prices and the current moving average.
  • 0.0150.015 is a scaling constant chosen by Lambert so that roughly 70 to 80 percent of readings fall between -100 and +100.

The mean deviation plays the role that the standard deviation plays in Bollinger Bands. Both indicators ask how far the price is from its average in units of typical dispersion.

02

Worked example

A five-period setting keeps the arithmetic short. Suppose the last five typical prices are 100, 102, 101, 104 and 108. Their average is 515/5=103515 / 5 = 103. The absolute deviations from 103 are 3, 1, 2, 1 and 5, which sum to 12, so the mean deviation is 12/5=2.412 / 5 = 2.4. The index is (108−103)/(0.015×2.4)=5/0.036=138.9(108 - 103) / (0.015 \times 2.4) = 5 / 0.036 = 138.9.

A reading of about 139 means that the latest typical price is well above its recent average relative to normal variation. If the latest price had been 103, equal to the average, the index would have been zero.

03

Interpretation

Lambert's original use treated a move beyond the usual band as the start of something new, not as an excess to be faded. Later practice added the opposite reading. The main approaches are these:

  • Trend emergence. A rise above +100 is taken as evidence that a strong upward trend has begun, and a fall below -100 as evidence of a downward one. The position is closed when the index returns inside the band. This is close to breakout trading.
  • Overbought and oversold. Readings above +100, or more conservatively +200, are treated as overbought, and readings below -100 or -200 as oversold, in the expectation of mean reversion.
  • Zero-line crosses. A move through zero shows the price crossing its own moving average and is used as a simple directional signal.
  • Divergence. A new high in price that is not confirmed by a new high in the index is read as weakening momentum.

The first two approaches give opposite instructions for the same reading, so the indicator has to be interpreted in the light of whether the market is trending or ranging.

04

Comparison with other oscillators

The relative strength index and the stochastic oscillator are bounded between 0 and 100, which makes extreme levels easy to define and compare between markets. The Commodity Channel Index has no upper or lower limit, so a very strong move can produce readings of 300 or more, and what counts as extreme differs from one security to another. It uses the high, low and close, where the relative strength index uses closing prices only.

05

Limitations

The scaling constant is arbitrary, and the share of readings that fall inside the band depends on the market and the lookback length. Short settings produce frequent swings beyond 100 in both directions, and longer settings respond slowly. In a sideways market, trend-emergence rules give repeated false starts, while in a strong trend overbought and oversold rules lead to early exits or trades against the move.

The index is derived wholly from past prices and adds no new information. Any rule built on it should be checked by backtesting across different periods and markets, with trading costs included, before its results are relied on.

Last updated 16 Nov 2026