Join waitlist
Strategies / Trend / CCI Sign With EMA Alignment

CCI Sign With EMA Alignment

Buys when the 200 period CCI is above zero and the 10 period EMA is above both the 21 and 50 period EMAs. Closes the long when the CCI drops below zero and the 10 period EMA falls below both those averages.

TrendLong onlyIntradayS&P 50030 min
1.23Profit factor
3,103Net profit EUR
30.25%Win rate
1,253Trades
-764Max drawdown
2.48Avg trade

Best run of 49. S&P 500, 30 min, spread 1, from run pf:2026-10-04-USA500-30m.tsv:4.

Entry rules, long

  1. The 10 period EMA is above the 21 period EMA.
  2. The 10 period EMA is above the 50 period EMA.

Exit rules

  1. The CCI (200 periods) is below 0 and the 10 period EMA is below both the 21 and 50 period EMAs, closing the long.

Test conditions

PeriodUp to 2026-10-04
InstrumentS&P 500, 30 minutes
Spread1 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
S&P 500Best run30 min1.23 1,25330.253,103 EUR-764
USD/JPYDailyn/a 6927.541,240,670 USD-511,100
USD/JPY30 minn/a 1,17028.21740,330 USD-208,790
USD/JPY10 minn/a 1,24428.78492,820 USD-168,720
USD/JPY15 minn/a 1,25426.79424,000 USD-198,780
USD/JPY5 minn/a 1,30325.86149,280 USD-107,350
EUR/USDDailyn/a 7125.3595,356 USD-33,869
Nikkei 225Dailyn/a 7031.4351,566 USD-14,237
EUR/USD4 hoursn/a 28327.2142,067 USD-36,849
Nikkei 2254 hoursn/a 16431.1033,190 USD-9,558
Nikkei 22530 minn/a 1,24327.5932,254 USD-10,057
Nikkei 2251 hourn/a 64730.2927,397 USD-17,648
Dow JonesDailyn/a 9637.5025,475 EUR-9,773
Nasdaq 100Dailyn/a 6744.7825,357 EUR-4,187
Nikkei 2253 minn/a 1,29225.0817,846 USD-9,212
Nikkei 22510 minn/a 1,27326.2417,330 USD-11,132
Silver5 minn/a 1,36923.1617,039 USD-8,998
Nikkei 2255 minn/a 1,27626.4916,891 USD-12,784
DAX 40Dailyn/a 8538.8215,890 EUR-5,119
Nasdaq 10030 minn/a 1,20631.0115,100 EUR-4,575
Dow Jones1 hourn/a 25429.9214,147 EUR-6,428
Dow Jones4 hoursn/a 6050.0012,938 EUR-5,824
Nikkei 2252 minn/a 1,31226.1412,646 USD-9,189
Nasdaq 1001 hourn/a 79129.4612,536 EUR-4,799
DAX 4030 minn/a 1,24129.1711,210 EUR-3,994
Nasdaq 1004 hoursn/a 20933.9710,720 EUR-5,734
DAX 401 hourn/a 74529.9310,714 EUR-3,742
GBP/USDDailyn/a 7931.659,895 USD-7,777
Dow Jones30 minn/a 51229.309,742 EUR-5,584
Nikkei 2251 minn/a 1,31624.929,055 USD-8,118
Dow Jones15 minn/a 1,01527.888,883 EUR-5,359
DAX 404 hoursn/a 20132.348,781 EUR-3,519
Nasdaq 1005 minn/a 1,27825.518,698 EUR-3,299
Nasdaq 10015 minn/a 1,20329.687,478 EUR-3,925
Nasdaq 1003 minn/a 1,23626.867,252 EUR-3,420
S&P 500Dailyn/a 8144.445,637 EUR-1,226
DAX 405 minn/a 1,33025.414,363 EUR-3,432
GoldDailyn/a 7431.083,932 EUR-1,387
Gold1 hourn/a 72428.042,786 EUR-1,217
S&P 5004 hoursn/a 20833.652,704 EUR-824
Gold4 hoursn/a 20226.732,239 EUR-1,346
S&P 5001 hourn/a 79330.262,139 EUR-1,032
Gold5 minn/a 1,30124.902,082 EUR-707
Gold30 minn/a 1,23427.632,022 EUR-1,509
Gold3 minn/a 1,32125.891,521 EUR-694
Gold15 minn/a 1,30823.391,433 EUR-1,049
Gold10 minn/a 1,33723.641,087 EUR-819
S&P 50015 minn/a 1,22827.61938 EUR-781
S&P 50010 minn/a 1,23027.15901 EUR-720

Charts

Results by run

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

Net profitMax drawdown

The code

ProBuilder code, as tested

// ==============================================================
// CCI Sign With EMA Alignment
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Trend
// Direction: Long only
// Timeframe tested: 30 minutes
// ==============================================================

DEFPARAM CumulateOrders = false

myCci = CCI[200](TypicalPrice)
emaa = ExponentialAverage[10](close)
emab = ExponentialAverage[21](close)
emac = ExponentialAverage[50](close)

9 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

CCIEMA
Read this firstKnown weaknesses2 points
  • The code sets no stop loss, so a losing trade stays open until an exit signal arrives.
  • Results include the spread only. Commissions and overnight financing are not included.

Questions

About this strategy

Can I run CCI Sign With EMA Alignment 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 49 market and timeframe combinations. The best run was S&P 500, 30 minutes, with a profit factor of 1.23 over 1,253 trades.

How large was the drawdown?

The best run had a maximum drawdown of 764 EUR at the tested position size, against a net result of 3,103 EUR.

Does it trade long, short or both?

It only takes long trades.

Related

Strategies like this one

Reversal Pattern With Chaikin Volatility

Uses the same indicator.

2.26 PF · 6,872 trades

Keltner Lower Wick Fade

Best run on the same market, S&P 500.

1.21 PF · 1,088 trades

EMA Crossover Volume Spike Long

Also a trend strategy.

1.23 PF · 1,542 trades

See how ProRealAlgos combines strategies like this into one automated portfolio.

Copy trading on US indices is available to ProRealAlgos members as spots open.

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