The system buys when a stochastic-based close reversal agrees with a close crossing above an ATR trailing line, and sells short on the mirror condition. Positions close when the states no longer agree.
Best run of 8. DAX 40, 30 min, spread 3, from run sweeps:2026-10-12-DAX40-30m-opt.tsv:41.
| 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 | 3,778 | 35.20 | 8,230 EUR | -4,079 |
| Nikkei 225 | Daily | n/a | 208 | 39.90 | 31,557 USD | -17,797 |
| Silver | 4 hours | n/a | 557 | 36.62 | 28,548 USD | -14,262 |
| Brent Crude | Daily | n/a | 90 | 40.00 | 19,629 EUR | -6,266 |
| US Crude Oil | Daily | n/a | 205 | 38.05 | 8,035 EUR | -7,744 |
| Gold | 30 min | n/a | 3,342 | 35.82 | 1,763 EUR | -1,287 |
| Gold | 4 hours | n/a | 554 | 37.18 | 1,326 EUR | -1,038 |
| Gold | 1 hour | n/a | 2,095 | 36.18 | 1,243 EUR | -989 |
Charts
The code
// ============================================================== // Reversal Pattern With ATR Trailing Line // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long & short // Timeframe tested: 30 minutes // ============================================================== DEFPARAM CumulateOrders = false ONCE stoch = 50 ONCE posrev = 0 ONCE postwo = 0 ONCE ts = 0 hh = highest[14](high) ll = lowest[14](low)
52 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 8 market and timeframe combinations. The best run by trade count was DAX 40, 30 minutes, with 3,778 trades.
The best run had a maximum drawdown of 4,079 EUR at the tested position size, against a net result of 8,230 EUR.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.