Commodity Channel Index (CCI)
By Chad Smith, Director of Research & Analysis · Updated
On this page
The Commodity Channel Index (CCI) is a momentum oscillator that measures how far price has moved from its average, scaled by how much it usually deviates from that average. Donald Lambert introduced it in 1980 in Commodities magazine, aiming to spot cyclical turns in commodity futures. Despite the name, it is used on all kinds of markets.
What it measures
CCI measures the deviation of price from its statistical mean. It starts with the typical price of each bar, compares it with a moving average of typical prices, and divides the difference by the average distance prices usually sit from that moving average.
The result shows whether price is far from "normal" for that market. A CCI of +150 means price is well above its average by the market's own standards. A CCI of −150 means it is well below. A reading near zero means price is close to its average.
Because it is scaled by the market's own deviation, CCI adjusts to volatility. A move that is large for a quiet market produces a high reading, while the same move in a volatile market may produce a modest one.
The formula
Typical Price (TP) = (High + Low + Close) / 3
SMA_TP = simple moving average of TP over N periods
Mean Deviation (MD) = average of |TP − SMA_TP| over the last N periods
CCI = (TP − SMA_TP) / (0.015 × MD)
where
N = the lookback period (20 by default)
0.015 = Lambert's constant, chosen so most readings fall between −100 and +100
Note that the mean deviation is the average absolute distance, not the standard deviation. Mean deviation is less sensitive to a few large outliers.
Worked example (illustrative numbers). Today's typical price is 105. The 20-period SMA of typical prices is 100. Over the same 20 bars, the average absolute distance between typical price and the SMA is 2. CCI = (105 − 100) / (0.015 × 2) = 5 / 0.03 = 166.7. Price is well above its normal range, a reading that Lambert would describe as a strong upward move.
Default settings
| Setting | Conventional value |
|---|---|
| Period | 20 |
| Source | Typical price |
| Upper level | +100 |
| Lower level | −100 |
Some traders use 14 periods to align CCI with other oscillators. Shorter periods make CCI more volatile; longer ones smooth it. CCI is built into MetaTrader, TradingView and other common platforms. Some platforms default to 14 rather than 20, so check the input.
How to read it
Zero line. CCI above zero means typical price is above its average, so short-term momentum leans up. Below zero means it leans down.
Plus and minus 100. Lambert's original use was to treat a move above +100 as the start of a strong uptrend and a move below −100 as the start of a strong downtrend. Many traders today read them the opposite way, as overbought and oversold zones. Which reading applies depends on context: in trends, extremes show strength; in ranges, they show stretch.
Extreme readings. Readings beyond +200 or −200 are unusual and indicate a very strong push, which can either be the start of a trend or a blow-off.
Divergence. If price makes a new high but CCI makes a lower high, momentum is fading. Divergence on CCI is read the same way as on other oscillators.
CCI vs RSI and the stochastic
RSI compares the size of gains with losses, and the stochastic oscillator compares the close with the high-low range. Both are bounded between 0 and 100. CCI compares price with its own average and typical deviation and is unbounded.
That makes CCI more like a statistical z-score than a percentage. It can show how unusual a move is, which RSI and the stochastic cannot express beyond their fixed limits. The trade-off is that unbounded readings are harder to compare across time and markets.
The detrended price oscillator also measures price relative to a moving average, but without scaling by deviation.
Common strategies
Lambert's trend entries
Buy when CCI rises above +100 and exit when it falls back below +100. Sell short when CCI drops below −100 and exit when it rises back above −100. This treats the zones as trend triggers, not reversal points.
Range reversals
In a sideways market, sell when CCI turns down from above +100 and buy when it turns up from below −100. Pair this with support and resistance to give the signal a location.
Zero-line crosses with trend filter
With price above a 200-period moving average, take long trades when CCI crosses from below zero to above it. This times re-entries in an uptrend.
Divergence
Look for divergence between CCI and price at swing points, especially near patterns such as a head and shoulders.
Weaknesses
CCI is unbounded. There is no fixed level at which a market is "too far", so extremes can keep extending in strong trends.
The two ways of reading ±100 conflict. Using CCI as a trend tool and as an overbought/oversold tool gives opposite signals, so a trader must choose a method based on market conditions.
It is sensitive and can whipsaw around zero and the ±100 levels in choppy markets.
It lags. CCI is built on a moving average, so turns in the indicator come after turns in price have begun.
Indicators it pairs with
- ADX, to decide whether to read CCI as a trend tool or a range tool.
- Moving averages, to set the main direction.
- Bollinger Bands, which also measure deviation from an average.
- RSI, for a bounded second opinion on momentum.
- Volume tools such as OBV, to check participation behind extreme readings.
For more on momentum oscillators, see the technical analysis course.
Brokers with strong charting to practice on
Put this into practice on a demo account first, with no money at risk.
- Featured broker
Pepperstone4.7 / 5Visit
IC Markets4.9 / 5Visit
GO Markets4.8 / 5Visit
Frequently asked questions
What does the CCI measure?
CCI measures how far the current typical price is from its moving average, compared with the average deviation from that average. High readings mean price is unusually far above its average.
Is CCI only for commodities?
No. Donald Lambert designed it for commodity futures, but it is used on stocks, indices, forex and crypto as well.
What do the plus and minus 100 levels mean?
Lambert chose a constant so that most readings would fall between plus and minus 100. Moves beyond those levels show price moving unusually far from its average.
Is CCI bounded like RSI?
No. CCI has no upper or lower limit. Readings can extend well beyond plus or minus 100 in strong moves.
How is CCI different from RSI?
RSI compares gains with losses and is bounded between 0 and 100. CCI compares price with its average and its typical deviation, and has no fixed limits.