Join waitlist
Strategies / Mean reversion / Bollinger Percent B Reversion

Bollinger Percent B Reversion

The strategy buys when the close is above its 200-bar average and Bollinger %b has stayed below 0.2 for three bars. It sells at market when %b rises above 0.8.

Mean reversionLong onlySwingSilver1 hour
9.01Profit factor
564,439Net profit USD
65.95%Win rate
834Trades
-20,088Max drawdown
677Avg trade

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

Entry rules, long

  1. The close is above the 200-bar simple moving average.
  2. A long position opens at market when both conditions hold and no long position is open.

Exit rules

  1. A long position closes at market when Bollinger %b rises above 0.8.

Test conditions

PeriodUp to 2026-10-12
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-12

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
SilverBest run1 hour9.01 83465.95564,439 USD-20,088
Brent Crude4 hours2.71 13576.3010,975 EUR-1,860
US Crude Oil4 hours2.09 17372.8310,277 EUR-1,720
Dow JonesDailyn/a 14575.8620,722 EUR-7,173
EUR/USD10 minn/a 1,28262.9519,194 USD-9,619
Dow Jones4 hoursn/a 10478.8515,364 EUR-3,934
DAX 40Dailyn/a 13369.1711,467 EUR-3,264
Nikkei 2254 hoursn/a 22968.129,431 USD-7,293
Nasdaq 100Dailyn/a 10574.298,826 EUR-4,231
Nasdaq 1004 hoursn/a 30573.445,821 EUR-2,652
FTSE 100Dailyn/a 10977.063,616 EUR-2,643
S&P 500Dailyn/a 15483.123,542 EUR-1,107
GBP/USD1 hourn/a 1,22066.152,740 USD-1,900
FTSE 1001 hourn/a 84269.602,666 EUR-2,044
S&P 5004 hoursn/a 30072.331,923 EUR-568

Charts

Results by run

Top 10 of 15 runs. The full list is in the table above.

Above 1.0 made money, below 1.0 lost money.

The code

ProBuilder code, as tested

// ==============================================================
// Bollinger Percent B Reversion
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Mean reversion
// Direction: Long only
// Timeframe tested: 1 hour
// ==============================================================

DEFPARAM CumulateOrders = false

ONCE pb = 0.5

sma = Average[200](close)
basis = Average[20](close)
dev = STD[20](close)
upper = basis + 2.0 * dev
lower = basis - 2.0 * dev

16 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 BandsSMA
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 Bollinger Percent B Reversion 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 15 market and timeframe combinations. The best run was Silver, 1 hour, with a profit factor of 9.01 over 834 trades.

How large was the drawdown?

The best run had a maximum drawdown of 20,088 USD at the tested position size, against a net result of 564,439 USD.

Does it trade long, short or both?

It only takes long trades.

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

RSI Extreme Reversion Long

Also a mean reversion strategy.

9.15 PF · 286 trades

Put your name on the ProRealAlgos waitlist to trade a tested portfolio instead of single strategies.

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