The CCI (Commodity Channel Index, Donald Lambert 1980) compares the typical price TP = (high + low + close) / 3 with its N-bar mean, then divides by 0.015 × the mean absolute deviation: CCI = (TP − SMA(TP)) / (0.015 × mean deviation).
Example: high 110, low 100, close 105 → TP = 105. SMA(TP) = 100 and mean deviation = 2 → CCI = 5 / (0.015 × 2) = 5 / 0.03 ≈ 167. The 0.015 constant is chosen so that 70 to 80% of values stay between −100 and +100.
Reading the CCI: it is plotted below price with two lines at +100 and −100. Mean-reversion plan: wait for the CCI to drop below −100, then buy when it crosses back above −100; stop below the last low, exit when it returns towards 0. Trend plan (the opposite): buy when it crosses +100.
Watch out: CCI is unbounded; ± 300 happens in choppy markets. The same indicator serves two opposite strategies: decide in advance which one you test, instead of picking afterwards the one that “worked” (selection bias).
Examples
CCI-X (fictional market) : The bands wrap the mean. Assume SMA(TP) = 40 and a mean deviation of 1: a typical price of 38.2 gives CCI = −1.8 / 0.015 = −120, below −100. In mean reversion, you wait for CCI to climb back above −100 before buying.
1980: Lambert creates the CCI : Donald Lambert published the CCI in 1980 in Commodities magazine, to spot cycles in commodities. He used it mainly for trend following: a move above +100 signaled the start of a strong move. Lesson: the same indicator can serve trend or mean reversion; the tested rule, not the indicator, makes the strategy.
Key terms
Typical price
Average of a bar’s high, low and close
Mean absolute deviation
Average absolute gap between TP and its mean, less sensitive to extremes than standard deviation
0.015 constant
Scaling factor that puts most values between −100 and +100