CCI indicator: what the commodity channel index shows and how to read it
By Bec, futures trader and founder of Wildflower · Updated
The CCI (commodity channel index) shows how far price has moved from its recent average, compared with how far it normally strays. Near 0, price is close to its average. Above +100 or below −100, it has moved further than it normally does. It has no top or bottom, so readings of +200 or −300 can happen.
What the CCI measures, and why it’s called that
The CCI compares where price is now with where it has been on average over the last few One bar on a price chart. It shows where price opened and closed, and the highest and lowest it reached, in one stretch of time.More in the glossary. Then it asks: is that gap big or small, compared with how far price normally strays from its average?
If price is right on its average, the CCI reads 0. If price is well above it, the CCI is high. Well below, it’s low. It’s drawn in its own panel under the chart, like the An indicator from 0 to 100 that compares the size of recent gains with recent losses.More in the glossary, so it’s an An indicator drawn in its own panel that swings up and down around a middle line or between set limits, such as the RSI.More in the glossary. Unlike the RSI, it has no top or bottom.
Its full name is the An oscillator by Donald Lambert that shows how far price is from its recent average, measured against how far it normally strays. It has no top or bottom.More in the glossary. Its creator built it for commodity futures, which is where the name comes from. He meant most readings to land between −100 and +100. It works the same way on any market with candles.
How the CCI is worked out, step by step
1. Find each typical price
For each candle, add the high, low and close, then divide by 3. That’s the A candle’s high, low and close added together and divided by three. TradingView calls it HLC3. Most VWAP lines are built from it.More in the glossary. Here we use 5 candles, to keep it small.
2. Average them
Add up the typical price of all five candles and divide by 5. Here that’s 103.
3. Measure the distances
How far is each typical price from 103? Average those distances. That’s the The average distance of a set of numbers from their average, ignoring whether each is above or below. The CCI uses it.More in the glossary: 2.4.
4. Turn it into the CCI
CCI = (typical price − average) ÷ (0.015 × mean deviation).
- Typical price: the last candle’s high is 112, its low 103 and its close 112. (112 + 103 + 112) ÷ 3 = 109.
- Average: (100 + 102 + 101 + 103 + 109) ÷ 5 = 103.
- Mean deviation: the distances are 3, 1, 2, 0 and 6. They add up to 12, and 12 ÷ 5 = 2.4.
- CCI: 109 − 103 = 6. Then 0.015 × 2.4 = 0.036, and 6 ÷ 0.036 = 166.67.
The 0.015 is part of the formula. Donald Lambert, who created the CCI, picked it so that most readings, somewhere between 70 and 80 in every 100, would land between −100 and +100. How many really do depends on the length and the market.
The length is the number of candles in the average. Charting tools often use 20 candles when you first add the CCI. That’s a starting point, not a rule. A shorter length swings more, and a longer one is calmer. The length is your choice.
How to read the CCI: +100, −100 and zero
Above +100. Price is further above its average than it normally strays. Many traders call this A label for an oscillator reading near the top of its scale, such as RSI above 70. It describes a strong recent rise, not what comes next.More in the glossary. That word only describes what already happened. It doesn’t mean price has to turn.
Below −100. Price is further below its average than it normally strays. Many traders call this A label for an oscillator reading near the bottom of its scale, such as RSI below 30. It describes a strong recent fall, not what comes next.More in the glossary.
Near zero. Price is close to its average. A move from below zero to above it means the typical price has gone from under its average to over it.
No limit. The CCI can reach +300 or −400 in a sharp move. So some traders watch +200 and −200 as well, or other levels. The levels are your choice.
What counts as a cross back from an extreme, and what doesn’t
One way traders use the CCI is a cross back from an extreme. For a cross back up, the CCI has been below a level you choose, such as −100, then crosses back above it. For a cross back down, it has been above +100, then crosses back below.
It has to go past first. Getting close to −100 isn’t the same as going below it.
Then come back through. While it’s still below the level, nothing has crossed back yet.
How long past it. Some rules set how many candles the CCI may stay past the level. After that, a cross back no longer counts. There’s no single rule.
Closed candles. The CCI uses the high, low and close, so it moves while a candle is forming. Many traders only count a cross once the candle has closed.
Timeframe changes it. A 5-minute CCI and a 1-hour CCI are built from different candles, so they give different readings at the same moment.
Short and long CCI lengths
Both pictures use the same candles. The 10-candle CCI compares price with a shorter average, so it reacts sooner and swings further. The 20-candle one is calmer. Neither is right. They answer the question over a different stretch of time.
What the CCI can and can’t tell you
The CCI describes how far price has stretched from its recent average. It doesn’t tell you what happens next. A reading above +100 can keep climbing, and a cross back can be followed by a cross straight back again.
The size of a reading depends on how quiet the last few candles were. After a very calm stretch, the mean deviation is small, so even a modest move can send the CCI past +200. The same move after a busy stretch gives a smaller reading.
Where the CCI comes from
Donald Lambert introduced the commodity channel index in October 1980, in an article in Commodities magazine (now called Futures). He built it to spot turns in commodity prices that seemed to come in cycles.
Lambert’s own use was a move above +100 as a sign that a new move up had started, and a move below −100 for a move down. Many traders now read the same lines the other way, as extremes to watch for a turn. Both readings use the same number.
Often confused with
RSI. Also drawn in its own panel, but it compares recent gains with recent losses and stays between 0 and 100. The CCI has no limits. Read about the RSI.
Stochastic oscillator. Shows where the close sits inside the recent high to low range, from 0 to 100. Read about the stochastic.
Bollinger Bands. Also measure how far price is from an average, but in A measure of how spread out a set of numbers is. The more the closes differ from their average, the bigger it is.More in the glossary of the closes, and they’re drawn on the price chart. The CCI uses the mean deviation of the typical price. Read about Bollinger Bands.
Divergence. When price makes a new high or low and the CCI doesn’t. Read about divergence.
A CCI indicator for TradingView
What the Indicator can build
Wildflower’s Indicator marks things on a chart from rules you describe in plain words, with every number typed by you. It builds from moving averages, the RSI, Bollinger Bands, candle patterns, opening ranges and more. The CCI isn’t one of its building blocks. If you describe a CCI rule, it tells you plainly. Everything it can build, you can check on a chart for free, then add to TradingView with a step-by-step guide.

Free to build
Common questions
What does CCI stand for?
Commodity channel index.
What does the CCI measure?
How far the typical price is from its recent average, compared with how far it normally strays from that average.
What do CCI +100 and −100 mean?
Above +100, price is further above its average than it normally strays. Below −100, further below. They describe what happened, not what comes next.
What is a good CCI setting?
There isn’t one right setting. Charting tools often use 20 candles when you first add it, but the length is your choice.
How is the CCI calculated?
(Typical price − its average) ÷ (0.015 × mean deviation). See the worked example.
Why is the constant 0.015?
Donald Lambert chose it so that most readings would land between −100 and +100.
Can the CCI go above 200?
Yes. It has no top or bottom, so readings of +300 or more can happen in a sharp move.
What’s the difference between the CCI and the RSI?
The RSI compares gains with losses and stays between 0 and 100. The CCI compares price with its average and has no limits.
Why is my CCI different from another chart’s?
Check the length, the timeframe and the source. TradingView’s built-in CCI uses the typical price (hlc3) by default, and some tools let you change it.
Learn it step by step in Wildflower Trading School, starting with the lesson “CCI”.