Join waitlist
Strategies / Mean reversion / MACD and CCI Dip Long

MACD and CCI Dip Long

The system buys 1 contract when MACD is above its signal line and the 35-period CCI is at or below -100. It exits when MACD falls below its signal and the 62-period CCI reaches 200 or more, with a 30% stop loss.

Mean reversionLong onlyIntradayFTSE 1003 min
n/aProfit factor
1,612Net profit EUR
50.00%Win rate
8Trades
-1,372Max drawdown
201Avg trade

Best run of 66. FTSE 100, 3 min, spread 2, from run sweeps:2026-10-04-FTSE100-3m-opt.tsv:14.

Entry rules, long

  1. The CCI is calculated on the typical price.

Exit rules

  1. A stop loss sits 30% below the entry price.

Test conditions

PeriodUp to 2026-10-04
InstrumentFTSE 100, 3 minutes
Spread2 points
Starting capital1,000,000
CostsSpread only. Commissions and overnight financing are not included.
BarsUp to 200,000 bars, fewer where the instrument has less history
Last tested2026-10-04

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
FTSE 100Best run3 minn/a 850.001,612 EUR-1,372
USD/JPY30 minn/a 1100.00761,180 USD-260,990
USD/JPY1 hourn/a 1100.00516,560 USD-484,160
USD/JPY4 hoursn/a 1100.00514,900 USD-483,860
USD/JPY10 minn/a 3100.00480,620 USD-246,630
USD/JPY15 minn/a 366.67459,580 USD-245,400
Nikkei 2251 hourn/a 1100.0060,648 USD-12,691
Nikkei 2254 hoursn/a 1100.0060,252 USD-11,811
Nikkei 22530 minn/a 250.0059,406 USD-12,879
Dow JonesDailyn/a 250.0049,858 EUR-11,142
Nikkei 22515 minn/a 250.0044,321 USD-13,076
Nikkei 22510 minn/a 1100.0040,590 USD-12,992
Nikkei 2255 minn/a 683.3336,254 USD-13,126
Nikkei 225Dailyn/a 520.0035,837 USD-27,706
Nikkei 2253 minn/a 683.3331,494 USD-12,320
Nasdaq 100Dailyn/a 1100.0030,479 EUR-5,914
Nasdaq 1004 hoursn/a 366.6729,052 EUR-5,975
Nasdaq 1001 hourn/a 366.6729,003 EUR-6,233
Nasdaq 10030 minn/a 2100.0028,776 EUR-6,277
Nikkei 2252 minn/a 3100.0027,639 USD-13,121
Dow Jones4 hoursn/a 1100.0025,637 EUR-8,850
DAX 40Dailyn/a 1100.0024,543 EUR-5,862
Nasdaq 10015 minn/a 1100.0023,346 EUR-6,288
Dow Jones15 minn/a 666.6722,740 EUR-11,550
Dow Jones1 hourn/a 250.0022,103 EUR-10,920
Dow Jones30 minn/a 250.0021,974 EUR-11,228
DAX 4030 minn/a 560.0020,202 EUR-5,640
DAX 404 hoursn/a 250.0019,731 EUR-5,779
DAX 401 hourn/a 250.0019,396 EUR-5,810
Dow Jones10 minn/a 4100.0018,247 EUR-8,342
Nikkei 2251 minn/a 475.0016,483 USD-12,998
Nasdaq 10010 minn/a 2100.0016,158 EUR-6,298
Nasdaq 1005 minn/a 6100.0014,377 EUR-5,875
DAX 4015 minn/a 475.0013,047 EUR-5,644
Dow Jones5 minn/a 666.6712,536 EUR-8,439
DAX 4010 minn/a 475.0010,152 EUR-4,474
FTSE 100Dailyn/a 1100.009,234 EUR-3,643
Nasdaq 1003 minn/a 2100.008,739 EUR-5,852
DAX 405 minn/a 785.718,309 EUR-4,025
S&P 500Dailyn/a 250.007,570 EUR-1,238
Nasdaq 1002 minn/a 3100.007,442 EUR-3,756
S&P 5001 hourn/a 250.006,451 EUR-1,317
S&P 50030 minn/a 2100.006,446 EUR-1,319
S&P 5004 hoursn/a 250.006,427 EUR-1,298
FTSE 1001 hourn/a 1100.006,192 EUR-3,326
Nasdaq 1001 minn/a 3100.005,984 EUR-3,760
FTSE 1004 hoursn/a 1100.005,586 EUR-3,319
FTSE 10030 minn/a 1100.005,065 EUR-3,080
S&P 50015 minn/a 1100.004,913 EUR-1,319
Dow Jones1 minn/a 366.674,906 EUR-4,359
GoldDailyn/a 1100.004,040 EUR-1,534
Gold4 hoursn/a 1100.003,541 EUR-1,586
Gold1 hourn/a 1100.003,467 EUR-1,599
FTSE 10010 minn/a 580.003,291 EUR-1,320
FTSE 10015 minn/a 475.003,273 EUR-2,886
S&P 50010 minn/a 757.143,161 EUR-1,400
S&P 5005 minn/a 475.003,050 EUR-1,332
Gold30 minn/a 1100.002,988 EUR-1,624
FTSE 1005 minn/a 666.672,877 EUR-1,320
Gold15 minn/a 250.002,785 EUR-1,628
Gold10 minn/a 1100.002,301 EUR-1,629
Gold5 minn/a 2100.002,156 EUR-1,631
DAX 401 minn/a 2100.002,148 EUR-1,782
S&P 5003 minn/a 2100.001,556 EUR-1,338
S&P 5002 minn/a 1100.001,227 EUR-699
S&P 5001 minn/a 2100.00989 EUR-396

