The strategy buys when close crosses above the upper Bollinger Band with RSI between 60 and 70, and sells short below the lower band with RSI between 35 and 40. Each trade exits when close crosses the 20-bar SMA against it.
Best run of 10. EUR/USD, Daily, spread 1, from run pf:2026-10-12-EURUSD-D.tsv:2.
| Period | Up to 2026-10-12 |
| Instrument | EUR/USD, Daily |
| Spread | 1 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 |
|---|---|---|---|---|---|---|
| EUR/USDBest run | Daily | 1.43 | 302 | 42.38 | 101,986 USD | -25,369 |
| USD/JPY | 1 hour | 1.12 | 3,022 | 37.00 | 607,780 USD | -146,280 |
| Silver | 4 hours | n/a | 677 | 35.01 | 24,075 USD | -11,378 |
| Nikkei 225 | 4 hours | n/a | 551 | 39.20 | 17,159 USD | -8,237 |
| Dow Jones | 1 hour | n/a | 947 | 37.28 | 11,148 EUR | -7,421 |
| DAX 40 | 1 hour | n/a | 2,556 | 36.03 | 6,457 EUR | -4,429 |
| DAX 40 | 4 hours | n/a | 675 | 37.19 | 6,137 EUR | -3,703 |
| Gold | 1 hour | n/a | 2,632 | 37.04 | 1,818 EUR | -520 |
| Gold | 4 hours | n/a | 693 | 38.82 | 1,636 EUR | -811 |
| Gold | 30 min | n/a | 4,591 | 33.96 | 1,235 EUR | -1,128 |
Charts
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // Bollinger Breakout Filtered By RSI // ProRealAlgos Strategy Library | prorealalgos.com // Type: Breakout // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false basis = Average[20](close) dev = 2 * STD[20](close) upper = basis + dev lower = basis - dev myRsi = RSI[14](close)
19 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 10 market and timeframe combinations. The best run was EUR/USD, Daily, with a profit factor of 1.43 over 302 trades.
The best run had a maximum drawdown of 25,369 USD at the tested position size, against a net result of 101,986 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.