Commodity Channel Index (CCI)

CCI
Indicator

MomentumSeparate panelFree on ChartLabs

CCI measures how far the typical price is from its 20-bar average, scaled by the average deviation. Readings beyond +100 or -100 mark unusually strong moves.

Created by Donald Lambert, 1980. Reviewed by the ChartLabs team, updated Nov 2026.

Example market1hIndicatorsAtlas AICCIchartlabs.co/charts
Atlas reads it

CCI is under -100. Price is well below its 20-bar average.

CCI -113.4 · MA -153.8

Atlas reads it

CCI is under -100. Price is well below its 20-bar average.

CCI -113.4 · MA -153.8

Illustration on simulated data.

Commodity Channel Index (CCI)What is the CCI indicator?

CCI draws a blue line in its own panel with a yellow 14-bar moving average. Dashed levels sit at +100, 0 and -100, with the band between +100 and -100 shaded light blue.

It starts from the typical price, the average of high, low and close. CCI compares that with its 20-bar average and divides by the mean deviation, then by 0.015. That constant puts most readings between +100 and -100.

CCI has no upper or lower limit. Above zero, price is above its recent average; below zero, it is under it. A move beyond +100 or -100 means price has moved further from its average than usual.

Two ways to read +100

Lambert used a move above +100 as the start of a strong uptrend. Many traders today read the same level as stretched. Context, and the trend, decide which view fits.

Not bounded

Unlike RSI or the Stochastic, CCI can go to +300 or -300 in a violent move. Compare readings with the same chart's history.

CCI signalsFive patterns to know.

1Bullish

Push above +100

CCI breaks above +100 and stays there. Price is pulling away from its average with force.

2Bearish

Push under -100

CCI drops under -100. Selling is strong and price is well below its average.

3Bullish lean

Back above -100

After a stretch under -100, CCI climbs back above it. The downside push is easing.

4Bullish lean

Zero line cross

CCI crosses above zero: price is back above its 20-bar average.

Holds above zero
5Bullish

Holding above zero

In an uptrend CCI dips toward zero and bounces, rarely spending long below it.

CCI formulaHow it is calculated.

TP=high+low+close3MD=120∑|TPi−SMA20(TP)|CCI=TP−SMA20(TP)0.015×MD
STEP 1

Average the typical price

For each bar take (high + low + close) / 3, then its simple average over 20 bars.

STEP 2

Measure the mean deviation

Average how far each of those 20 typical prices sits from that average, ignoring the sign.

STEP 3

Scale it

Subtract the average from today's typical price and divide by 0.015 times the mean deviation.

CCI settingsEvery setting, explained.

SettingDefaultRangeWhat it changes
Length201 to 5,000 (typical 14 to 50)How many bars set the average and the deviation. Shorter swings further.
SourceHLC3Any price, or volumeThe price CCI measures. HLC3 is Lambert's typical price.
MA Length141 to 5,000The simple moving average drawn on top of CCI.
LinesCCI blue #2962FF, MA yellow #FDD835, 1 pxAny colour and widthColour and width of each line.
Levels+100 / 0 / -100AnySome traders add +200 and -200 for extreme readings.
Setting
Length
Default
20
Range
1 to 5,000 (typical 14 to 50)
What it changes
How many bars set the average and the deviation. Shorter swings further.
Setting
Source
Default
HLC3
Range
Any price, or volume
What it changes
The price CCI measures. HLC3 is Lambert's typical price.
Setting
MA Length
Default
14
Range
1 to 5,000
What it changes
The simple moving average drawn on top of CCI.
Setting
Lines
Default
CCI blue #2962FF, MA yellow #FDD835, 1 px
Range
Any colour and width
What it changes
Colour and width of each line.
Setting
Levels
Default
+100 / 0 / -100
Range
Any
What it changes
Some traders add +200 and -200 for extreme readings.
2013 trips beyond 100
1000-10070,20866,82563,44360,06164,803.7

Drag to see how the setting changes the lines and how many signals you get. Illustration on simulated data.

CCI strategiesUse it in 3 setups.

Break above +100

IfCCI 20crosses above+100exit whenit falls back under 100

This is close to Lambert's original use: a break above +100 as the start of a strong move.

Return from under -100

IfCCI 20crosses back above-100

Waiting for the return above -100 avoids buying while the push down is still going.

Zero line as a filter

Only long whileCCI 20is above0

Above zero, price is above its 20-bar average. Many traders use it as a simple trend filter.

Test a rule in the Strategy TesterFree with 1 year of history. Past results do not guarantee future results.

CCI mistakesCommon mistakes.

Holds above zero

Shorting every reading above +100

In a strong trend CCI can stay above +100 for many bars. A high reading alone is not a top.

Buying the first bounce in a downtrend

CCI can come back above -100 and fall straight back under it while the trend is down.

Treating CCI as bounded

There is no fixed top. A reading of 250 is not "more overbought than 100" in a useful sense; it just means a sharper move.

CCI combinationsPair it with these.

CCI FAQQuestions traders ask.

What are the default CCI settings?

Length 20, source HLC3 and a 14-bar moving average, the same as TradingView.

What does CCI above 100 mean?

The typical price is further above its 20-bar average than usual. Lambert treated it as a strong move starting; many traders today watch it as a stretch.

Why 0.015?

Lambert chose the constant so that most CCI readings, roughly 70 to 80%, land between +100 and -100.

Is CCI only for commodities?

No. Lambert designed it for commodities, but it works the same way on stocks, forex and crypto.

CCI or RSI?

RSI is bounded from 0 to 100 and built on gains and losses. CCI is unbounded and built on distance from an average. CCI reacts more sharply to large moves.

What is the best CCI length?

20 is Lambert's original and the default. 14 is popular for faster signals, 50 for slower ones.

Does CCI work on crypto?

Yes. Crypto moves can push CCI far past +100 or -100, so compare readings with that chart's own history.

Is CCI leading or lagging?

Lagging. It uses past bars. It can show a move fading before price turns, but that is not a forecast.

Does CCI repaint?

No. Values on closed bars never change. The live bar moves until it closes.

Who created CCI?

Donald Lambert introduced it in Commodities magazine in 1980.

Related indicatorsMore momentum tools.

All momentum indicators

Try CCI on a live chart.
Free. No download.

Works in your browser and on iPhone too.

Example market1h
CCI (20, hlc3, 14)