CCI EA: no-code builder for MT4 / MT5
OscillatorsCCI measures how far price has moved from its average, with no fixed upper or lower limit. ±100 is the usual line between strong and weak. Go long when it climbs back from below −100, go short when it falls back from above +100.
Rules you can build with it
Works as an entry rule or an exit rule. Short rules are mirrored automatically.
- LongCCI risesShortCCI falls
- LongCCI fallsShortCCI rises
- LongCCI is above -100(adjustable level)ShortCCI is below 100
- LongCCI is below -100(adjustable level)ShortCCI is above 100
- LongCCI crosses above -100(adjustable level)ShortCCI crosses below 100
- LongCCI crosses below -100(adjustable level)ShortCCI crosses above 100
- LongCCI turns upShortCCI turns down
- LongCCI turns downShortCCI turns up
Settings
| Settings | Default | Range |
|---|---|---|
| Period | 14 | 2 – 50 |
| Price | Typical price | Close / Opening price / High / Low / Median price / Typical price / Weighted close |
| Level | -100 | -300 – 300 |
How the backtest and the EA calculate it
Uses the typical price (high + low + close) ÷ 3 by default and, following MT5's Commodity Channel Index formula, divides by 0.015 times the mean deviation; for short rules the level is mirrored around 0.
Signals use only closed candles and are filled at the next candle's open. The exported EA checks conditions in the same order, so you get similar results in the MT5 Strategy Tester.
Example strategies
- Entry · CCI (14, Typical price): CCI rises
- Stop-loss 300 points, take-profit 600 points
- Entry · CCI (14, Typical price): CCI rises
- Entry · Moving Average (50, EMA, Close): MA rises
- Stop-loss 300 points, take-profit 600 points
Examples are just a starting point: open one to change settings or add filters, then check it with backtests and robustness tests. Backtest results don't indicate future returns.