The strategy buys on the first bar where SuperTrend (factor 3.5, ATR 14) is bullish, close is above the 200 period EMA, and ADX(14) is at least 25 with +DI above -DI. It sells short on the mirror conditions and exits when SuperTrend flips.
Best run of 16. DAX 40, 30 min, spread 3, from run sweeps:2026-10-07-DAX40-30m-opt.tsv:12.
| Period | Up to 2026-10-07 |
| 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-07 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| DAX 40Best run | 30 min | n/a | 3,055 | 41.08 | 7,001 EUR | -3,649 |
| USD/JPY | 4 hours | n/a | 527 | 45.73 | 310,480 USD | -262,060 |
| EUR/USD | Daily | n/a | 168 | 44.05 | 56,941 USD | -38,346 |
| Silver | 4 hours | n/a | 487 | 38.40 | 25,435 USD | -17,608 |
| Nikkei 225 | Daily | n/a | 179 | 42.46 | 24,631 USD | -17,736 |
| Nikkei 225 | 4 hours | n/a | 404 | 40.84 | 13,992 USD | -9,684 |
| Dow Jones | 1 hour | n/a | 642 | 47.20 | 12,475 EUR | -3,194 |
| Nasdaq 100 | Daily | n/a | 153 | 46.41 | 11,615 EUR | -4,583 |
| Dow Jones | 4 hours | n/a | 176 | 45.45 | 10,191 EUR | -5,076 |
| DAX 40 | 4 hours | n/a | 490 | 44.69 | 8,404 EUR | -2,823 |
| GBP/USD | Daily | n/a | 207 | 43.48 | 7,392 USD | -3,317 |
| FTSE 100 | Daily | n/a | 149 | 49.66 | 2,782 EUR | -2,131 |
| Gold | Daily | n/a | 203 | 43.84 | 2,125 EUR | -1,576 |
| S&P 500 | Daily | n/a | 180 | 42.22 | 1,815 EUR | -828 |
| Gold | 4 hours | n/a | 513 | 40.16 | 1,554 EUR | -1,254 |
| Gold | 1 hour | n/a | 1,758 | 38.17 | 1,390 EUR | -1,236 |
Charts
Top 10 of 16 runs. The full list is in the table above.
The code
// ============================================================== // SuperTrend EMA ADX Filter // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long & short // Timeframe tested: 30 minutes // ============================================================== DEFPARAM CumulateOrders = false ONCE fub = 0 ONCE flb = 0 ONCE st = 0 ONCE stdir = 1 myAtr = AverageTrueRange[14](close) ub = MedianPrice + 3.5 * myAtr lb = MedianPrice - 3.5 * myAtr prevub = fub prevlb = flb prevst = st
53 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 16 market and timeframe combinations. The best run by trade count was DAX 40, 30 minutes, with 3,055 trades.
The best run had a maximum drawdown of 3,649 EUR at the tested position size, against a net result of 7,000 EUR.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.