Join waitlist
Strategies / Breakout / Bollinger Band Trend Breakout

Bollinger Band Trend Breakout

Buys when the close crosses above the upper 20-period Bollinger Band while the 200-period SMA is not falling, and sells short on the mirror cross below the lower band while it is falling. Each trade has a 0.5% stop and a 1.0% target.

BreakoutLong & shortSwingEUR/USDDaily
1.20Profit factor
34,467Net profit USD
37.63%Win rate
481Trades
-8,200Max drawdown
71.66Avg trade

Best run of 10. EUR/USD, Daily, spread 1, from run pf:2026-10-05-EURUSD-D.tsv:2.

Entry rules, long

  1. The 200-period SMA is not lower than on the previous bar.

Entry rules, short

  1. The 200-period SMA is lower than on the previous bar.

Exit rules

  1. Each trade has a stop 0.5% and a target 1.0% from the entry price.

Test conditions

PeriodUp to 2026-10-05
InstrumentEUR/USD, Daily
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-05

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
EUR/USDBest runDaily1.20 48137.6334,467 USD-8,200
USD/JPY1 hourn/a 2,59733.54504,800 USD-256,350
USD/JPY30 minn/a 2,83131.61405,000 USD-248,380
USD/JPYDailyn/a 45734.79196,060 USD-160,790
EUR/USD4 hoursn/a 1,19235.4947,599 USD-18,982
GBP/USD4 hoursn/a 1,17834.474,686 USD-2,545
DAX 401 hourn/a 3,03534.144,557 EUR-3,209
DAX 404 hoursn/a 98034.802,511 EUR-2,311
Gold5 minn/a 2,81829.951,186 EUR-591
Gold4 hoursn/a 1,08234.38858 EUR-237

Charts

Results by run

Net profitMax drawdown

The code

ProBuilder code, as tested

// ==============================================================
// Bollinger Band Trend Breakout
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Breakout
// Direction: Long & short
// Timeframe tested: Daily
// ==============================================================

DEFPARAM CumulateOrders = false

sma = Average[200](close)

30 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
  • 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 Band Trend 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 10 market and timeframe combinations. The best run was EUR/USD, Daily, with a profit factor of 1.20 over 481 trades.

How large was the drawdown?

The best run had a maximum drawdown of 8,200 USD at the tested position size, against a net result of 34,467 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

Reversal Pattern With Daily Pivot Levels

Also a breakout strategy.

1.21 PF · 1,506 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