Join waitlist
Strategies / Mean reversion / Bollinger Upper Band Re-entry

Bollinger Upper Band Re-entry

The system buys when a close drops back below the upper Bollinger Band after the prior bar closed above it, provided RSI and volatility conditions are met. Each trade uses a 1.2% stop loss and a 2.5% profit target, with one contract per trade.

Mean reversionLong onlySwingGold4 hours
1.45Profit factor
2,513Net profit EUR
39.83%Win rate
472Trades
-358Max drawdown
5.32Avg trade

Best run of 45. Gold, 4 hours, spread 0.6, from run pf:2026-10-05-GOLD-4h.tsv:9.

Entry rules, long

  1. RSI(14) is above 55.
  2. ATR(14) is above 0.8 times its 50-period average.

Exit rules

  1. A profit target at 2.5% from the entry price.

Test conditions

PeriodUp to 2026-10-05
InstrumentGold, 4 hours
Spread0.6 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
GoldBest run4 hours1.45 47239.832,513 EUR-358
GoldDaily1.35 35136.75857 EUR-204
Nasdaq 10030 min1.22 1,01936.7016,884 EUR-3,350
USD/JPY30 minn/a 36135.73494,330 USD-254,320
USD/JPY10 minn/a 15538.71413,380 USD-253,790
USD/JPY15 minn/a 18636.56308,810 USD-273,050
Nikkei 22530 minn/a 1,13935.0324,582 USD-11,251
Nikkei 2251 hourn/a 87535.2022,997 USD-8,624
Nikkei 2252 minn/a 24037.5019,374 USD-13,790
Nasdaq 10015 minn/a 77435.7915,828 EUR-4,225
Dow Jones10 minn/a 30136.2113,727 EUR-7,270
Nikkei 2254 hoursn/a 38235.0812,279 USD-5,615
Nikkei 225Dailyn/a 23539.1511,143 USD-3,722
Nasdaq 10010 minn/a 56335.3510,861 EUR-7,328
Nasdaq 1001 hourn/a 1,04034.5210,801 EUR-3,658
Dow Jones5 minn/a 14937.5810,276 EUR-6,784
Nasdaq 1005 minn/a 27337.369,130 EUR-6,449
Dow Jones15 minn/a 41334.629,124 EUR-8,598
Dow Jones3 minn/a 10937.617,520 EUR-5,905
DAX 405 minn/a 17838.767,280 EUR-3,263
Dow Jones4 hoursn/a 12036.677,204 EUR-6,049
Nasdaq 1003 minn/a 19936.185,982 EUR-4,548
Nasdaq 1002 minn/a 12837.505,970 EUR-4,791
GBP/USDDailyn/a 24336.215,591 USD-3,794
DAX 4015 minn/a 57234.625,431 EUR-5,418
Nasdaq 1001 minn/a 7839.745,283 EUR-3,653
Nasdaq 1004 hoursn/a 42936.835,095 EUR-2,773
Dow Jones1 minn/a 3043.334,867 EUR-4,237
S&P 50015 minn/a 52436.073,197 EUR-1,050
US Crude Oil4 hoursn/a 43535.632,928 EUR-1,580
Gold5 minn/a 28741.112,846 EUR-1,097
Gold15 minn/a 52038.652,805 EUR-1,439
S&P 5005 minn/a 16540.612,695 EUR-907
S&P 50030 minn/a 76736.252,530 EUR-1,207
Gold10 minn/a 40638.672,415 EUR-1,522
S&P 50010 minn/a 34536.522,406 EUR-1,003
Gold1 hourn/a 95436.272,204 EUR-746
FTSE 1005 minn/a 11439.472,170 EUR-1,079
S&P 5001 hourn/a 80334.372,018 EUR-1,169
Gold30 minn/a 89635.381,902 EUR-1,184
S&P 5004 hoursn/a 36437.091,653 EUR-712
FTSE 10010 minn/a 23435.041,646 EUR-1,318
S&P 5003 minn/a 12838.281,493 EUR-895
S&P 5001 minn/a 3345.45972 EUR-446
S&P 500Dailyn/a 31324.92527 EUR-351

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 Upper Band Re-entry
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Mean reversion
// Direction: Long only
// Timeframe tested: 4 hours
// ==============================================================

DEFPARAM CumulateOrders = false

basis = Average[25](close)
upper = basis + 2.0 * STD[25](close)
myRsi = RSI[14](close)
myAtr = AverageTrueRange[14](close)
atrsma = Average[50](myAtr)

12 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 BandsRSIATRSMA
Longer historyRe-run on up to 1,000,000 barsGold · 4 hours · older data 0.00 EUR

Gold had no history beyond the standard run, so both runs used 30,000 bars.

Gold · 4 hours

Bars available30,000
Net, standard 200,000-bar run2,512.80 EUR
Net, long run2,512.80 EUR
Net on the older data alone0.00 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 Upper Band Re-entry 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 Gold, 4 hours, with a profit factor of 1.45 over 472 trades.

How large was the drawdown?

The best run had a maximum drawdown of 358 EUR at the tested position size, against a net result of 2,513 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

CCI Breakout

Best run on the same market, Gold.

1.08 PF · 6,065 trades

CCI Regression Typical Price Reversal

Also a mean reversion strategy.

1.44 PF · 803 trades

Want strategies that are already part of a live portfolio? Join the ProRealAlgos waitlist.

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