Join waitlist
Strategies / Mean reversion / Bollinger Band Candle Position Long

Bollinger Band Candle Position Long

The strategy buys when low plus 0.3 times the candle range sits below the lower Bollinger Band, provided low plus 0.6 times the body size is not below it. It sells the long when high minus 0.3 times the range rises above the upper band.

Mean reversionLong onlyIntradayEUR/USD15 min
n/aProfit factor
12,269Net profit USD
61.84%Win rate
1,457Trades
-10,282Max drawdown
8.42Avg trade

Best run of 23. EUR/USD, 15 min, spread 1, from run sweeps:2026-10-04-EURUSD-15m-opt.tsv:3.

Entry rules, long

  1. No buy is placed while a long position is open.

Exit rules

  1. Sell the long when high minus 0.3 times the range is above the upper Bollinger Band.

Test conditions

PeriodUp to 2026-10-04
InstrumentEUR/USD, 15 minutes
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-04

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
EUR/USDBest run15 minn/a 1,45761.8412,269 USD-10,282
USD/JPY4 hoursn/a 24666.67597,280 USD-173,880
Dow JonesDailyn/a 8282.9332,626 EUR-7,383
Nikkei 2251 hourn/a 64663.3129,742 USD-7,594
Silver15 minn/a 1,43162.7521,464 USD-10,535
Nikkei 2254 hoursn/a 18366.6720,426 USD-8,125
Nasdaq 100Dailyn/a 6985.5116,909 EUR-4,023
SilverDailyn/a 7766.2316,305 USD-8,777
DAX 40Dailyn/a 6669.7013,967 EUR-4,565
Nasdaq 1004 hoursn/a 21970.3211,693 EUR-4,425
Brent Crude4 hoursn/a 12767.727,950 EUR-2,767
DAX 404 hoursn/a 20662.627,822 EUR-3,303
Nasdaq 10015 minn/a 1,42665.087,148 EUR-4,768
FTSE 100Dailyn/a 8377.116,254 EUR-2,806
Nasdaq 10030 minn/a 1,44462.816,241 EUR-3,505
Nasdaq 1001 hourn/a 89763.216,028 EUR-3,945
S&P 500Dailyn/a 9386.025,634 EUR-964
FTSE 1004 hoursn/a 20867.795,117 EUR-2,764
S&P 5004 hoursn/a 22470.543,196 EUR-1,184
Brent Crude3 minn/a 1,40762.692,596 EUR-2,303
S&P 5001 hourn/a 89664.842,069 EUR-941
FTSE 1005 minn/a 1,43564.181,190 EUR-1,185
Gold4 hoursn/a 20667.481,129 EUR-727

Charts

Results by run

Top 10 of 23 runs. The full list is in the table above.

Net profitMax drawdown

The code

ProBuilder code, as tested

// ==============================================================
// Bollinger Band Candle Position Long
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Mean reversion
// Direction: Long only
// Timeframe tested: 15 minutes
// ==============================================================

DEFPARAM CumulateOrders = false

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

myRange = high - low
buyzone = low + myRange * 0.3
sellzone = high - myRange * 0.3
bodysize = ABS(close - open)
bsbuy = low + bodysize * 0.6

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 Bands
Read this firstKnown weaknesses3 points
  • No profit factor is available, because only sweep results exist for this strategy.
  • The maximum drawdown of 10,282 USD is large next to the net profit of 12,269 USD.
  • 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 Band Candle Position Long 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 23 market and timeframe combinations. The best run by trade count was EUR/USD, 15 minutes, with 1,457 trades.

How large was the drawdown?

The best run had a maximum drawdown of 10,282 USD at the tested position size, against a net result of 12,269 USD.

Does it trade long, short or both?

It only takes long trades.

Related

Strategies like this one

Bollinger Band Reversion To Basis

Uses the same indicator.

2.33 PF · 4,691 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

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