The strategy buys when price crosses above a 5-period EMA while longer trend, RSI and stochastic filters all agree, and sells short on the mirror setup. Each trade takes profit at a fixed 0.87 percent move from the fill.
Best run of 18. DAX 40, 30 min, spread 3, from run sweeps:2026-10-12-DAX40-30m-opt.tsv:29.
| Period | Up to 2026-10-12 |
| Instrument | DAX 40, 30 minutes |
| 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-12 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| DAX 40Best run | 30 min | n/a | 674 | 71.22 | 7,865 EUR | -4,298 |
| USD/JPY | Daily | n/a | 54 | 96.30 | 381,840 USD | -108,120 |
| USD/JPY | 4 hours | n/a | 121 | 78.51 | 179,180 USD | -149,560 |
| USD/JPY | 2 min | n/a | 424 | 34.67 | 140,490 USD | -69,190 |
| DAX 40 | 1 hour | n/a | 371 | 81.40 | 10,127 EUR | -4,496 |
| Dow Jones | 1 hour | n/a | 140 | 76.43 | 9,000 EUR | -4,789 |
| Dow Jones | 10 min | n/a | 519 | 52.99 | 8,149 EUR | -6,439 |
| Silver | 4 hours | n/a | 145 | 91.03 | 4,387 USD | -3,169 |
| Nasdaq 100 | 1 min | n/a | 417 | 41.25 | 4,101 EUR | -2,333 |
| GBP/USD | 1 hour | n/a | 620 | 61.45 | 4,005 USD | -3,561 |
| FTSE 100 | 30 min | n/a | 657 | 65.75 | 3,302 EUR | -2,199 |
| US Crude Oil | 2 min | n/a | 589 | 59.42 | 2,712 EUR | -2,081 |
| Dow Jones | Daily | n/a | 53 | 94.34 | 2,668 EUR | -2,173 |
| FTSE 100 | 15 min | n/a | 601 | 55.07 | 2,645 EUR | -2,103 |
| Brent Crude | Daily | n/a | 22 | 100.00 | 1,517 EUR | -1,459 |
| Nasdaq 100 | Daily | n/a | 36 | 100.00 | 1,345 EUR | -628 |
| S&P 500 | Daily | n/a | 38 | 97.37 | 407 EUR | -122 |
| Gold | Daily | n/a | 57 | 100.00 | 405 EUR | -211 |
Charts
Top 10 of 18 runs. The full list is in the table above.
The code
// ============================================================== // EMA Stochastic RSI MACD Trend // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long & short // Timeframe tested: 30 minutes // ============================================================== DEFPARAM CumulateOrders = false ONCE rawslow = 50 ONCE rawfast = 50 hs = highest[162](high) ls = lowest[162](low)
37 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 18 market and timeframe combinations. The best run by trade count was DAX 40, 30 minutes, with 674 trades.
The best run had a maximum drawdown of 4,298 EUR at the tested position size, against a net result of 7,865 EUR.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.