Trading Knowledge

Spotting Tops and Bottoms with CCI

The CCI indicator shows how far price strays from its average to flag overbought, oversold and divergence. Formula, MT4 setup, three strategies and weaknesses.

Traders who use technical analysis usually want to know two things: whether the current trend is strong or weak, and whether price has run so far that a correction is near. The CCI (Commodity Channel Index) is widely used to answer both questions, and it proves especially useful when the market is moving strongly.

The sections that follow explain what CCI is, how to read its levels, what each signal means, how it is calculated, how to add it in MetaTrader 4, and three common ways to trade with it. The final part lists the weaknesses traders should know before relying on the indicator.

What CCI is

CCI, short for Commodity Channel Index, is an oscillator introduced by Donald Lambert in 1980. An oscillator is an indicator drawn as a line that swings up and down around a central level, in its own pane below the price chart. Lambert originally built CCI to analyse commodity markets, as the name suggests. It later came into wide use in many other markets, including stocks and forex.

Put simply, CCI measures the strength behind a price move. Specifically, it shows how far the current price sits from its recent average, upward or downward. That lets traders judge whether an uptrend or a downtrend is gaining or losing strength.

Reading the CCI levels

The CCI line oscillates around zero, and most of the time it stays between -100 and +100. From the line's position relative to those marks, traders infer the state of the market as follows:

  • CCI between 0 and +100: the market is in an uptrend.
  • CCI between 0 and -100: the market is in a downtrend.
  • CCI above +100: price has risen sharply into overbought territory, so a corrective decline may be coming.
  • CCI below -100: price has fallen sharply into oversold territory, so a corrective rise may be coming.
  • CCI hovering close to zero: price is usually moving sideways with little volatility.

Note that CCI has no fixed upper or lower limit. Its value can move well beyond the usual ±100 marks. For highly volatile instruments, or when a trader wants to filter out insignificant price swings, many widen the reference levels to +200 and -200. Even so, statistically CCI spends about 75% of the time between -100 and +100 and only about 25% outside that range. Precisely because it rarely leaves that band, each move beyond ±100 deserves attention.

What CCI is used for

CCI serves three main purposes: tracking the trend, spotting when the market is overbought or oversold, and revealing weakness in a trend through divergence. Divergence occurs when price and the indicator move in opposite directions. Each purpose comes with its own way of reading the indicator, helping traders make better-suited decisions.

Finding overbought and oversold zones

When CCI rises above +100, the market is overbought, meaning price has climbed faster than normal. That suggests a corrective decline may be about to start. Conversely, when CCI drops below -100, the market is oversold, and a corrective rise becomes more likely.

These two zones also help traders weigh whether a breakout is genuine or false before entering. For example, if price has just broken above a resistance area while CCI is already deep in overbought territory, the trader has reason to treat that breakout with more caution.

Identifying the prevailing trend

Beyond overbought and oversold zones, CCI is also used to recognise the current trend. When the line runs between 0 and +100, the market is rising and the upward momentum is still fairly strong. When it runs between 0 and -100, the market is falling and the downward momentum is still strong.

Spotting reversals through divergence

Comparing the peaks and troughs of the CCI line with those of price is a fairly effective way to detect reversals. There are two signal types to remember:

  • Bearish divergence: price makes a higher high, but CCI makes a lower high. This is a sign the market may be about to reverse from up to down.
  • Convergence, or bullish divergence: price makes a lower low, but CCI makes a higher low. This is a sign the market may be about to reverse from down to up.

Both types say the same thing: price is still pushing in the old direction, but the force behind it has weakened. They are therefore most useful at the end of an extended trend.

The CCI formula

Understanding the formula shows traders what CCI really measures, which makes it easier to use flexibly. In essence, CCI compares the current price with the average price of the last n periods, then divides by the average price deviation to put the result on a common scale:

CCI = (AP − MA) / (0.015 × MD)

Each component in that formula has the following meaning:

  • AP (Average Price, also called typical price) is the mean of three prices in a session: AP = (high + low + close) / 3.
  • MA (Moving Average) is the average value over the last n periods: MA = (price 1 + price 2 + … + price n) / n. In the standard calculation, the price used here is each period's AP.
  • MD (Mean Deviation) measures how far price typically sits from the MA: MD = (|MA − AP1| + |MA − AP2| + … + |MA − APn|) / n. The absolute value signs mean only distance counts, whether the deviation is up or down.
  • 0.015 is a constant. Lambert chose it to scale CCI so that most readings fall between -100 and +100.

Looking at the numerator, CCI is positive when the current price is above the average and negative when it is below. The denominator does the normalising: the same deviation produces a larger CCI in a normally quiet market than in a normally volatile one. The formula looks fairly complex, but traders do not need to calculate it by hand, because CCI is built into almost every trading platform.

Adding CCI in MT4

CCI comes built into MetaTrader 4, so it takes only a few clicks to put it on a chart. The process has three steps:

  1. Open MT4 and log in to the trading account.
  2. In the menu bar at the top, choose Insert, then Indicators, then Oscillators, then Commodity Channel Index.
  3. In the window that opens, adjust settings such as the calculation period, then click OK.

After the last step, the CCI line appears in its own pane just below the price chart. In MetaTrader 5, CCI also sits in the Oscillators group, so adding it works almost the same way.

Three ways to trade with CCI

