Upper and lower bands are 100-bar averages of the close, scaled by a range-based volatility measure. It buys when the high crosses above the upper band, sells short when the low crosses below the lower band, and exits at the midline.
Best run of 16. DAX 40, 5 min, spread 3, from run sweeps:2026-10-11-DAX40-5m-opt.tsv:14.
| Period | Up to 2026-10-11 |
| Instrument | DAX 40, 5 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 | 5 min | n/a | 758 | 36.15 | 2,302 EUR | -2,286 |
| USD/JPY | Daily | n/a | 36 | 44.44 | 1,012,050 USD | -367,300 |
| USD/JPY | 10 min | n/a | 595 | 42.86 | 383,840 USD | -122,010 |
| USD/JPY | 30 min | n/a | 563 | 41.39 | 344,280 USD | -183,430 |
| USD/JPY | 15 min | n/a | 587 | 39.35 | 327,100 USD | -97,070 |
| EUR/USD | 1 hour | n/a | 428 | 43.46 | 33,562 USD | -12,680 |
| EUR/USD | 10 min | n/a | 611 | 40.10 | 26,321 USD | -25,472 |
| Nikkei 225 | 2 min | n/a | 681 | 38.77 | 18,322 USD | -8,228 |
| Silver | 30 min | n/a | 625 | 39.84 | 17,731 USD | -17,257 |
| GBP/USD | Daily | n/a | 30 | 56.67 | 8,095 USD | -3,990 |
| US Crude Oil | Daily | n/a | 22 | 36.36 | 5,177 EUR | -3,824 |
| Gold | 15 min | n/a | 584 | 39.90 | 1,900 EUR | -617 |
| Gold | 30 min | n/a | 586 | 43.17 | 991 EUR | -840 |
| Gold | 1 hour | n/a | 322 | 39.44 | 946 EUR | -641 |
| Gold | Daily | n/a | 35 | 37.14 | 900 EUR | -869 |
| Gold | 5 min | n/a | 664 | 37.35 | 850 EUR | -521 |
Charts
Top 10 of 16 runs. The full list is in the table above.
The code
// ============================================================== // Adaptive Volatility Band Breakout // ProRealAlgos Strategy Library | prorealalgos.com // Type: Breakout // Direction: Long & short // Timeframe tested: 5 minutes // ============================================================== DEFPARAM CumulateOrders = false ONCE vx = 0 hh = highest[100](close) ll = lowest[100](close)
20 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, 5 minutes, with 758 trades.
The best run had a maximum drawdown of 2,286 EUR at the tested position size, against a net result of 2,302 EUR.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.