---
title: "Commodity Channel Index - Oscillators - Technical Indicators - Price Charts, Technical and Fundamental Analysis - MetaTrader 5 Help"
description: "Commodity Channel Index Technical Indicator (CCI) measures the deviation of the commodity price from its average statistical... - Commodity Channel Index - Oscillators - Technical Indicators"
image: "https://www.metatrader5.com/i/logo_metatrader5.png"
url: "https://www.metatrader5.com/en/terminal/help/indicators/oscillators/cci"
---

[MetaTrader 5 Help](https://www.metatrader5.com/en/terminal/help) → [Price Charts, Technical and Fundamental Analysis](https://www.metatrader5.com/en/terminal/help/charts_analysis) → [Technical Indicators](https://www.metatrader5.com/en/terminal/help/charts_analysis/indicators) → [Oscillators](https://www.metatrader5.com/en/terminal/help/indicators/oscillators) → Commodity Channel Index

# Commodity Channel Index

Commodity Channel Index Technical Indicator (CCI) measures the deviation of the commodity price from its average statistical price. High values of the index point out that the price is unusually high being compared with the average one, and low values show that the price is too low. In spite of its name, the Commodity Channel Index can be applied for any financial instrument, and not only for the wares.

There are two basic techniques of using Commodity Channel Index:

1. Finding the divergencesThe divergence appears when the price reaches a new maximum, and Commodity Channel Index can not grow above the previous maximums. This classical divergence is normally followed by the price correction.
2. As an indicator of overbuying/oversellingCommodity Channel Index usually varies in the range of ±100. Values above +100 inform about overbuying state (and about a probability of correcting decay), and the values below 100 inform about the overselling state (and about a probability of correcting increase).

> You can test the [trade signals](https://www.mql5.com/en/docs/standardlibrary/ExpertClasses/CSignal/signal_cci) of this indicator by creating an Expert Advisor in [MQL5 Wizard](https://www.metatrader5.com/en/automated-trading/mql5wizard).

![Commodity Channel Index](https://www.metatrader5.com/i/help/terminal/en/cci.png)

## Calculation

1. To find a Typical Price. You need to add the HIGH, the LOW, and the CLOSE prices of each bar and then divide the result by 3:TP = (HIGH + LOW + CLOSE) / 3
2. To calculate the n-period [Simple Moving Average](https://www.metatrader5.com/en/terminal/help/indicators/trend_indicators/ma#sma) of Typical Prices:SMA (TP, N) = SUM (TP, N) / N
3. To subtract the received SMA(TP, N) from Typical Prices of each of preceding n periods:D = TP - SMA (TP, N)
4. To calculate the n-period [Simple Moving Average](https://www.metatrader5.com/en/terminal/help/indicators/trend_indicators/ma) of absolute D values:SMA (D, N) = SUM (D, N) / N
5. To multiply the received SMA(D, N) by 0,015:M = SMA (D, N) * 0,015
6. To divide M by D:CCI = M / D

Where:

HIGH — maximal bar price;
LOW — minimal bar price;
CLOSE — close price;
SMA — [Simple Moving Average](https://www.metatrader5.com/en/terminal/help/indicators/trend_indicators/ma);
SUM — sum;
N — number of periods used for calculation.

## In this section

- [Average True Range](https://www.metatrader5.com/en/terminal/help/indicators/oscillators/atr)
- [Bears Power](https://www.metatrader5.com/en/terminal/help/indicators/oscillators/bears)
- [Bulls Power](https://www.metatrader5.com/en/terminal/help/indicators/oscillators/bulls)
- [Chaikin Oscillator](https://www.metatrader5.com/en/terminal/help/indicators/oscillators/chaikin)
- Commodity Channel Index
- [DeMarker](https://www.metatrader5.com/en/terminal/help/indicators/oscillators/demarker)
- [Force Index](https://www.metatrader5.com/en/terminal/help/indicators/oscillators/fi)
- [MACD](https://www.metatrader5.com/en/terminal/help/indicators/oscillators/macd)
- [Momentum](https://www.metatrader5.com/en/terminal/help/indicators/oscillators/momentum)
- [Moving Average of Oscillator](https://www.metatrader5.com/en/terminal/help/indicators/oscillators/mao)
- [Relative Strength Index](https://www.metatrader5.com/en/terminal/help/indicators/oscillators/rsi)
- [Relative Vigor Index](https://www.metatrader5.com/en/terminal/help/indicators/oscillators/rvi)
- [Stochastic Oscillator](https://www.metatrader5.com/en/terminal/help/indicators/oscillators/so)
- [Triple Exponential Average](https://www.metatrader5.com/en/terminal/help/indicators/oscillators/tea)
- [Williams' Percent Range](https://www.metatrader5.com/en/terminal/help/indicators/oscillators/wpr)

```json
{"@context": "https://schema.org", "@type": "BreadcrumbList", "itemListElement": [ {"@type": "ListItem", "position": 1, "item": {"@id": "https://www.metatrader5.com/en/terminal/help", "name": "MetaTrader 5 Help"}}, {"@type": "ListItem", "position": 2, "item": {"@id": "https://www.metatrader5.com/en/terminal/help/charts_analysis", "name": "Price Charts, Technical and Fundamental Analysis"}}, {"@type": "ListItem", "position": 3, "item": {"@id": "https://www.metatrader5.com/en/terminal/help/charts_analysis/indicators", "name": "Technical Indicators"}}, {"@type": "ListItem", "position": 4, "item": {"@id": "https://www.metatrader5.com/en/terminal/help/indicators/oscillators", "name": "Oscillators"}}, {"@type": "ListItem", "position": 5, "item": {"@id": "https://www.metatrader5.com/en/terminal/help/indicators/oscillators/cci", "name": "Commodity Channel Index"}} ]}
{ "@context": "https://schema.org", "@type": "FAQPage", "mainEntity": [{ "@type": "Question", "name": "MetaTrader 5: Commodity Channel Index", "acceptedAnswer": { "@type": "Answer", "text": "Commodity Channel Index Technical Indicator (CCI) measures the deviation of the commodity price from its average statistical price. High values of..." } }] }
```
