CCI of Average Indicator: A Smoothed 14-Bar Reading

Written by Dominic Walsh · Published · Last updated

The cci of average indicator smooths a standard reading rather than the price behind it. iCCI supplies the raw series at `CciPeriod` `14`. iMAOnArray then averages that output over `SmoothPeriod` `5` bars.

This build ships as a compiled .ex4 for MT4 and .ex5 for MT5; the screenshots below come from EURUSD H1.

Platforms MT4 (.ex4) + MT5 (.ex5)
Chart window Separate window (levels -100 / 0 / 100)
Plots 2: CCI of Avg, Zero
Alerts popup, push notification, email, sound
Inputs 10

What the Cci Of Average Indicator draws on the chart

One dodger blue line sits in its own pane.

A dark gray Zero line runs through the middle.

Reference levels sit at -100, 0 and 100.

Two plots exist here and both of them are lines.

  • CCI of Avg: line, dodger blue, width 2
  • Zero: line, dark gray, width 1
Cci of average indicator line and reference levels on the EURUSD H1 chart.
Cci of average indicator line and reference levels on the EURUSD H1 chart.

How the Cci Of Average Indicator calculates its values

The base reading uses typical price

iCCI works on the average of high, low and close at `CciPeriod` `14`. That is the standard definition, and nothing here changes it.

Smoothing runs on the output

iMAOnArray takes the CCI series, not price, and averages it over `SmoothPeriod` `5`. So the line you see sits one step away from the raw reading.

Levels stay fixed

`UpperLevel` `100.0` and `LowerLevel` `-100.0` are references the pane draws. Smoothing pulls the series toward the middle, so it reaches them less often than a raw reading would.

How to read the signals

The line carries a smoothed reading, so a turn shows up a bar or two late.

Crossing zero says the smoothed series changed side.

Visits beyond 100 or -100 are rarer here than on a plain reading.

`SmoothPeriod` `5` is the whole reason the line looks calmer.

Alert channels in this build: popup, push notification, email and sound, one message per closed bar.

`EnableAlerts` governs the whole set and starts true. `EnablePopup` is the route that ships on. Switch `EnablePushNotify` for the phone, `EnableEmail` for mail or `EnableSound` to play `SoundFile`. The check runs once a bar closes.

Every Cci Of Average Indicator input

Core settings

Setting What it does Default
CciPeriod CCI period on PRICE_TYPICAL (H+L+C)/3 average. Bars in the base reading on typical price, default `14`. 14
SmoothPeriod EMA period applied to CCI output. Bars in the average that runs over the output, default `5`. 5
UpperLevel overbought reference. Upper reference line in the pane, default `100.0`. 100.0
LowerLevel oversold reference. Lower reference line in the pane, default `-100.0`. -100.0

Alert settings

Setting What it does Default
EnableAlerts Master switch for the level alerts, default `true`. on
EnablePopup Terminal dialog when the line hits a level, default `true`. on
EnablePushNotify Phone push when the line hits a level, default `false`. off
EnableEmail Mail delivery when the line hits a level, default `false`. off
EnableSound Sound playback when the line hits a level, default `false`. off
SoundFile (see inputs panel) alert.wav
Cci of average indicator inputs panel with CciPeriod, SmoothPeriod and the two levels.
Cci of average indicator inputs panel with CciPeriod, SmoothPeriod and the two levels.

Settings that fit your chart

A smoothed reading suits a chart with enough bars to fill the window. EURUSD H1 is the reference chart, where `CciPeriod` `14` covers over half a day. On M5 the line still moves plenty. Daily bars leave it slow and broad.

When the Cci Of Average Indicator fails

Smoothing costs time, and a later turn is the price of it.

Fixed levels at 100 and -100 suit some instruments better than others.

The pane draws no entry marks, so the reading needs your own rule on top of it.

Copy the compiled Cci Of Average Indicator file into your MQL4/Indicators folder, and the MT5 build into MQL5/Indicators, then restart the terminal and drag it onto a chart. The step-by-step guide with screenshots is at how to install MT4 and MT5 indicators.

Related on forexmt4systems.com: Moving Average Crossover Strategy.

Background reading on the method behind the Cci Of Average Indicator: Moving average rate procedure on Wikipedia, Distance From Moving Average at StockCharts ChartSchool.

Download the Cci Of Average Indicator for MT4 and MT5

The zip holds the compiled Cci Of Average Indicator build for MT4 and MT5, plus a short README. Compiled files only, no source. Enter your email below and the download link arrives in your inbox.

Download this indicator free

Enter your email and the file is yours. You also get the full MT4 and MT5 library.

  • 1,380+ indicators
  • MT4 and MT5 files
  • No spam, unsubscribe any time

FAQ

What does CciPeriod 14 measure?

How far typical price sits from its own average over fourteen bars, with mean deviation as the scale. Typical price is high plus low plus close over three. Fourteen is the standard window, and this file keeps it.

Why does SmoothPeriod 5 run on the output?

Because the goal is a calmer reading, not a calmer price. Averaging the CCI series over five bars removes single-bar spikes while leaving the shape of the swing intact. Smoothing price first would give a different tool entirely.

What does the Zero line mark in the pane?

The middle of the scale, where the smoothed series changes side. It draws in dark gray so it stays behind the blue line. Nothing about it reacts to price. It simply gives the eye a fixed point to read against.

What do UpperLevel and LowerLevel do?

They place the two reference lines at `100.0` and `-100.0` in the pane. Neither one triggers a plot. They exist so you can see when the smoothed series has travelled a long way from zero, which happens less often after smoothing.

Are results guaranteed?

No. Trading involves risk. Results are not guaranteed; past performance is not indicative of future results. Use the Cci Of Average Indicator as one input. Always backtest before trading live.

Category: this is part of our Oscillators collection. Also, truly, browse more Oscillators for MetaTrader, or explore every MT4 indicator and MT5 indicator on the site.

External references

Dominic Walsh - Forex trader and MT4/MT5 developer

About the author

Written by Dominic Walsh, a Forex trader and MT4/MT5 indicator, Expert Advisor and script developer. Every tool on forexmt4systems.com is tested on live charts before release and ships with ready-to-use compiled MT4 (.ex4) and MT5 (.ex5) files. Learn more about the trader and developer behind this site.

How we build, test and correct every tool: Editorial & Testing Policy. Trading carries risk; see the disclaimer.

Leave a Comment