The strategy buys when the 20-period EMA crosses above a SuperTrend line and sells short when it crosses below. Each trade has a 1% stop loss and a 2% profit target, and an opposite signal reverses the position.
Best run of 5. DAX 40, 1 hour, spread 3, from run sweeps:2026-10-03-DAX40-1h-opt.tsv:25.
| Period | Up to 2026-10-03 |
| 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-03 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| DAX 40Best run | 1 hour | n/a | 4,865 | 41.09 | 10,138 EUR | -5,164 |
| USD/JPY | Daily | n/a | 681 | 40.82 | 763,850 USD | -416,040 |
| Nikkei 225 | 4 hours | n/a | 1,050 | 38.48 | 12,011 USD | -8,582 |
| Dow Jones | Daily | n/a | 516 | 36.63 | 6,179 EUR | -3,382 |
| Gold | 4 hours | n/a | 1,320 | 40.23 | 962 EUR | -467 |
Charts
The code
// ============================================================== // EMA Crossover Against SuperTrend // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long & short // Timeframe tested: 1 hour // ============================================================== DEFPARAM CumulateOrders = false ONCE fub = 0 ONCE flb = 0 ONCE dir = 1 src = MedianPrice myAtr = AverageTrueRange[10](close) ub = src + 3.0 * myAtr lb = src - 3.0 * myAtr
49 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 5 market and timeframe combinations. The best run by trade count was DAX 40, 1 hour, with 4,865 trades.
The best run had a maximum drawdown of 5,164 EUR at the tested position size, against a net result of 10,138 EUR.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.