The strategy buys when close moves above the upper Bollinger Band with RSI above 50, and sells short below the lower band with RSI below 50. Each trade carries a 2% stop loss and a 4% profit target.
Best run of 9. USD/JPY, Daily, spread 1, from run pf:2026-10-12-USDJPY-D.tsv:35.
| Period | Up to 2026-10-12 |
| Instrument | USD/JPY, 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 |
|---|---|---|---|---|---|---|
| USD/JPYBest run | Daily | 1.23 | 513 | 36.65 | 1,785,240 USD | -440,730 |
| USD/JPY | 30 min | n/a | 4,652 | 36.65 | 423,980 USD | -254,800 |
| EUR/USD | Daily | n/a | 464 | 37.07 | 54,415 USD | -44,101 |
| Silver | 4 hours | n/a | 1,347 | 34.74 | 26,550 USD | -9,704 |
| Nikkei 225 | 4 hours | n/a | 793 | 36.70 | 14,772 USD | -11,159 |
| GBP/USD | Daily | n/a | 496 | 35.28 | 14,022 USD | -7,139 |
| Gold | 30 min | n/a | 4,849 | 35.68 | 2,263 EUR | -1,586 |
| Gold | 4 hours | n/a | 972 | 37.14 | 2,217 EUR | -715 |
| Gold | Daily | n/a | 720 | 34.58 | 1,822 EUR | -507 |
Charts
The code
// ============================================================== // Bollinger Breakout With RSI Direction // 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)
13 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 9 market and timeframe combinations. The best run was USD/JPY, Daily, with a profit factor of 1.23 over 513 trades.
The best run had a maximum drawdown of 440,730 USD at the tested position size, against a net result of 1,785,240 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.