The system buys when price crosses above the middle of its Bollinger Bands or above the upper band, using 1.5 standard deviations. It sells when price crosses back below either the upper band or the middle line.
Best run of 3. DAX 40, 4 hours, spread 3, from run sweeps:2026-10-11-DAX40-4h-opt.tsv:27.
| Period | Up to 2026-10-11 |
| Instrument | DAX 40, 4 hours |
| 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 | 4 hours | n/a | 2,480 | 37.42 | 7,721 EUR | -2,714 |
| Nikkei 225 | Daily | n/a | 1,005 | 40.20 | 33,468 USD | -13,132 |
| Dow Jones | Daily | n/a | 1,381 | 36.86 | 5,872 EUR | -5,131 |
Charts
The code
// ============================================================== // Band Midline and Upper Cross Long // ProRealAlgos Strategy Library | prorealalgos.com // Type: Breakout // Direction: Long only // Timeframe tested: 4 hours // ============================================================== DEFPARAM CumulateOrders = false basis = Average[20](close) dev = 1.5 * STD[20](close) upper = basis + dev
12 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 3 market and timeframe combinations. The best run by trade count was DAX 40, 4 hours, with 2,480 trades.
The best run had a maximum drawdown of 2,714 EUR at the tested position size, against a net result of 7,721 EUR.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.