Opens in a new tab
CCI MTF Oscillator

CCI MTF Oscillator

The CCI MTF Oscillator is a free MetaTrader 4 indicator that takes the classic Commodity Channel Index and lets you view it from a higher (or lower) timeframe than the chart you're actually trading on. You can download it free from mt4indicators.com and drop the .mq4 file straight into your MT4 Indicators folder.What Is the…

Download the CCI MTF Oscillator

The CCI MTF Oscillator is a free MetaTrader 4 indicator that takes the classic Commodity Channel Index and lets you view it from a higher (or lower) timeframe than the chart you’re actually trading on. You can download it free from mt4indicators.com and drop the .mq4 file straight into your MT4 Indicators folder.

What Is the CCI MTF Oscillator?

At its core, this is a standard CCI calculation — MetaTrader’s built-in iCCI() function, run on the closing price — but instead of only showing you the CCI of the chart you’re looking at, it lets you pick a different timeframe entirely through the TimeFrame input. Set TimeFrame to 60, for example, while you’re on an M15 chart, and the indicator plots the H1 CCI value across your M15 bars. This is what MTF (multi-timeframe) means here: one higher-timeframe reading, mapped onto your current chart’s time axis so you don’t have to keep a second chart window open.

Under the hood, the indicator pulls the time array of your chosen timeframe and walks through your current chart’s bars, matching each one to the correct higher-timeframe bar and calling iCCI() at that bar’s shift. The result is a single oscillator line, plotted in a separate subwindow, that behaves exactly like a normal CCI — oscillating above and below a zero line — except it’s reporting the momentum of a different, usually larger, timeframe.

Key Features

  • Plots the CCI of any supported timeframe directly on your current chart, without switching windows.
  • Configurable CCI period (Periods, default 12) — the same setting you’d find on the standard MT4 CCI.
  • Supports M1, M5, M15, M30, H1, H4, D1, W1 and MN1 as target timeframes, or 0 to just mirror the current chart’s own CCI.
  • Single-buffer line plot (Tomato color) with a zero level line, so it drops straight into an existing chart template without extra clutter.
  • Indicator subwindow label automatically updates to show which timeframe you’re viewing, for example CCI MTF (Period_H1).

How to Use It

Installation is standard: copy cci-mtf-oscillator.mq4 into your MetaTrader 4 terminal’s MQL4/Indicators folder, restart MT4 (or refresh the Navigator), and drag it onto any chart. In the input window, set TimeFrame to the higher timeframe you want to monitor using the minute-value codes (15 for M15, 60 for H1, 240 for H4, 1440 for D1, and so on), and set Periods to whatever CCI length you normally trade with.

Reading it is identical to reading a normal CCI. Values above +100 suggest the higher timeframe is in an overbought or strong-momentum condition; values below -100 suggest oversold or strong downside momentum. Many traders use this specifically for top-down confirmation — for instance, only taking long setups on a lower timeframe when the higher-timeframe CCI plotted by this indicator is also above zero or turning up from an oversold reading, and only taking shorts when it’s below zero or rolling over from overbought. Because the line is drawn on your working chart, you get that higher-timeframe context without constantly flipping between windows.

Two code-level details are worth knowing before you rely on it. First, because several of your current chart’s most recent bars can map to the higher timeframe’s still-open bar, the CCI value shown on those recent bars will move together and change as new ticks come in, right up until that higher-timeframe bar finally closes — treat the reading on the most recent bars as live and provisional. Second, the indicator recalculates its entire buffer from the very first bar on every tick rather than only processing new bars, so on charts with a lot of price history you may notice a brief recalculation on each update.

Best Timeframes / Best Use Cases

Because TimeFrame and Periods are both fully adjustable, this indicator doesn’t lock you into one style of trading — its real value is the gap it fills between two timeframes. A common setup is running it on an M15 or M30 chart with TimeFrame set to H1 or H4, giving day traders a fast read on higher-timeframe momentum without leaving their entry chart. Swing traders can just as easily run it on H4 charts with TimeFrame set to D1 or W1 to keep tabs on the weekly trend while managing positions intraday. It’s less useful set to a lower timeframe than your chart, since that direction adds noise rather than context.

Final Thoughts

The CCI MTF Oscillator doesn’t reinvent the Commodity Channel Index — it solves a genuinely practical problem, which is having to babysit two or three charts just to keep an eye on a higher-timeframe reading. If you already trade with CCI and rely on higher-timeframe confirmation, this saves you the extra windows. Just remember the live-bar caveat above: the reading on your most recent bars reflects a still-forming higher-timeframe candle, so wait for a clean close before treating a reading as confirmed.

Download the CCI MTF Oscillator
  • TimeFrame (default 0) — Sets which timeframe's CCI is plotted on the current chart. 0 = current chart timeframe; other accepted values are 1 (M1), 5 (M5), 15 (M15), 30 (M30), 60 (H1), 240 (H4), 1440 (D1), 10080 (W1), 43200 (MN1).
  • Periods (default 12) — The CCI averaging period passed directly into MetaTrader's built-in iCCI() function, calculated on PRICE_CLOSE.

FAQs About the MT4 CCI MTF Oscillator

One Quick Step

Enter your name and email and check your inbox for the download link.