Join waitlist
Strategies / Mean reversion / RSI Bollinger Band Reversal

RSI Bollinger Band Reversal

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.

Mean reversionLong & shortSwingSilver1 hour
3.72Profit factor
503,109Net profit USD
55.02%Win rate
1,892Trades
-66,145Max drawdown
266Avg trade

Best run of 6. Silver, 1 hour, spread 2, from run pf:2026-10-10-SILVER-1h.tsv:2.

Entry rules, long

  1. The close is below the lower Bollinger Band (20 period SMA minus 2 standard deviations).

Entry rules, short

  1. The close is above the upper Bollinger Band (20 period SMA plus 2 standard deviations).

Exit rules

  1. A short closes when RSI(14) is below 50 or the close crosses under the 20 period SMA.
  2. A new opposite entry reverses the open position and takes precedence over these exits.

Test conditions

PeriodUp to 2026-10-10
InstrumentSilver, 1 hour
Spread2 points
Starting capital1,000,000
CostsSpread only. Commissions and overnight financing are not included.
BarsUp to 200,000 bars, fewer where the instrument has less history
Last tested2026-10-10

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
SilverBest run1 hour3.72 1,89255.02503,109 USD-66,145
Dow JonesDailyn/a 19964.3220,354 EUR-9,337
Nasdaq 1004 hoursn/a 54558.356,537 EUR-3,458
FTSE 100Dailyn/a 15466.885,163 EUR-2,268
S&P 5004 hoursn/a 51863.511,257 EUR-979
S&P 500Dailyn/a 20253.961,217 EUR-952

Charts

Results by run

Net profitMax drawdown

The code

ProBuilder code, as tested

// ==============================================================
// 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

How to load it

  1. Copy the code with the copy button on the code block.
  2. In ProRealTime, open a chart of the instrument and timeframe you want to test, then open ProOrder > New trading system and choose "Create with programming".
  3. Paste the code, give the system a name and save it.
  4. Click "Backtest", set your own spread and position size, and run it before you consider trading it live.

Indicators used

Bollinger BandsRSISMAStandard Deviation
Read this firstKnown weaknesses2 points
  • The code sets no stop loss, so a losing trade stays open until an exit signal arrives.
  • Results include the spread only. Commissions and overnight financing are not included.

Questions

About this strategy

Can I run RSI Bollinger Band Reversal in ProOrder?

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.

Which markets was it tested on?

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.

How large was the drawdown?

The best run had a maximum drawdown of 66,144 USD at the tested position size, against a net result of 503,109 USD.

Does it trade long, short or both?

It trades both long and short.

Related

Strategies like this one

Trend Surfer

Uses the same indicator.

1.04 PF · 10,813 trades

SMA Crossover With RSI Exit

Best run on the same market, Silver.

2.13 PF · 8,999 trades

Weighted Average Z Score Reversion

Also a mean reversion strategy.

3.77 PF · 1,777 trades

See how ProRealAlgos combines strategies like this into one automated portfolio.

The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.

Past backtest results do not guarantee future results. This is not financial advice. Curated and maintained by ProRealAlgos. ProRealTime™ is a trademark of ProRealTime SAS. prorealalgos.comStatsDocs