<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&family=Source+Sans+3:wght@400;500;600;700&display=swap">

CCI breakout

CCI measures how far price has moved from its average. Readings above +100 or below -100 point to strong momentum. The robot enters with the momentum: it buys when CCI breaks the upper level and sells when it breaks the lower one.

  • CCI
  • Basic

Choose a platform: MT5 shows the chart and Inputs screenshots from MetaTrader 5, MT4 shows the chart with entries and the Inputs screenshot from MetaTrader 4.

How the robot trades

When it buys

CCI crosses the upper level upward.

When it sells

CCI crosses the lower level downward.

When it exits

A buy closes when CCI falls back to the upper level or lower; a sell closes when it rises back to the lower level or higher.

Screenshot 1 of 5

EURUSD, H4. The robot indicators and the deals from the MT5 strategy tester: arrows are entries, crosses are exits, and the lines join an entry to its exit.

The conditions as constructor blocks

Open a buy

(CCI ≥ CCI_Upper (100))
AND
(CCI_Prev < CCI_Upper (100))

Open a sell

(CCI ≤ CCI_Lower (-100))
AND
(CCI_Prev > CCI_Lower (-100))

Close a buy

(CCI ≤ CCI_Upper (100))

Close a sell

(CCI ≥ CCI_Lower (-100))

Inputs

These inputs appear in the expert advisor settings in MetaTrader 5 or MetaTrader 4, and they are what the strategy tester goes through when it optimises the robot.

InputDefaultWhat it means
InpCCI_period14CCI period: how many recent candles it takes into account.
CCI_Upper100Upper level: a break upward opens a buy.
CCI_Lower-100Lower level: a break downward opens a sell.
The inputs dialog of the CCI breakout expert advisor in MetaTrader 5. Screenshot 1 of 2The inputs dialog of the CCI breakout expert advisor in MetaTrader 5. Screenshot 2 of 2
This is how the expert's inputs look in MetaTrader 5

How to tune the robot to your style

  • Move the breakout levels and watch how the number of signals changes.
  • Change the CCI period: a short one reacts faster, a long one gives fewer false signals.
  • Add a trend filter so the robot enters only in the direction of the broader move.

You can do all of this in the constructor without signing up. To save your changes and come back to them later, you need an account.

Risks

How a strategy behaved in the past does not predict its future results. Check the robot in the strategy tester and on a demo account first, and only then decide whether to trade it with real money. This robot is an example to adapt to your instrument, timeframe and risk rules.

Similar robots