Oscillator divergence · MT4 & MT5

Commodity Channel Index (CCI) Divergence Indicator for MT4 & MT5

Regular and hidden divergences between price and the Commodity Channel Index (CCI), found automatically and drawn on the price chart, in the CCI window, or both. Get an alert when a new divergence is confirmed. Optional predicted divergence marks a possible divergence earlier: see how it works.

CCI Divergence Indicator on EURUSD M5 MetaTrader Chart

What is the Commodity Channel Index (CCI)?

The idea: What is CCI?

The Commodity Channel Index (CCI) was introduced by Donald Lambert in 1980, first to find cyclical turns in commodities. Today it is used on any market. It measures how far the typical price (the average of high, low and close) is from its simple moving average, compared with the mean absolute deviation of that distance.

Lambert used a constant of 0.015 in the formula, so that roughly 70–80% of readings typically fall between −100 and +100, though the actual proportion varies.

How traders read it

Readings above +100 are often seen as overbought and below −100 as oversold. Readings beyond ±200 indicate more extreme deviations, though suitable thresholds depend on the market and period. A move above +100 can also mark the start of a strong up move, and a move below −100 a strong down move.

What to watch for

CCI has no upper or lower limit, so overbought and oversold levels are a matter of choice, and price can keep moving after CCI reaches an extreme. A shorter period makes CCI more volatile, a longer one smoother.

In TrueTL the CCI period is 14 by default, and the upper and lower levels are +100 and −100.

TrueTL CCI divergence indicator: how it works

TrueTL CCI Divergence compares the peaks and bottoms of CCI with price and finds regular and hidden, bullish and bearish divergences. It draws them on the price chart, in the CCI window, or both, and you can filter them in several ways. A regular divergence can point to a possible reversal and a hidden one to a possible continuation of the trend. Neither is a guarantee. An optional predicted mode marks a possible divergence earlier. This early marker can disappear and come back until the candle closes. In a strong trend, divergences can keep appearing while price continues, so use them together with the price chart. A normal divergence is drawn once the candle has closed and the divergence is confirmed: no repaint once a candle closes on the indicator’s timeframe.

What a divergence is, the four types and common filters, with examples: About the divergence.

CCI divergence indicator features

  • PlatformsMetaTrader 4 and MetaTrader 5, any broker, demo or live account.
  • Any symbolForex pairs, stocks, indices, crypto: any MT4/MT5 symbol.
  • Non repaintOnce a candle closes on the indicator’s timeframe, what is drawn stays fixed.
  • Works with other MetaTrader toolsCCI values and events are available to other MetaTrader indicators and programs through the standard iCustom() function. The PDF user guide lists every value.
  • Regular and hiddenBullish and bearish, regular and hidden divergences, each with its own color and line style.
  • Predicted divergence (optional)An early marker before the candle closes, with its own color and sensitivity. It can disappear and come back until the candle closes. How it works, with examples.
  • Price chart, CCI window, or bothChoose where the divergence lines are drawn.
  • FiltersMaximum distance, candle bodies, CCI level, value tolerance and detection sensitivity.
  • Bullish, bearish or allShow all divergences, or only the bullish or only the bearish ones.
  • Other timeframesCalculate CCI on a higher or lower timeframe and see it on your chart, with optional smoothing.
  • Overbought and oversold levelsUpper and lower levels (by default 100 and -100), with an optional middle level, for display, filters and level-cross events.
  • Offline chartsWorks with Renko and other offline charts too.
  • Alerts on chart eventsRegular, hidden and predicted divergence, trendline break and approach, CCI direction and level events, with 5 trigger slots. Popup, push, email, sound, Telegram, CSV log or a chart pictogram. Highly customizable: alert timing (after the candle closes, before it closes, or both), a time window, an interval limit and a test message. Alerts also work on the trendlines and horizontal lines you draw yourself.
  • Strategy Tester and fast backtestingRuns in the MetaTrader Strategy Tester, also for visual backtesting. Refresh and cache modes for repeated tests: the cache mode saves the results, so a repeated test is at least 700% faster.

CCI divergence indicator screenshots

Common questions about the CCI divergence indicator

What are the best settings for the CCI divergence indicator?

There is no single best setting. We chose the default settings to suit most traders. The indicator has many settings so that everyone can fit it to their own needs, and if you want something different, you can customize it. The PDF manual explains every setting.

What are the default settings of the CCI divergence indicator in TrueTL?

In TrueTL the CCI period is 14 by default, and the upper and lower levels are +100 and −100.

How do traders read the CCI?

Readings above +100 are often seen as overbought and below −100 as oversold. Readings beyond ±200 indicate more extreme deviations, though suitable thresholds depend on the market and period.

Is the CCI divergence indicator non repaint?

A normal divergence is drawn once the candle has closed and then stays fixed. The optional predicted mode marks a possible divergence earlier: its arrow and yellow line can disappear and come back until the candle closes, which is why they have their own color. On a multi timeframe setting, the closed candle of the higher timeframe decides. See how it works.

Does it work on MT4 and MT5?

Yes. TrueTL CCI Divergence is available for MetaTrader 4 and MetaTrader 5, with any broker, on demo or live accounts, and on any symbol the platform offers.

Can I get an alert?

Yes. Alerts for a new divergence and other chart events can come as a popup, push message, email, sound, Telegram message, CSV log line or a pictogram on the chart.

Do alerts work when my computer is off?

No. Alerts are sent by the MetaTrader terminal where the indicator runs, and MetaTrader does not run in the cloud: it runs on a computer, so the computer and MetaTrader must be on, with the indicator on a chart. If that is a problem, run MetaTrader with the indicators on a VPS (a remote Windows computer that is always on). Push messages are also sent only while MetaTrader is running, on your computer or on the VPS; they then arrive on your phone.

Is there a free version?

TrueTL CCI Divergence is part of the paid license; one license covers all 72 indicators. There is also a free MT4 & MT5 oscillator pack of 37 multi-timeframe oscillators. The free pack does not draw trendlines or divergences. The PDF manual is free to download.

More answers on the Support page.

One license, all 72 indicators

TrueTL CCI Divergence comes with the CCI Trendline indicator, True Trendline, True S/R Level and every other oscillator trendline and divergence indicator.