Charts

Results by run

Top 10 of 66 runs. The full list is in the table above.

Net profitMax drawdown

The code

ProBuilder code, as tested

// ==============================================================
// MACD and CCI Dip Long
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Mean reversion
// Direction: Long only
// Timeframe tested: 3 minutes
// ==============================================================

DEFPARAM CumulateOrders = false

myMacd = MACDline[12,26,9](close)
signal = ExponentialAverage[9](myMacd)
ccibuy = CCI[35](typicalprice)
ccisell = CCI[62](typicalprice)

10 more lines: the entry and exit rules.

Setup

How to load it

  1. Copy the code with the copy button on the code block.
  2. In ProRealTime, open a chart of the instrument and timeframe you want to test, then open ProOrder > New trading system and choose "Create with programming".
  3. Paste the code, give the system a name and save it.
  4. Click "Backtest", set your own spread and position size, and run it before you consider trading it live.

Indicators used

MACDCCI
Read this firstKnown weaknesses3 points
  • No profit factor is available, because only sweep results exist for this strategy.
  • The best run has only 8 trades, which is a small sample to judge it on.
  • The maximum drawdown of 1,372 EUR is large next to the net profit of 1,612 EUR.

Questions

About this strategy

Can I run MACD and CCI Dip Long in ProOrder?

Yes. The code is ProBuilder and runs as an automated ProOrder system. Backtest it on your own account with your own spread and position size before trading it live.

Which markets was it tested on?

It was tested on 66 market and timeframe combinations. The best run by trade count was FTSE 100, 3 minutes, with 8 trades.

How large was the drawdown?

The best run had a maximum drawdown of 1,372 EUR at the tested position size, against a net result of 1,612 EUR.

Does it trade long, short or both?

It only takes long trades.

Related

Strategies like this one

Slow MACD Slope

Uses the same indicator.

6.80 PF · 7,305 trades

DAX Survivor

Best run on the same market, FTSE 100.

1.17 PF · 1,514 trades

ATR Band

Also a mean reversion strategy.

10.31 PF · 53 trades

Get the full rules, the complete code and the ProRealAlgos portfolio as a member.

The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.

Past backtest results do not guarantee future results. This is not financial advice. Curated and maintained by ProRealAlgos. ProRealTime™ is a trademark of ProRealTime SAS. prorealalgos.comStatsDocs