CFDs and forex are complex instruments and come with a high risk of losing money rapidly due to leverage. Risk disclosure

CCI Indicator (Commodity Channel Index) Explained

This guide explains what the Commodity Channel Index measures, how to set it up in MetaTrader, how to read it, and where it gives false readings.

Extrade Pakistan editorial team ·

On this page
  1. What the CCI indicator is
  2. The formula
  3. Default settings and how to add CCI in MT4/MT5
  4. How to read CCI: a drawn example
  5. Typical uses
  6. Parameter choices for experienced traders
  7. Where CCI misleads
  8. Related indicators
  9. Frequently asked questions

What the CCI indicator is

The Commodity Channel Index (CCI) is an oscillator, an indicator drawn in a separate window below the price chart that moves above and below a centre line. Donald Lambert designed it for commodities, but traders now apply it to currency pairs, metals and indices too.

In plain terms, CCI shows how far the current price is from its recent average, measured against how much price normally strays from that average. The centre line marks price sitting at its average. A reading far above it means price is unusually high compared with the recent past. A reading far below it means price is unusually low.

CCI has no fixed upper or lower limit, unlike the RSI indicator. Most readings stay between the standard upper and lower reference levels. Readings beyond those levels are treated as unusual moves.

+100-100CCI 20
CCI under the price chart, computed with its default settings on generated prices. Illustrative example: made-up numbers for learning, not real prices or a broker's conditions.

The formula

CCI is calculated in steps:

  1. Typical price. For each bar, take the average of the high, low and close.
  2. Moving average. Take a simple moving average of the typical price over the chosen period.
  3. Mean deviation. Average how far each typical price in the period sits from that moving average, ignoring whether it is above or below.
  4. CCI. Subtract the moving average from the current typical price, then divide by the mean deviation multiplied by Lambert's scaling constant.

The constant is fixed. Lambert chose it so that most readings fall between the standard levels. Because the divisor is the mean deviation, CCI measures the size of a move relative to recent volatility, not in pips.

Default settings and how to add CCI in MT4/MT5

In both MetaTrader 4 and MetaTrader 5, CCI is built in:

  1. Open a chart.
  2. Go to Insert → Indicators → Oscillators → Commodity Channel Index.
  3. In the settings window, check the period and the Apply to field. CCI is normally applied to the typical price.
  4. Open the Levels tab to see or add the upper and lower reference levels.
  5. Click OK. CCI appears in its own window under the chart.

The default period is shown in the settings window. Different platforms and books use different defaults, so check what your terminal uses. For platform basics, see MetaTrader 4 and MetaTrader 5. You can practise adding and reading indicators on a demo account.

How to read CCI: a drawn example

The sketch below is drawn for illustration and does not show real prices.

Points B and D show the main lesson. A reading above the upper level does not mean price must turn down.

Typical uses

These are common ways traders read CCI. None of them is a signal to trade.

Parameter choices for experienced traders

Where CCI misleads

Leveraged forex and CFD trading can lose money fast. No indicator setting removes that risk. Read risk management before using any indicator on a live account.

You can find more in technical analysis.

Frequently asked questions

What does the commodity channel index measure?

It measures how far the typical price is from its moving average, relative to the average deviation over the same period.

Is CCI only for commodities?

No. It works on any instrument with price data, including currency pairs, metals and indices.

How do I use CCI in MetaTrader?

Go to Insert → Indicators → Oscillators → Commodity Channel Index, then set the period and the levels in the settings window.

Is there a reliable CCI indicator strategy?

No indicator works in every market. CCI gives false readings in strong trends, in quiet markets and after news spikes. Test any approach on a demo account and manage risk.

Does CCI repaint?

Standard CCI does not change values on closed bars. The value on the current, unfinished bar changes until that bar closes. See repainting indicators.

Related pages