Join waitlist
Strategies / Mean reversion / Bollinger %B Reversal Long

Bollinger %B Reversal Long

The strategy buys when %B, the close's position within 21-period Bollinger Bands (2 standard deviations), is below -0.13. It sells the long when %B rises above 1.2, and it uses no stop or target.

Mean reversionLong onlyIntradayFTSE 1005 min
1.34Profit factor
3,573Net profit EUR
64.80%Win rate
716Trades
-829Max drawdown
4.99Avg trade

Best run of 45. FTSE 100, 5 min, spread 2, from run pf:2026-10-05-FTSE100-5m.tsv:1.

Entry rules, long

  1. No long position is currently open

Exit rules

  1. The long closes at market when this holds, and no stop or target is set

Test conditions

PeriodUp to 2026-10-05
InstrumentFTSE 100, 5 minutes
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-05

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
FTSE 100Best run5 min1.34 71664.803,573 EUR-829
FTSE 10010 min1.27 78464.544,026 EUR-982
USD/JPY4 hoursn/a 13760.58336,220 USD-302,850
Dow JonesDailyn/a 2483.3347,370 EUR-11,142
Nikkei 2254 hoursn/a 8166.6741,624 USD-12,330
EUR/USD10 minn/a 76662.0141,333 USD-13,815
Nikkei 2251 hourn/a 37065.9534,184 USD-15,017
Nasdaq 100Dailyn/a 1994.7431,463 EUR-5,914
SilverDailyn/a 5068.0026,995 USD-8,781
Nikkei 22510 minn/a 86263.2325,679 USD-11,514
DAX 40Dailyn/a 2491.6725,126 EUR-5,511
Nikkei 22530 minn/a 79861.9024,618 USD-17,033
Nikkei 22515 minn/a 85163.4520,608 USD-13,638
Nasdaq 10015 minn/a 89066.0719,711 EUR-5,744
Nasdaq 1004 hoursn/a 10475.0017,467 EUR-5,606
Nasdaq 1001 hourn/a 71765.2717,303 EUR-5,979
Dow Jones4 hoursn/a 3164.5216,421 EUR-11,189
Dow Jones1 hourn/a 23868.0715,708 EUR-11,342
Nikkei 2255 minn/a 76263.2515,223 USD-12,844
DAX 404 hoursn/a 10467.3115,180 EUR-5,779
Dow Jones30 minn/a 42764.1714,419 EUR-8,952
Brent CrudeDailyn/a 1770.5913,109 EUR-6,671
Nasdaq 10010 minn/a 82563.3912,236 EUR-5,676
Dow Jones15 minn/a 72765.2012,086 EUR-10,969
Dow Jones10 minn/a 81763.1611,115 EUR-9,801
DAX 401 hourn/a 54964.4810,481 EUR-5,966
Dow Jones2 minn/a 65865.058,639 EUR-3,858
FTSE 1001 hourn/a 51069.228,448 EUR-3,497
Brent Crude15 minn/a 85463.477,998 EUR-4,525
FTSE 100Dailyn/a 2171.437,978 EUR-3,643
FTSE 1004 hoursn/a 9168.137,906 EUR-2,884
S&P 500Dailyn/a 2180.957,157 EUR-1,238
S&P 5004 hoursn/a 9778.355,388 EUR-1,278
Dow Jones1 minn/a 62062.744,866 EUR-3,876
S&P 5001 hourn/a 63566.934,451 EUR-1,392
FTSE 10030 minn/a 90862.674,328 EUR-3,380
S&P 50015 minn/a 85165.573,141 EUR-1,424
GoldDailyn/a 5062.002,876 EUR-1,534
S&P 50030 minn/a 96363.142,867 EUR-1,246
FTSE 1003 minn/a 68262.901,782 EUR-1,126
S&P 50010 minn/a 75363.611,628 EUR-1,488
Gold4 hoursn/a 12863.281,440 EUR-1,038
GBP/USD5 minn/a 64261.991,331 USD-876
GBP/USD3 minn/a 63662.74797 USD-554
S&P 5002 minn/a 57460.10683 EUR-543

Charts

Results by run

Top 10 of 45 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 %B Reversal Long
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Mean reversion
// Direction: Long only
// Timeframe tested: 5 minutes
// ==============================================================

DEFPARAM CumulateOrders = false

basis = Average[21](close)
sd = STD[21](close) * SQRT(1.05)
upper = basis + 2 * sd
lower = basis - 2 * sd
width = upper - lower

10 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 BandsSMAStandard Deviation
Longer historyRe-run on up to 1,000,000 barsFTSE 100 · 5 min · older data 199.40 EUR

On the long run with 940,000 bars the net result was 3,773 EUR, against 3,573 EUR on the standard 200,000-bar run. The older data alone gave 199 EUR.

FTSE 100 · 5 min

Bars available940,000
Net, standard 200,000-bar run3,573.40 EUR
Net, long run3,772.80 EUR
Net on the older data alone199.40 EUR
Read this firstKnown weaknesses2 points
  • Results include the spread only. Commissions and overnight financing are not included.
  • The code is published as it was backtested and has not been compiled again since.

Questions

About this strategy

Can I run Bollinger %B Reversal Long 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 45 market and timeframe combinations. The best run was FTSE 100, 5 minutes, with a profit factor of 1.34 over 716 trades.

How large was the drawdown?

The best run had a maximum drawdown of 829 EUR at the tested position size, against a net result of 3,573 EUR.

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

DAX Survivor

Best run on the same market, FTSE 100.

1.17 PF · 1,514 trades

Smoothed Z-Score Crossover

Also a mean reversion strategy.

1.34 PF · 1,808 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