# The Commodity Channel Index (CCI) indicator

In technical analysis, the Commodity Channel Index (CCI) measures the difference between current and historical average prices. It helps to identify overbought and oversold levels by measuring an instrument’s variations away from its statistical mean. A CCI can also be used to determine reversals, divergences, and overbought/oversold levels. It was originally designed to identify commodity trends but is now used for various financial instruments. Donald Lambert created and introduced CCI in 1980, the first publication about which was in Commodities Magazine.

The CCI above zero indicates that the price has risen above the historical average. Similarly, the price is below average when the CCI is below zero.

##### Practice: calculate the CCI yourself

CCI = (Typical Price – 20 Period SMA of TP) / (.015 x Mean Deviation)
Typical Price (TP) = (High + Low + Close)/3
Constant = .015

1. Decide how many periods your CCI will analyze. Most people use twenty. The indicator will be more volatile with fewer periods while smoother with more periods. Let’s assume 20 periods, but you can still take a different number.
2. Calculate the typical price by tracking the high, low, and close for 20 periods.
3. Sum up the last 20 typical prices and divide them by 20 to calculate the moving average (MA) of the typical price.
4. Divide the MA by the average price over the last 20 periods to calculate the mean deviation. Sum these figures’ absolute values (ignore minus signs) and then divide by 20.
5. Using the most recent typical price, the MA, and the mean deviation, compute the current CCI.
6. As each new period ends, repeat the process.

Standard parameters are: CCI(20)

The standard configuration uses an SMA with a period of 20.

##### How to display CCI in Sema?

To see the Commodity Channel Index on a chart, press on the hexagon icon in the right corner of a coin chart. Choose CCI to display the Commodity Channel Index on your chart. You can switch between candles and line format right above.