Buys when the close crosses below a lower band set 2.618 times the 52-period ATR below a 52-period EMA. Closes the long when the close crosses above the upper band, 1.618 times the ATR above the EMA.
Best run of 31. FTSE 100, 5 min, spread 2, from run sweeps:2026-10-12-FTSE100-5m-opt.tsv:2.
| Period | Up to 2026-10-12 |
| Instrument | FTSE 100, 5 minutes |
| 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-12 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| FTSE 100Best run | 5 min | n/a | 1,214 | 69.11 | 1,686 EUR | -887 |
| Dow Jones | Daily | n/a | 82 | 80.49 | 30,793 EUR | -8,975 |
| Silver | Daily | n/a | 70 | 65.71 | 27,021 USD | -7,956 |
| Nikkei 225 | 4 hours | n/a | 147 | 74.83 | 26,371 USD | -9,568 |
| Nikkei 225 | 15 min | n/a | 1,184 | 68.75 | 20,711 USD | -12,852 |
| Nikkei 225 | 30 min | n/a | 1,137 | 66.14 | 19,247 USD | -12,093 |
| Dow Jones | 1 hour | n/a | 244 | 72.13 | 14,669 EUR | -8,369 |
| EUR/USD | 10 min | n/a | 1,129 | 64.39 | 13,530 USD | -6,642 |
| Nikkei 225 | 1 hour | n/a | 551 | 66.97 | 13,008 USD | -10,642 |
| Nasdaq 100 | Daily | n/a | 62 | 75.81 | 12,432 EUR | -4,231 |
| Dow Jones | 30 min | n/a | 477 | 67.51 | 12,303 EUR | -6,700 |
| Nasdaq 100 | 4 hours | n/a | 204 | 73.04 | 11,447 EUR | -4,471 |
| Dow Jones | 4 hours | n/a | 63 | 73.02 | 11,412 EUR | -10,393 |
| DAX 40 | 1 hour | n/a | 681 | 70.78 | 9,997 EUR | -5,283 |
| Dow Jones | 15 min | n/a | 924 | 66.77 | 8,853 EUR | -6,092 |
| DAX 40 | Daily | n/a | 103 | 69.90 | 8,626 EUR | -5,479 |
| Nasdaq 100 | 1 hour | n/a | 740 | 68.92 | 8,602 EUR | -6,318 |
| Nasdaq 100 | 30 min | n/a | 1,191 | 66.25 | 8,386 EUR | -3,496 |
| FTSE 100 | Daily | n/a | 73 | 80.82 | 8,385 EUR | -3,190 |
| DAX 40 | 4 hours | n/a | 185 | 70.81 | 6,522 EUR | -5,392 |
| FTSE 100 | 4 hours | n/a | 177 | 72.88 | 6,267 EUR | -2,634 |
| Dow Jones | 2 min | n/a | 1,085 | 69.40 | 5,500 EUR | -4,147 |
| FTSE 100 | 1 hour | n/a | 655 | 68.55 | 4,723 EUR | -2,325 |
| Brent Crude | 1 hour | n/a | 382 | 67.28 | 4,701 EUR | -4,253 |
| S&P 500 | 1 hour | n/a | 768 | 70.31 | 3,859 EUR | -1,215 |
| S&P 500 | 4 hours | n/a | 202 | 75.25 | 3,198 EUR | -1,135 |
| S&P 500 | 30 min | n/a | 1,194 | 67.59 | 3,003 EUR | -859 |
| S&P 500 | Daily | n/a | 85 | 82.35 | 2,957 EUR | -952 |
| FTSE 100 | 15 min | n/a | 1,178 | 68.42 | 2,801 EUR | -2,271 |
| FTSE 100 | 10 min | n/a | 1,168 | 68.66 | 1,997 EUR | -1,047 |
| Gold | Daily | n/a | 71 | 71.83 | 884 EUR | -856 |
Charts
Top 10 of 31 runs. The full list is in the table above.
The code
// ============================================================== // Lower Band Reversion Long // ProRealAlgos Strategy Library | prorealalgos.com // Type: Mean reversion // Direction: Long only // Timeframe tested: 5 minutes // ============================================================== DEFPARAM CumulateOrders = false myAverage = ExponentialAverage[52](close) myAtr = AverageTrueRange[52](close) bull = myAverage + myAtr * 1.618 bear = myAverage - myAtr * 2.618
10 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 31 market and timeframe combinations. The best run by trade count was FTSE 100, 5 minutes, with 1,214 trades.
The best run had a maximum drawdown of 886 EUR at the tested position size, against a net result of 1,686 EUR.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.