Buys when RSI(14) is below 30 and price closes under the lower Bollinger Band (20, 2), and sells short when RSI(14) is above 70 and price closes over the upper band. Exits occur when RSI passes 50 or price crosses the 20 period average.
Best run of 6. Silver, 1 hour, spread 2, from run pf:2026-10-10-SILVER-1h.tsv:2.
| Period | Up to 2026-10-10 |
| Instrument | Silver, 1 hour |
| 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-10 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| SilverBest run | 1 hour | 3.72 | 1,892 | 55.02 | 503,109 USD | -66,145 |
| Dow Jones | Daily | n/a | 199 | 64.32 | 20,354 EUR | -9,337 |
| Nasdaq 100 | 4 hours | n/a | 545 | 58.35 | 6,537 EUR | -3,458 |
| FTSE 100 | Daily | n/a | 154 | 66.88 | 5,163 EUR | -2,268 |
| S&P 500 | 4 hours | n/a | 518 | 63.51 | 1,257 EUR | -979 |
| S&P 500 | Daily | n/a | 202 | 53.96 | 1,217 EUR | -952 |
Charts
The code
// ============================================================== // RSI Bollinger Band Reversal // ProRealAlgos Strategy Library | prorealalgos.com // Type: Mean reversion // Direction: Long & short // Timeframe tested: 1 hour // ============================================================== DEFPARAM CumulateOrders = false myRsi = RSI[14](close) basis = Average[20](close) dev = STD[20](close) * 2 upper = basis + dev lower = basis - dev
20 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 was Silver, 1 hour, with a profit factor of 3.72 over 1,892 trades.
The best run had a maximum drawdown of 66,144 USD at the tested position size, against a net result of 503,109 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.