Join waitlist
Strategies / Trend / DEMA Crossover With Ichimoku Cloud

DEMA Crossover With Ichimoku Cloud

Buys when the 8-period DEMA crosses above the 21-period DEMA while price is above the Ichimoku cloud and volatility is not elevated. Sells when the 8-period DEMA crosses below the 21-period DEMA and the close is below the 50-period EMA.

TrendLong onlyIntradayGold15 min
1.39Profit factor
2,792Net profit EUR
27.37%Win rate
1,330Trades
-563Max drawdown
2.10Avg trade

Best run of 34. Gold, 15 min, spread 0.6, from run pf:2026-10-05-GOLD-15m.tsv:3.

Entry rules, long

  1. The close is above both displaced Ichimoku spans (9, 26 and 52 periods, displaced 26 bars).
  2. ATR(14) as a percentage of the close is below 1.5 times its median over the last 50 bars.

Exit rules

  1. The 8-period DEMA crosses under the 21-period DEMA and the close is below the 50-period EMA.

Test conditions

PeriodUp to 2026-10-05
InstrumentGold, 15 minutes
Spread0.6 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-05

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
GoldBest run15 min1.39 1,33027.372,792 EUR-563
Gold10 min1.35 1,34829.012,500 EUR-519
Gold5 min1.25 1,38730.711,904 EUR-459
USD/JPY30 minn/a 1,31432.72536,810 USD-184,290
USD/JPY4 hoursn/a 24430.33523,200 USD-337,830
USD/JPY10 minn/a 1,40333.71456,580 USD-174,740
USD/JPY1 hourn/a 92531.78395,560 USD-269,570
EUR/USDDailyn/a 7636.8452,222 USD-35,200
Nikkei 225Dailyn/a 7839.7438,477 USD-11,480
SilverDailyn/a 6835.2933,269 USD-25,287
Nikkei 2254 hoursn/a 16634.3425,953 USD-12,972
Dow JonesDailyn/a 9343.0123,337 EUR-11,689
Nasdaq 100Dailyn/a 6852.9417,656 EUR-5,568
Dow Jones4 hoursn/a 7346.5816,756 EUR-5,199
Nikkei 2251 hourn/a 68731.3015,187 USD-11,634
DAX 4030 minn/a 1,39133.5013,531 EUR-3,760
DAX 40Dailyn/a 10040.0012,681 EUR-7,206
Silver15 minn/a 1,40728.7812,561 USD-11,983
Nasdaq 1004 hoursn/a 21939.2710,625 EUR-5,246
Nasdaq 1001 hourn/a 80235.299,140 EUR-4,330
Nasdaq 10030 minn/a 1,43633.779,047 EUR-3,200
Dow Jones15 minn/a 95931.398,543 EUR-7,585
DAX 401 hourn/a 76334.217,487 EUR-2,821
DAX 404 hoursn/a 23436.755,958 EUR-4,311
Nasdaq 10015 minn/a 1,18635.505,504 EUR-4,428
S&P 500Dailyn/a 9845.924,514 EUR-1,190
DAX 4010 minn/a 1,32031.063,942 EUR-2,953
GoldDailyn/a 7441.893,303 EUR-1,108
Gold4 hoursn/a 19535.903,038 EUR-1,149
FTSE 1001 hourn/a 79533.962,560 EUR-2,303
Gold30 minn/a 1,35832.032,437 EUR-747
Gold1 hourn/a 77533.682,219 EUR-1,059
Gold3 minn/a 1,35530.631,849 EUR-479
S&P 5004 hoursn/a 21537.671,778 EUR-877

Charts

Results by run

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

Above 1.0 made money, below 1.0 lost money.

The code

ProBuilder code, as tested

// ==============================================================
// DEMA Crossover With Ichimoku Cloud
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Trend
// Direction: Long only
// Timeframe tested: 15 minutes
// ==============================================================

DEFPARAM CumulateOrders = false

emafa = ExponentialAverage[8](close)
emafb = ExponentialAverage[8](emafa)
demafast = 2 * emafa - emafb
emasa = ExponentialAverage[21](close)
emasb = ExponentialAverage[21](emasa)
demaslow = 2 * emasa - emasb

emafloor = ExponentialAverage[50](close)

conv = (highest[9](high) + lowest[9](low)) / 2
base = (highest[26](high) + lowest[26](low)) / 2
leada = (conv + base) / 2
leadb = (highest[52](high) + lowest[52](low)) / 2
senkoua = leada[26]
senkoub = leadb[26]

atrval = AverageTrueRange[14](close)
atrpct = atrval / close * 100

34 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

EMAIchimokuATR
Longer historyRe-run on up to 1,000,000 barsGold · 15 min · older data 1,339.50 EUR

On the long run with 490,000 bars the net result was 4,131 EUR, against 2,792 EUR on the standard 200,000-bar run. The older data alone gave 1,340 EUR.

Gold · 15 min

Bars available490,000
Net, standard 200,000-bar run2,791.80 EUR
Net, long run4,131.30 EUR
Net on the older data alone1,339.50 EUR
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 DEMA Crossover With Ichimoku Cloud 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 34 market and timeframe combinations. The best run was Gold, 15 minutes, with a profit factor of 1.39 over 1,330 trades.

How large was the drawdown?

The best run had a maximum drawdown of 563 EUR at the tested position size, against a net result of 2,792 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

CCI Breakout

Best run on the same market, Gold.

1.08 PF · 6,065 trades

Dual MA Long Trend

Also a trend strategy.

1.39 PF · 241 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