Skip to content
Wildflower
Join free
Indicators

Free Trading School · Level 2 · Course 2.4

CCI

Lesson 33 of 99 in IndicatorsModule 7: More momentum and volume indicators

Reading the market · Indicators

CCI

Wildflower Trading School · Lesson 2.4.7.1

Wildflower

The commodity channel index, or C C I, measures how far price has moved from its recent average. Then it compares that with how far price normally strays. By the end of this lesson, you'll know the four steps of the sum, and how to do each one by hand. You'll know where its odd number 0.015 comes from, and why the C C I, unlike the RSI, has no top or bottom.

1 of 7

What you'll learn

  • Measure the distance. CCI compares typical price with its 20-candle average.
  • Find the mean deviation. Average how far 20 typical prices sit from their average.
  • Scale the gap. Divide it by 0.015 times the mean deviation.
  • Read the 100 lines. Most readings were meant to land between minus 100 and plus 100.
  • Test readings above 100. It has no top, so what a high reading means needs testing.

Exercise

  1. On a 5-minute MES1! chart, on TradingView or any platform, add the .
  2. Over one day, count how many readings landed between −100 and +100, and work out what share that is.
  3. Then note the highest reading and what price was doing then.

Quick check

  1. 1. What does a CCI of 0 mean?

  2. 2. Why can the CCI go above 200?

  3. 3. Typical price 5,012, average 5,010, mean deviation 2. What is the CCI?

0 of 3 answered.

Finished this lesson?

Tick it off and keep your place

Make a free account and we'll remember where you are, so “Williams %R” is waiting next time.

Read the full notes

The commodity channel index (CCI) measures how far the typical price is from its recent average, divided by 0.015 times the mean deviation, so it shows distance from the average in units of normal wandering, with no top or bottom.

  • Introduced by Donald Lambert in 1980. CCI = ( − its 20-candle average) ÷ (0.015 × ).
  • Mean deviation: the average distance of the 20 typical prices from their average, ignoring minus signs.
  • Example: typical price 5,030, average 5,020, mean deviation 5. 10 ÷ 0.075 ≈ 133.
  • Lambert picked 0.015 so that most readings would land between −100 and +100. How many do depends on the market: on the made-up chart it was 57%.
  • It has no top or bottom; on the made-up chart it reached 262. Lambert read a move above +100 as a new move starting; others read it as . Which fits is a claim to test, as in testing an indicator idea yourself.
  • More: the CCI guide.

Worked example

Made-up numbers

Mean deviation and the CCI, by hand

Made-up numbers

  1. Typical prices 5,016, 5,018, 5,022, 5,024: average 5,020
  2. Distances 4, 2, 2, 4: mean deviation 3
  3. Typical price 5,030, average 5,020, mean deviation 5
  4. 10 ÷ (0.015 × 5) = 10 ÷ 0.075 ≈ 133

A CCI of 133: well above the average, compared with how far price usually strays.

Your turn

Drill

Typical price 5,018 · 20-candle average 5,015 · mean deviation 4

Trading is risky. You can lose money. This lesson explains how trading works. It isn't advice.