Commodity Channel Index (CCI)

Updated November 30, 2026 · One of the 11 oscillators in TradingView's technical rating

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

TypeMomentum oscillator, unbounded
Created byDonald Lambert, 1980
Standard setting20 periods
Key levels+100 and −100
TradingView ratingBuy 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:

DayHighLowCloseTypical priceDistance from 57.16
161.2060.1060.8060.703.54
261.0059.9060.2060.373.21
360.5059.4059.7059.872.71
460.1059.0059.3059.472.31
559.8058.6058.9059.101.94
659.4058.3058.7058.801.64
759.2058.0058.3058.501.34
858.9057.6057.9058.130.97
958.4057.2057.6057.730.57
1058.1056.9057.1057.370.21
1157.7056.5056.8057.000.16
1257.4056.2056.4056.670.49
1357.0055.8056.1056.300.86
1456.7055.4055.7055.931.23
1556.3055.1055.3055.571.59
1655.9054.6054.9055.132.03
1755.6054.3054.6054.832.33
1855.2053.8054.0054.332.83
1954.7053.4053.6053.903.26
2054.3053.0053.2053.503.66
2154.6053.3054.2054.03

CCI on day 20:

  1. Typical price on day 20 = (54.30 + 53.00 + 53.20) ÷ 3 = 53.50.
  2. The 20 typical prices (days 1–20) add up to 1,143.20, so their average is 57.16.
  3. The distances from 57.16 (last column) add up to 36.87, so the mean deviation is 36.87 ÷ 20 = 1.8433.
  4. 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.

DayCCIBelow −100?Compared with the day beforeTradingView reading
21−103.08YesHigher (−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:

ReadingCondition
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

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

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.