Join waitlist
Strategies / Trend / DEMA 13 34 Crossover

DEMA 13 34 Crossover

Buys when the 13 period double exponential average moves above the 34 period one. Closes the long when the 34 period average moves back above the 13 period one.

TrendLong onlySwingGold1 hour
1.22Profit factor
3,388Net profit EUR
36.31%Win rate
2,947Trades
-641Max drawdown
1.15Avg trade

Best run of 21. Gold, 1 hour, spread 0.6, from run pf:2026-10-04-GOLD-1h.tsv:6.

Entry rules, long

Exit rules

  1. The 34 period double exponential average moves above the 13 period one, closing the long.

Test conditions

PeriodUp to 2026-10-04
InstrumentGold, 1 hour
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-04

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
GoldBest run1 hour1.22 2,94736.313,388 EUR-641
USD/JPY1 hour1.15 3,49637.53976,220 USD-172,815
USD/JPYDailyn/a 32738.84955,250 USD-543,800
USD/JPY30 minn/a 5,01334.63434,190 USD-211,110
Nikkei 2254 hoursn/a 65738.5138,630 USD-10,032
Silver4 hoursn/a 76936.6731,994 USD-13,171
Nikkei 2251 hourn/a 2,44736.2523,261 USD-10,412
Nikkei 225Dailyn/a 32937.0819,915 USD-14,712
Dow JonesDailyn/a 40241.7919,445 EUR-5,715
DAX 401 hourn/a 2,80637.4214,384 EUR-4,388
Nasdaq 1001 hourn/a 3,15836.0710,614 EUR-5,946
Dow Jones1 hourn/a 1,04236.6610,490 EUR-10,099
Nasdaq 100Dailyn/a 31038.718,927 EUR-5,412
DAX 40Dailyn/a 39638.648,201 EUR-6,179
DAX 404 hoursn/a 80337.987,148 EUR-5,034
DAX 4030 minn/a 4,87735.125,443 EUR-5,188
Brent Crude1 hourn/a 1,59336.725,311 EUR-4,920
Nasdaq 10030 minn/a 4,99435.104,700 EUR-4,688
Gold4 hoursn/a 80138.333,081 EUR-879
S&P 500Dailyn/a 43636.702,724 EUR-719
GoldDailyn/a 34038.242,541 EUR-1,532

Charts

Results by run

Top 10 of 21 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 13 34 Crossover
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Trend
// Direction: Long only
// Timeframe tested: 1 hour
// ==============================================================

DEFPARAM CumulateOrders = false

ONCE trend = -1

demas = DEMA[13](close)
demal = DEMA[34](close)

19 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.
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 13 34 Crossover 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 21 market and timeframe combinations. The best run was Gold, 1 hour, with a profit factor of 1.22 over 2,947 trades.

How large was the drawdown?

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

Does it trade long, short or both?

It only takes long trades.

Related

Strategies like this one

CCI Breakout

Best run on the same market, Gold.

1.08 PF · 6,065 trades

EMA 20/50 Cross

Also a trend strategy.

1.22 PF · 1,288 trades

Want strategies that are already part of a live portfolio? Join the ProRealAlgos waitlist.

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