Join waitlist
Strategies / Breakout / Bollinger Momentum Breakout

Bollinger Momentum Breakout

The strategy buys when price crosses above the upper Bollinger Band after breaking a recent high with a strong bullish candle. It sells short on the mirror setup, and exits when price crosses the middle band or moves 1% beyond the 20-bar extreme.

BreakoutLong & shortIntradayGold30 min
n/aProfit factor
1,927Net profit EUR
37.08%Win rate
2,117Trades
-610Max drawdown
0.91Avg trade

Best run of 7. Gold, 30 min, spread 0.6, from run sweeps:2026-10-12-GOLD-30m-opt.tsv:35.

Entry rules, long

  1. The close is above the stored high from the most recent break above the prior 12-bar high
  2. The body is at least 0.7 of the bar's range and the close is above the open

Entry rules, short

  1. The close is below the stored low from the most recent break below the prior 12-bar low
  2. The body is at least 0.7 of the bar's range and the close is below the open

Exit rules

  1. A short closes when the close crosses over the middle band or closes above 1.01 times the 20-bar highest high

Test conditions

PeriodUp to 2026-10-12
InstrumentGold, 30 minutes
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-12

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
GoldBest run30 minn/a 2,11737.081,927 EUR-610
Nikkei 225Dailyn/a 12441.1326,950 USD-12,552
US Crude OilDailyn/a 13638.9713,206 EUR-6,434
Brent CrudeDailyn/a 6232.2612,194 EUR-7,864
Nasdaq 100Dailyn/a 13737.236,309 EUR-3,450
Gold1 hourn/a 1,30938.272,941 EUR-768
GoldDailyn/a 13740.152,837 EUR-809

Charts

Results by run

Net profitMax drawdown

The code

ProBuilder code, as tested

// ==============================================================
// Bollinger Momentum Breakout
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Breakout
// Direction: Long & short
// Timeframe tested: 30 minutes
// ==============================================================

DEFPARAM CumulateOrders = false

ONCE prevhigh = 0
ONCE prevlow = 0
ONCE havehigh = 0
ONCE havelow = 0

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

obhigh = highest[20](high)
oblow = lowest[20](low)

48 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 Bands
Read this firstKnown weaknesses2 points
  • No profit factor is available, because only sweep results exist for this strategy.
  • The code sets no stop loss, so a losing trade stays open until an exit signal arrives.

Questions

About this strategy

Can I run Bollinger Momentum Breakout 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 7 market and timeframe combinations. The best run by trade count was Gold, 30 minutes, with 2,117 trades.

How large was the drawdown?

The best run had a maximum drawdown of 610 EUR at the tested position size, against a net result of 1,926 EUR.

Does it trade long, short or both?

It trades both long and short.

Related

Strategies like this one

Bollinger Band Reversion To Basis

Uses the same indicator.

2.33 PF · 4,691 trades

CCI Breakout

Best run on the same market, Gold.

1.08 PF · 6,065 trades

Big Candle Breakout

Also a breakout strategy.

n/a PF · 4,636 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