It buys when the close breaks above the upper Bollinger Band with RSI above 50 while the 200-period SMA is not falling, and sells short on the mirror-image break below the lower band. Trades use a 0.5 percent stop and 1.0 percent target.
Best run of 8. USD/JPY, 30 min, spread 1, from run sweeps:2026-10-04-USDJPY-30m-opt.tsv:79.
| Period | Up to 2026-10-04 |
| Instrument | USD/JPY, 30 minutes |
| 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-04 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| USD/JPYBest run | 30 min | n/a | 3,204 | 31.18 | 433,570 USD | -211,170 |
| USD/JPY | 1 hour | n/a | 2,972 | 33.34 | 543,830 USD | -254,160 |
| USD/JPY | 4 hours | n/a | 1,116 | 34.68 | 299,860 USD | -251,060 |
| USD/JPY | 15 min | n/a | 2,666 | 28.47 | 254,200 USD | -242,650 |
| EUR/USD | 4 hours | n/a | 1,355 | 34.98 | 49,765 USD | -22,048 |
| EUR/USD | Daily | n/a | 647 | 35.70 | 23,414 USD | -11,360 |
| GBP/USD | 4 hours | n/a | 1,329 | 34.31 | 4,521 USD | -2,517 |
| Gold | 4 hours | n/a | 1,443 | 33.47 | 571 EUR | -249 |
Charts
The code
// ============================================================== // Bollinger Breakout With RSI Filter // ProRealAlgos Strategy Library | prorealalgos.com // Type: Breakout // Direction: Long & short // Timeframe tested: 30 minutes // ============================================================== DEFPARAM CumulateOrders = false basis = Average[20](close) dev = 2.0 * STD[20](close) upper = basis + dev lower = basis - dev myRsi = RSI[14](close) sma = Average[200](close)
28 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 8 market and timeframe combinations. The best run by trade count was USD/JPY, 30 minutes, with 3,204 trades.
The best run had a maximum drawdown of 211,170 USD at the tested position size, against a net result of 433,570 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.