The strategy buys when price crosses above a smoothed 200-bar high band and sells short when price crosses below a smoothed 200-bar low band. Exits trigger when price crosses back through the band offset by 2 times ATR(14).
Best run of 15. DAX 40, 30 min, spread 3, from run sweeps:2026-10-11-DAX40-30m-opt.tsv:81.
| Period | Up to 2026-10-11 |
| 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-11 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| DAX 40Best run | 30 min | n/a | 2,053 | 38.87 | 3,756 EUR | -2,324 |
| USD/JPY | Daily | n/a | 132 | 43.18 | 1,074,060 USD | -474,100 |
| USD/JPY | 4 hours | n/a | 365 | 38.63 | 181,110 USD | -154,000 |
| EUR/USD | 4 hours | n/a | 493 | 40.37 | 28,191 USD | -27,117 |
| Silver | Daily | n/a | 109 | 38.53 | 25,424 USD | -18,479 |
| Brent Crude | Daily | n/a | 38 | 65.79 | 17,420 EUR | -3,747 |
| Silver | 4 hours | n/a | 316 | 39.56 | 11,635 USD | -11,336 |
| GBP/USD | Daily | n/a | 151 | 45.03 | 6,958 USD | -3,568 |
| US Crude Oil | Daily | n/a | 119 | 35.29 | 5,700 EUR | -4,819 |
| US Crude Oil | 4 hours | n/a | 248 | 47.98 | 5,304 EUR | -2,907 |
| DAX 40 | Daily | n/a | 207 | 42.03 | 4,910 EUR | -3,513 |
| Gold | 30 min | n/a | 1,946 | 38.69 | 1,693 EUR | -523 |
| Gold | 4 hours | n/a | 331 | 41.69 | 1,571 EUR | -437 |
| Gold | Daily | n/a | 131 | 46.56 | 1,314 EUR | -773 |
| Gold | 1 hour | n/a | 1,251 | 38.45 | 1,232 EUR | -513 |
Charts
Top 10 of 15 runs. The full list is in the table above.
The code
// ============================================================== // Smoothed Channel Breakout (long and short) // ProRealAlgos Strategy Library | prorealalgos.com // Type: Breakout // Direction: Long & short // Timeframe tested: 30 minutes // ============================================================== DEFPARAM CumulateOrders = false myA = AverageTrueRange[14](close) * 2 hiband = Average[10](highest[200](high)) histop = hiband - myA loband = Average[10](lowest[200](low)) lostop = loband + myA
16 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 15 market and timeframe combinations. The best run by trade count was DAX 40, 30 minutes, with 2,053 trades.
The best run had a maximum drawdown of 2,324 EUR at the tested position size, against a net result of 3,756 EUR.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.