FRENESDE

CCI

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

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
± 100 thresholds
Levels beyond which the move is considered strong
Take the mission on Doji Academy

← Back to the index