Because CCI shows trend strength as well as overbought and oversold zones, it can be used in several ways. For traders new to the indicator in forex, three approaches are common.

Trading with the trend

The rule here is to trade only in the direction of the trend: look for buy orders in an uptrend and sell orders in a downtrend. In this approach, a CCI move beyond ±100 is read as momentum strengthening in the trend's direction, not as a reversal signal. That differs from the overbought and oversold reading in the previous section, so traders need to be clear about which reading they are using before entering.

For a buy trade, the steps are:

  • Signal: CCI crosses above +100 from below, entering overbought territory. This suggests price is getting ready to rise again after a corrective dip.
  • Entry: on the green candle that confirms the uptrend, after CCI has crossed above +100.
  • Stop-loss: below the nearest support area.
  • Take-profit: when CCI reaches +200.

For a sell trade, the logic is reversed:

  • Signal: CCI crosses below -100 from above, entering oversold territory. This suggests price is getting ready to fall again after a corrective bounce.
  • Entry: on the red candle that confirms the downtrend, after CCI has crossed below -100.
  • Stop-loss: above the nearest resistance area.
  • Take-profit: when CCI falls to -200.

Reading the confirmation candle is covered in more detail in how to read candlesticks.

Trading corrections

When CCI moves beyond +100 or -100, the market is overbought or oversold. A chance to trade the pullback appears when CCI has left that zone and then turns back inside it. At that point the indicator shows the overextended run has just ended and price may retrace part of it. This approach, however, should only be used when price has a clear trend, so the trader knows where the pullback fits in the bigger picture.

Trading reversals on divergence

As noted in the section on what CCI is used for, divergence between CCI and price helps traders spot reversal points and enter early in a new trend. Even so, this approach requires two conditions first: the market has a clear trend, and that trend is already showing signs of weakening. Without those conditions, divergence is often just noise.

For a buy trade, the trader looks for convergence between CCI and price in a downtrend, since it signals the market may be about to turn from down to up. The trader can then consider buying, with the entry on the green candle confirming the rise.

For a sell trade, the trader looks for divergence between CCI and price in an uptrend, since it signals the market may be about to turn from up to down. The trader can then consider selling, with the entry on the red candle confirming the decline.

Weaknesses of CCI

CCI helps traders gauge trend strength and find reasonable buy and sell points. Like every indicator, however, it has limitations that traders should know in advance:

  • Lag. CCI sometimes signals late, causing traders to miss opportunities. To compensate, traders can combine it with other tools or indicators.
  • No fixed rule for overbought and oversold. CCI points out overbought and oversold zones but does not say for certain when price will turn. Its effectiveness therefore depends heavily on the user's strategy and experience.
  • Sensitive to short-term swings. Because it is calculated from a moving average, CCI can be skewed by brief price spikes, producing false signals.
  • Reflects only the past. CCI is built from historical price data, so it cannot fully reflect the present or the future.
  • Depends on the timeframe. At the same moment, CCI on different timeframes can give different signals.
  • Not suited to every method. CCI relies on only a few specific values, the high, low and close, so it may not fit some other trading methods.
The MT5 toolbar with timeframe buttons from M1, M5, M15 through D1, W1 and MN
The MT5 toolbar with timeframe buttons from M1, M5, M15 through D1, W1 and MN

The timeframe weakness is especially easy for beginners to trip over. Before entering, traders should therefore choose one main timeframe for decisions and use the others only for reference.

Combining CCI with other tools

CCI is a fairly simple technical indicator, yet it has real value. To use it successfully, traders should place CCI alongside other tools and strategies rather than letting it decide every trade on its own. For instance, an oversold CCI reading that coincides with a reversal candle such as the hammer candlestick at a support area is far more reliable than either signal alone.

Frequently asked questions

What is the CCI indicator?

CCI (Commodity Channel Index) is an oscillator introduced by Donald Lambert in 1980. It was first created for commodity markets but is now used widely in many markets, such as stocks and forex.

What is CCI used for in forex trading?

Traders use CCI to find buy and sell points in the market. The indicator also helps detect divergence between price and the indicator, pointing to potential trading opportunities at the end of a trend.

How many types of CCI are there?

People often talk about "positive CCI" and "negative CCI", but these are really two value zones of the same indicator, not two separate indicators. Both use the same formula. CCI is positive when the current typical price is above its moving average and negative when it is below, after the difference is divided by the mean deviation times 0.015.

Sources

  • MetaQuotes, MetaTrader 5 help, Commodity Channel Index: https://www.metatrader5.com/en/terminal/help/indicators/oscillators/cci
  • DCtoptrade (screenshots): https://dctoptrade.vn/

More in Trading Knowledge

View all →

Jesse Livermore's 20 Rules of Speculation

Jesse Livermore grew rich short-selling the crashes of 1907 and 1929. Twenty rules drawn from how he traded, grouped by market, entries, capital and psychology.

BackcomHub · · 4 min read

Four Swing Trading Strategies

Swing trades last from a few days to a few weeks. Four strategies covering trends, ranges, counter-momentum and pullbacks, plus money rules and stop placement.

BackcomHub · · 11 min read

Four Ways to Find Better Trade Entries

A better entry allows a tighter stop-loss and a stronger risk/reward ratio. Four methods: limit orders, end-of-day planning, the TLS checklist and a clear plan.

BackcomHub · · 5 min read