The strategy buys when EMA(9) crosses above EMA(21) with RSI(14) above 50, ADX(14) above 15, a strong green candle and the close above EMA(50). It uses a 0.65% stop and target, and reverses on opposite signals.
Best run of 13. DAX 40, 1 hour, spread 3, from run sweeps:2026-10-11-DAX40-1h-opt.tsv:80.
| Period | Up to 2026-10-11 |
| Instrument | DAX 40, 1 hour |
| Spread | 3 points |
| Starting capital | 1,000,000 |
| Costs | Spread only. Commissions and overnight financing are not included. |
| Bars | Up to 200,000 bars, fewer where the instrument has less history |
| Last tested | 2026-10-11 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| DAX 40Best run | 1 hour | n/a | 730 | 52.74 | 3,204 EUR | -1,506 |
| Silver | 2 min | n/a | 222 | 53.15 | 4,904 USD | -3,253 |
| Dow Jones | 4 hours | n/a | 147 | 57.82 | 4,682 EUR | -2,220 |
| Dow Jones | 1 hour | n/a | 179 | 54.75 | 3,927 EUR | -2,121 |
| EUR/USD | 30 min | n/a | 11 | 63.64 | 2,897 USD | -1,845 |
| Nikkei 225 | 5 min | n/a | 64 | 53.12 | 2,644 USD | -1,685 |
| Nikkei 225 | 2 min | n/a | 3 | 100.00 | 1,138 USD | -290 |
| US Crude Oil | 2 min | n/a | 153 | 54.25 | 890 EUR | -470 |
| Brent Crude | 1 min | n/a | 23 | 60.87 | 316 EUR | -184 |
| FTSE 100 | 5 min | n/a | 11 | 63.64 | 174 EUR | -86.40 |
| Gold | 2 min | n/a | 26 | 57.69 | 151 EUR | -101 |
| DAX 40 | 2 min | n/a | 1 | 100.00 | 148 EUR | -119 |
| FTSE 100 | 3 min | n/a | 4 | 75.00 | 102 EUR | -49.70 |
Charts
Top 10 of 13 runs. The full list is in the table above.
The code
// ============================================================== // EMA Crossover Scalp with ADX // ProRealAlgos Strategy Library | prorealalgos.com // Type: Momentum // Direction: Long & short // Timeframe tested: 1 hour // ============================================================== DEFPARAM CumulateOrders = false ONCE lastsig = -1000000000 emafast = ExponentialAverage[9](close) emaslow = ExponentialAverage[21](close) ematrend = ExponentialAverage[50](close) myRsi = RSI[14](close) myAdx = ADX[14] myAtr = AverageTrueRange[14](close)
39 more lines: the entry and exit rules.
Setup
Questions
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.
It was tested on 13 market and timeframe combinations. The best run by trade count was DAX 40, 1 hour, with 730 trades.
The best run had a maximum drawdown of 1,506 EUR at the tested position size, against a net result of 3,204 EUR.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.