Buys when the position of a smoothed RSI oscillator inside its own Bollinger Bands rises back above 0.2. Sells short when that position falls back below 0.8 from above, and closes trades when it moves back through 0.2 or 0.8.
Best run of 6. USD/JPY, 1 hour, spread 1, from run sweeps:2026-10-11-USDJPY-1h-opt.tsv:34.
| Period | Up to 2026-10-11 |
| Instrument | USD/JPY, 1 hour |
| 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-11 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| USD/JPYBest run | 1 hour | n/a | 2,164 | 48.38 | 761,600 USD | -497,670 |
| Dow Jones | Daily | n/a | 220 | 50.45 | 25,255 EUR | -10,463 |
| GBP/USD | Daily | n/a | 227 | 51.98 | 9,204 USD | -7,363 |
| Nasdaq 100 | Daily | n/a | 185 | 45.41 | 8,593 EUR | -6,926 |
| FTSE 100 | Daily | n/a | 177 | 51.98 | 6,701 EUR | -4,904 |
| S&P 500 | 4 hours | n/a | 501 | 49.10 | 1,412 EUR | -1,395 |
Charts
The code
// ============================================================== // RSI EMA Percent B Reversal // ProRealAlgos Strategy Library | prorealalgos.com // Type: Mean reversion // Direction: Long & short // Timeframe tested: 1 hour // ============================================================== DEFPARAM CumulateOrders = false ONCE pb = 0.5 osc = ExponentialAverage[28](RSI[14](close)) basis = Average[80](osc) sd = STD[80](osc) upper = basis + 3 * sd lower = basis - 3 * sd
21 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 6 market and timeframe combinations. The best run by trade count was USD/JPY, 1 hour, with 2,164 trades.
The best run had a maximum drawdown of 497,670 USD at the tested position size, against a net result of 761,600 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.