Skip to content
Wildflower
Join waitlist

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.

+1000−100Above +100Below −100
A 20-candle CCI, worked out from the candles. The shaded band runs from −100 to +100.
+100−100Below −100
A 20-candle CCI, worked out from the candles. The shaded band runs from −100 to +100.

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 . 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 , so it’s an . Unlike the RSI, it has no top or bottom.

Its full name is the . 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

100102101103109

1. Find each typical price

For each candle, add the high, low and close, then divide by 3. That’s the . Here we use 5 candles, to keep it small.

Average 103100102101103109

2. Average them

Add up the typical price of all five candles and divide by 5. Here that’s 103.

Average distance 2.431206

3. Measure the distances

How far is each typical price from 103? Average those distances. That’s the : 2.4.

CCI (5)+1000−100

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+100−100Price far above its average.
Below −100+100−100Price far below its average.
Near zero+100−100Price close to its average.

Above +100. Price is further above its average than it normally strays. Many traders call this . 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 .

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

Back above −100✓+100−100Was below it, then crossed back. It counts.
Still below −100✕+100−100Low, but nothing has crossed back.
Crossed zero✕+100−100A cross, but not from an extreme.

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

10 candles+100−100Swings wider, crosses more often.
20 candles+100−100Calmer, and a little later.

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 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.

The Indicator marking every setup on a practice chart, numbered, with the rule that found each one.

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”.

In the help centre