The strategy buys when close falls below the lower 20-bar band and sells short when close rises above the upper band, aiming for the 20-bar EMA. Each trade has a stop at the 3 standard deviation band.
Best run of 1. FTSE 100, Daily, spread 2, from run sweeps:2026-10-11-FTSE100-D-opt.tsv:74.
| Period | Up to 2026-10-11 |
| Instrument | FTSE 100, Daily |
| Spread | 2 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 |
|---|---|---|---|---|---|---|
| FTSE 100Best run | Daily | n/a | 981 | 23.85 | 2,363 EUR | -2,362 |
Charts
The code
// ============================================================== // Bollinger Band Reversion With Bracket // ProRealAlgos Strategy Library | prorealalgos.com // Type: Mean reversion // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false basis = Average[20](close) sd = STD[20](close) upentry = basis + 2.0 * sd loentry = basis - 2.0 * sd upstop = basis + 3.0 * sd lostop = basis - 3.0 * sd ema = ExponentialAverage[20](close)
22 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 one combination, FTSE 100, Daily, with 981 trades.
The best run had a maximum drawdown of 2,362 EUR at the tested position size, against a net result of 2,363 EUR.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.