Commodity Channel Index (CCI)
The Commodity Channel Index (CCI) measures how far the current typical price is from its recent average, in units of how far prices usually stray. A CCI of +150 means the price is unusually far above its average, and −150 unusually far below it. Donald Lambert created it and introduced it in 1980 in what was then Commodities magazine. Despite the name it is used on stocks, indexes, currencies and crypto.
At a glance
| Type | Momentum oscillator, unbounded |
| Created by | Donald Lambert, 1980 |
| Standard setting | 20 periods |
| Key levels | +100 and −100 |
| TradingView rating | Buy if below −100 and rising; Sell if above +100 and falling |
How it’s calculated
TradingView’s help page sets out the steps for a 20-period CCI:
Typical price (TP) = (high + low + close) ÷ 3
CCI = (TP − 20-period simple average of TP) ÷ (0.015 × mean deviation)
The mean deviation is the average distance of the last 20 typical prices from their 20-period average, ignoring whether each one is above or below it.
The constant 0.015 is there for scaling: it puts most CCI values between −100 and +100, so readings beyond those levels stand out.
Worked example: 21 days
A hypothetical stock slides for 20 days, then bounces on day 21:
| Day | High | Low | Close | Typical price | Distance from 57.16 |
|---|---|---|---|---|---|
| 1 | 61.20 | 60.10 | 60.80 | 60.70 | 3.54 |
| 2 | 61.00 | 59.90 | 60.20 | 60.37 | 3.21 |
| 3 | 60.50 | 59.40 | 59.70 | 59.87 | 2.71 |
| 4 | 60.10 | 59.00 | 59.30 | 59.47 | 2.31 |
| 5 | 59.80 | 58.60 | 58.90 | 59.10 | 1.94 |
| 6 | 59.40 | 58.30 | 58.70 | 58.80 | 1.64 |
| 7 | 59.20 | 58.00 | 58.30 | 58.50 | 1.34 |
| 8 | 58.90 | 57.60 | 57.90 | 58.13 | 0.97 |
| 9 | 58.40 | 57.20 | 57.60 | 57.73 | 0.57 |
| 10 | 58.10 | 56.90 | 57.10 | 57.37 | 0.21 |
| 11 | 57.70 | 56.50 | 56.80 | 57.00 | 0.16 |
| 12 | 57.40 | 56.20 | 56.40 | 56.67 | 0.49 |
| 13 | 57.00 | 55.80 | 56.10 | 56.30 | 0.86 |
| 14 | 56.70 | 55.40 | 55.70 | 55.93 | 1.23 |
| 15 | 56.30 | 55.10 | 55.30 | 55.57 | 1.59 |
| 16 | 55.90 | 54.60 | 54.90 | 55.13 | 2.03 |
| 17 | 55.60 | 54.30 | 54.60 | 54.83 | 2.33 |
| 18 | 55.20 | 53.80 | 54.00 | 54.33 | 2.83 |
| 19 | 54.70 | 53.40 | 53.60 | 53.90 | 3.26 |
| 20 | 54.30 | 53.00 | 53.20 | 53.50 | 3.66 |
| 21 | 54.60 | 53.30 | 54.20 | 54.03 |
CCI on day 20:
- Typical price on day 20 = (54.30 + 53.00 + 53.20) ÷ 3 = 53.50.
- The 20 typical prices (days 1–20) add up to 1,143.20, so their average is 57.16.
- The distances from 57.16 (last column) add up to 36.87, so the mean deviation is 36.87 ÷ 20 = 1.8433.
- CCI = (53.50 − 57.16) ÷ (0.015 × 1.8433) = −3.66 ÷ 0.02765 = −132.37.
CCI on day 21, using days 2–21: the typical price is 54.03, the 20-day average 56.83 and the mean deviation 1.8067, so CCI = (54.03 − 56.83) ÷ (0.015 × 1.8067) = −103.08.
| Day | CCI | Below −100? | Compared with the day before | TradingView reading |
|---|---|---|---|---|
| 21 | −103.08 | Yes | Higher (−132.37 on day 20) | Buy |
On day 21 CCI is still below −100 but has risen from the day before, which is exactly the buy condition. Had the bounce been bigger and lifted CCI above −100 in one day, the reading would have been Neutral instead.
How traders read the CCI
From TradingView’s help page:
- Overbought and oversold. Crossing above the overbought threshold can come before a fall, and crossing below the oversold threshold before a rise. TradingView notes that the right thresholds often vary between instruments.
- Strength, not just reversal. In a strong uptrend, a move above +100 can show confidence in the move, and prices may keep rising; the same goes for a move below −100 in a downtrend.
- Divergence. A bullish divergence is price making a lower low while CCI makes a higher low; a bearish divergence is the reverse at highs.
How TradingView’s rating uses it
CCI (20) is one of the 11 oscillators:
| Reading | Condition |
|---|---|
| Buy (+1) | CCI below −100 and higher than the previous CCI |
| Sell (−1) | CCI above +100 and lower than the previous CCI |
| Neutral (0) | Anything else |
Settings and variations
- Length. 20 is the standard; shorter lengths reach ±100 more often.
- Levels. Some traders use ±200 for rarer, stronger extremes.
- Source. The standard CCI uses the typical price. Some platforms offer a version based on the close only, which gives different values.
Limitations
- Unbounded. There is no ceiling, so “extreme” depends on the market’s own history.
- Trends can hold beyond ±100 for a long time, as TradingView’s strength reading implies.
- Sensitive to the window. One unusual day changes the average and the mean deviation for the next 20 days.
See it on a live chart
This market's chart has one value per day, with no daily high or low, so it draws as a line and these indicators, which need highs and lows, aren't shown on it.
CCI (20) under daily candles, calculated from the typical price. The legend shows the CCI, then a smoothing line TradingView adds to it.
For TradingView's current rating of any market, with this indicator among the 26, see the market analysis page or the technical signals for all markets.
Sources
- TradingView, Commodity Channel Index (CCI), read Nov. 30, 2026
- TradingView, Technical Ratings, read Nov. 30, 2026
This page explains how an indicator is calculated and how traders commonly read it. The worked examples use hypothetical prices. Nothing here is a recommendation to buy or sell any investment. This content is for informational purposes only and does not constitute financial advice. Consult a qualified financial advisor before making investment or financial decisions.