Buys a green candle after 2 or more lower closes when price is 0.5 ATR below its 5-period EMA but above the 200-period EMA. Exits at the 5-period EMA or after 10 bars in the trade.
Best run of 22. DAX 40, Daily, spread 3, from run sweeps:2026-10-03-DAX40-D-opt.tsv:26.
| Period | Up to 2026-10-03 |
| Instrument | DAX 40, Daily |
| 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 | Daily | n/a | 40 | 65.00 | 899 EUR | -604 |
| Silver | Daily | n/a | 18 | 55.56 | 3,771 USD | -914 |
| Silver | 1 hour | n/a | 21 | 61.90 | 1,375 USD | -278 |
| Nasdaq 100 | Daily | n/a | 16 | 75.00 | 1,136 EUR | -304 |
| Nikkei 225 | 4 hours | n/a | 7 | 85.71 | 918 USD | -414 |
| Brent Crude | Daily | n/a | 6 | 66.67 | 689 EUR | -580 |
| Dow Jones | 4 hours | n/a | 5 | 80.00 | 587 EUR | -258 |
| Silver | 10 min | n/a | 25 | 56.00 | 371 USD | -352 |
| Dow Jones | 30 min | n/a | 12 | 75.00 | 363 EUR | -186 |
| DAX 40 | 1 hour | n/a | 32 | 81.25 | 345 EUR | -117 |
| Nasdaq 100 | 4 hours | n/a | 10 | 80.00 | 339 EUR | -139 |
| US Crude Oil | 4 hours | n/a | 6 | 83.33 | 275 EUR | -109 |
| Nasdaq 100 | 10 min | n/a | 11 | 72.73 | 121 EUR | -16.90 |
| Gold | Daily | n/a | 30 | 73.33 | 113 EUR | -72.30 |
| S&P 500 | Daily | n/a | 11 | 81.82 | 84.91 EUR | -82.72 |
| US Crude Oil | 1 hour | n/a | 17 | 70.59 | 78.30 EUR | -66.70 |
| FTSE 100 | 15 min | n/a | 38 | 63.16 | 40.20 EUR | -20.50 |
| Gold | 10 min | n/a | 8 | 62.50 | 31.80 EUR | -4.70 |
| S&P 500 | 10 min | n/a | 14 | 78.57 | 23.46 EUR | -7.01 |
| Gold | 5 min | n/a | 12 | 75.00 | 16.50 EUR | -3.80 |
| Gold | 2 min | n/a | 16 | 62.50 | 14.90 EUR | -14.00 |
| S&P 500 | 15 min | n/a | 21 | 66.67 | 14.54 EUR | -12.41 |
Charts
Top 10 of 22 runs. The full list is in the table above.
The code
// ============================================================== // Stretched Dip Reversion // ProRealAlgos Strategy Library | prorealalgos.com // Type: Mean reversion // Direction: Long only // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ONCE downrun = 0 ONCE held = 0 mean = ExponentialAverage[5](close) trend = ExponentialAverage[200](close) myAtr = AverageTrueRange[14](close)
26 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 22 market and timeframe combinations. The best run by trade count was DAX 40, Daily, with 40 trades.
The best run had a maximum drawdown of 604 EUR at the tested position size, against a net result of 899 EUR.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.