Join waitlist
Strategies / Mean reversion / Bollinger Band Reentry

Bollinger Band Reentry

Buys when the close crosses back above the lower Bollinger Band (20 periods, 2 standard deviations) and sells short when it crosses back below the upper band. Each trade has a 0.58% stop loss and a 0.96% take profit.

Mean reversionLong & shortSwingEUR/USD1 hour
n/aProfit factor
45,873Net profit USD
54.82%Win rate
7,039Trades
-30,685Max drawdown
6.52Avg trade

Best run of 3. EUR/USD, 1 hour, spread 1, from run sweeps:2026-10-07-EURUSD-1h-opt.tsv:3.

Entry rules, long

  1. Only when no long position is open.

Entry rules, short

  1. Only when no short position is open.

Exit rules

  1. A stop loss sits 0.58% from the entry price, for longs and shorts.
  2. A take profit sits 0.96% from the entry price, for longs and shorts.

Test conditions

PeriodUp to 2026-10-07
InstrumentEUR/USD, 1 hour
Spread1 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-07

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
EUR/USDBest run1 hourn/a 7,03954.8245,873 USD-30,685
DAX 404 hoursn/a 1,74840.569,120 EUR-2,415
Nasdaq 100Dailyn/a 67827.732,269 EUR-1,194

Charts

Results by run

Net profitMax drawdown

The code

ProBuilder code, as tested

// ==============================================================
// Bollinger Band Reentry
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Mean reversion
// Direction: Long & short
// Timeframe tested: 1 hour
// ==============================================================

DEFPARAM CumulateOrders = false

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

17 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
Read this firstKnown weaknesses2 points
  • No profit factor is available, because only sweep results exist for this strategy.
  • The maximum drawdown of 30,685 USD is large next to the net profit of 45,873 USD.

Questions

About this strategy

Can I run Bollinger Band Reentry 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 3 market and timeframe combinations. The best run by trade count was EUR/USD, 1 hour, with 7,039 trades.

How large was the drawdown?

The best run had a maximum drawdown of 30,685 USD at the tested position size, against a net result of 45,873 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

Slow MACD Slope

Best run on the same market, EUR/USD.

6.80 PF · 7,305 trades

ATR Band

Also a mean reversion strategy.

10.31 PF · 53 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