Join today
Strategies / Breakout / Bollinger Volume Breakout

Bollinger Volume Breakout

A close outside the Bollinger Band (20) with volume of at least 8000 opens a trade in the breakout direction. Every position has a 30 point stop and a 60 point target, and an opposite signal flips it. Weekend bars are skipped.

BreakoutLong & shortIntradayGold30 min
n/aProfit factor
1,434Net profit EUR
38.60%Win rate
1,329Trades
-607Max drawdown
1.08Avg trade

Best run of 5. Gold, 30 min, spread 0.6, from run sweeps:2026-09-24-GOLD-30m-opt.tsv:4.

Entry rules, long

  1. Members only
  2. Volume is at least 8000
  3. The bar does not open on a Saturday or Sunday

Entry rules, short

  1. Members only
  2. Volume is at least 8000
  3. The bar does not open on a Saturday or Sunday

Exit rules

  1. Stop loss 30 points
  2. Members only
  3. An opposite signal reverses the position

Test conditions

PeriodUp to 2026-09-24
InstrumentGold, 30 minutes
Spread0.6 points
Contracts1
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-09-24

Parameters

positionSize
Contracts per trade
1
bandPeriod
Bollinger Band length
20
minVolume
Breakout bar needs at least this volume
8000
stopLossPoints
Protective stop
30
takeProfitPoints
Profit target
60

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
GoldBest run30 minn/a 1,32938.601,434 EUR-607
Silver4 hoursn/a 1,15035.4812,379 USD-4,955
Gold4 hoursn/a 79437.151,619 EUR-476
GoldDailyn/a 23537.871,180 EUR-392
S&P 5001 minn/a 26540.75595 EUR-364

Charts

Results by run

Net profit against max drawdown

Net profitMax drawdown
0-5K-3K10K20KSilver · 4 hoursGold · 4 hoursGold · 30 minGold · DailyS&P 500 · 1 min

The code

ProBuilder, rewritten to house standard

Every file in the library uses the same header, the same section order and the same variable names. The numbers above were produced by the original version before the rewrite, and the rewrite has not yet been compiled in ProRealTime.

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

// --- Settings ---
DEFPARAM CumulateOrders = false

// --- Parameters ---
positionSize = 1          // contracts per trade
bandPeriod = 20           // Bollinger Band length
minVolume = 8000          // breakout bar needs at least this volume
stopLossPoints = 30       // protective stop
takeProfitPoints = 60     // profit target

// --- Indicators ---
upperBand = BollingerUp[bandPeriod](close)
lowerBand = BollingerDown[bandPeriod](close)
// No entries on bars that open on Saturday (6) or Sunday (0).
weekendBar = OpenDayOfWeek = 6 OR OpenDayOfWeek = 0

16 more lines: the entry and exit rules.

Read this first

Known weaknesses

  • Profit factor was not recorded, because every result on this page comes from a parameter sweep.
  • The best run made EUR 1,433.8 over 1,329 trades, an average of EUR 1.08 per trade, which leaves little room for commissions.
  • The 8000 volume threshold depends on the instrument, so it will filter very differently on each market.
  • Point-based stops and targets mean the same 30 and 60 points are a very different risk on Gold, Silver and the S&P 500.

Indicators used

Bollinger BandsVolume

How to load it

  1. Copy the code with the copy button above 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.

Questions

About this strategy

Can this breakout system run in ProOrder?

Yes, it is fully automated with fixed point stops and targets. The code was rewritten after these sweeps and not compile-checked, so test it first.

Which markets were tested?

Gold, Silver and the S&P 500. Silver 4 hours made the most at USD 12,378.5, Gold appeared on three timeframes, and S&P 500 1 minute made EUR 594.63.

How big were the drawdowns?

At 1 contract the best Gold 30 minute run had a max drawdown of EUR 607.3. Silver 4 hours saw USD 4,954.5.

Why is volume part of the rule?

It keeps the system out of low-activity breakouts. Instruments with no real volume data will need a different threshold.

Related

Strategies like this one

Bollinger Squeeze

Uses the same indicator.

14.30 PF · 86 trades

Triple Band Market Model

Best run on the same market, Gold.

2.27 PF · 203 trades

Breakout Regime Filter

Also a breakout strategy.

6.28 PF · 70 trades

Looking for breakout ideas that have been through live trading? 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