XAUUSD 4h Bollinger band breakout strategy
Buy when the candle closes above the upper Bollinger band(20, 2), only when volatility is higher than usual. XAUUSD 4-hour candles, long only, 1.5R target.
Found by searching 792 variants of 20 setups on XAUUSD (Gold), then tested once on the last 12 months (16 November 2025 to 16 November 2026), which were locked away during the search. Long only, about 25 trades a year. It only takes signals in the London session (08:00 to 17:00 UTC).
- Style
- Breakout
- Timeframe
- 4 hours
- Test period
- Jan 2020 to Nov 2026
- Tested
- 16 November 2026
- Market
- XAUUSD (spot gold)
Return
+94.9%
Profit factor
1.97
Win rate
58.3%
Max drawdown
−4.66%
Prompt for TES
Tessera's AI strategy coach builds and backtests it
Bollinger band breakout on XAUUSD 4-hour candles, long trades only (no shorts): buy when the candle closes above the upper Bollinger band(20, 2). Only take the trade when the daily ATR(14) is above the daily ATR(100). Only take signals on candles that open between 08:00 and 17:00 UTC (the London session). Enter at the close of the signal candle. Stop 0.25 ATR(14) beyond the signal candle's low. Take profit at 1.5R. Risk 1% of the account per trade with typical costs. Backtest it from 2020-01-24 to 2026-11-16.
- 1Copy the prompt
- 2Backtest it free
- 3Run it as a bot
Free account, no card. The button copies the prompt for you. Run it as a bot on your broker with Launchpad, from $39 a month.
Is the Bollinger band breakout strategy profitable on XAUUSD?
In this backtest, yes. On XAUUSD 4-hour candles from Jan 2020 to Nov 2026 it made +94.8% after costs, with a profit factor of 1.97, a 58.3% win rate and a maximum drawdown of 4.66%, over 168 trades.
It held up on an unseen period it was never tuned on (+78.8% over the last 645 days), and the last 12 months, locked away during the search, were strong (+13.78% on 34 trades). Plan for less live: with half the edge, a typical year is +6.3%.
A gold trading strategy for XAUUSD
XAUUSD is spot gold priced in US dollars. This strategy looks for a close outside the Bollinger bands on 4-hour candles and trades only long, with up to 20× leverage.
About 25 trades a year, so expect a few trades a month. It suits a personal account better than a prop firm challenge with a deadline.
Prop firm results
Tested against

Verdict
Can pass prop firm challenges
We ran this strategy's own trades through 4 challenges (FTMO 1-Step, FTMO 2-Step, The5ers 1-Step, Topstep 50K), starting a new one every week of the backtest and trying several risk levels per trade.
- Pass, fail and ran-out-of-time rates for every firm
- The risk per trade with the best pass rate
- Median days to pass and challenges per pass
Create a free account, then open this strategy in the Strategy Lab hub to see the pass rates, the risk per trade to use and how long challenges took to pass.
Read nextProp firms that allow algo tradingFTMO algo trading rulesTopstep algo trading rulesProp firm consistency rule
Backtest results
Return
+94.9%
Jan 2020 to Nov 2026
Profit factor
1.97
Win rate
58.3%
Max drawdown
−4.66%
Trades
168
about 25 a year
Last 12 months
+13.78%
Nov 2025 to Nov 2026 · 34 trades
| Net profit | +$9,484.90 ($10,000 → $19,484.90) |
|---|---|
| Average trade | +0.47R / +$56.46 |
| Total R | +79.2R |
| Profit factor in R | 2.09 |
| Average win / loss | +$196.18 (+1.55R) / −$139.16 (−1.04R) |
| Largest win / loss | +$646.71 / −$471.34 |
| Targets / stops hit | 98 / 70 |
|---|---|
| Longest win / loss streak | 15 / 6 |
| Median hold | 4 candles (4 hours) |
| Max drawdown | −$948.27 (−7.50R) |
| Buy and hold, same dates | +146.0% |
| Signals | 318 (150 other side or filter) |
XAUUSD 4-hour candles, 24 January 2020 to 16 November 2026, starting with $10,000. 1% risk per trade, up to 20× leverage. Costs are included in every figure. Spot metal bars.
Read nextWhat is a good profit factor?Profit factor calculatorHow many trades a backtest needs
How it was proven
1. A wide search, with the last 12 months locked away
Strategy Lab searched 792 variants on XAUUSD 4-hour candles, across setups, settings, targets, a 200 EMA trend filter and long or short sides. The last 12 months were kept locked away during the search, then the top 5 were tested on it once.
- 792Variants searched
- 102Passed the search bar: 40+ trades, profit factor 1.2+, return at least the drawdown, both halves profitable
- 102Had profitable neighbouring settings, so not a one-setting fluke
- 5Top 5 tested once on the locked last 12 months
- 5Stayed profitable on the locked last 12 months. This is the strongest
| Setup | Target | Filter | Side | Search period | Last 12 months | |
|---|---|---|---|---|---|---|
| Bollinger band breakout 20 | 1.5R | High volatility only | Longs only | +71.25% | +13.78% | This strategy |
| Bollinger band breakout 14 | 1.5R | 200 EMA trend | Longs only | +137.66% | +8.75% | Also held |
| Bollinger band breakout 14 | 1.5R | High volatility only | Longs only | +67.05% | +6.47% | Also held |
| Bollinger band breakout 14 | 2R | 200 EMA trend | Longs only | +188.99% | +11.61% | Also held |
| Bollinger band breakout 14 | 2R | High volatility only | Longs only | +79.67% | +7.75% | Also held |
Search period
24 Jan 2020 to 16 Nov 2025
- Return
- +71.25%
- Profit factor
- 2.09
- Trades
- 134
- Max drawdown
- −8.81%
Last 12 months, locked
16 Nov 2025 to 16 Nov 2026, tested once
- Return
- +13.78%
- Profit factor
- 1.73
- Trades
- 34
- Max drawdown
- −4.66%
The locked last 12 months made +13.78% with a profit factor of 1.73, on data the search never saw. That's the honest test of a searched strategy. Even so, paper trade it before a live account.
2. An unseen period: held up
Separately, Strategy Lab's walk-forward check kept the last 30% of the history (645 days, from 25 Sept 2024) unseen. It did as well after the cut as before it.
Before the cut
70% of the history
- Return
- +16.00%
- Profit factor
- 1.30
- Trades
- 93
- Win rate
- 49.5%
Unseen period
Last 645 days
- Return
- +78.85%
- Profit factor
- 2.82
- Trades
- 75
- Win rate
- 69.3%
3. Robustness: stable
The same strategy re-run on noisy copies of the data, with costs halved and doubled, and with the stop assumed to hit first inside every candle.
Price feed noise (10 runs)
Return +75.0% to +126.6%, 87% of trades unchanged
Half costs
+104.8%
Double costs
+76.4%
Stop hit first inside a candle
+90.1%
Unseen period
+78.8% over 645 days
Last 12 months (locked)
+13.78%, profit factor 1.73 on 34 trades
Recent results
Traded results
Updated
No trades in the last 30 days
It only trades when its setup appears, so quiet weeks are normal.
No trades in the last 7 days
It only trades when its setup appears, so quiet weeks are normal.
Results shown are hypothetical, calculated from the strategy's rules on market data. No real money is at risk. Past results don't guarantee future results. Not financial advice.
The rules
Bollinger bands sit two standard deviations above and below a 20-period average, so a close outside them means price has moved further than it usually does. This strategy treats that as the start of a move, not an extreme to fade: it trades in the direction of the close.
It only trades when the daily ATR(14) is above the daily ATR(100), meaning the market is moving more than it usually does. Quiet periods are skipped. It only buys and never shorts, so it makes its money when Gold rises. Signals only count on 4-hour candles that open between 08:00 and 17:00 UTC, the London session, though a trade can run past 17:00.
It enters at the close of the signal candle. The stop goes 0.25 ATR(14) beyond the signal candle's low, so a failed signal costs a small, fixed amount, and the target is 1.5 times that risk. There's no trailing stop or time exit. Each trade risks 1% of the account with up to 20× leverage, and every result includes XAUUSD's typical spread (0.0085% of price, swap 0.02% / 0.005% a night).
| Setup | The candle closes above the upper Bollinger band(20, 2) for longs, below the lower band for shorts |
|---|---|
| Filter | Only when the daily ATR(14) is above the daily ATR(100) (higher than usual volatility) |
| Session | Signals only on candles that open between 08:00 and 17:00 UTC (the London session). Trades can run past 17:00 |
| Entry | At the close of the signal candle |
| Stop | 0.25 ATR(14) beyond the signal candle's low |
| Target | 1.5R (1.5 times the distance from entry to stop) |
| Exit | Stop or target only: no trailing stop, break-even or time exit |
| Direction | Long only |
| Risk | 1% of the account per trade, up to 20× leverage |
| Costs | XAUUSD's typical spread (0.0085% of price, swap 0.02% / 0.005% a night) |
Read nextAlgorithmic trading strategies explainedBest AI trading strategy buildersBest no-code backtesting software
What to expect
Strategy Lab reshuffled this strategy's own trades 1,000 times, in blocks so losing streaks stay together, to show a range of next-12-month outcomes at about 29 trades a year. Plan with half the edge: live results usually keep about half of what a backtest shows.
See the range before you trade it
A bad year, a typical year and a good year, the chance of a losing year and the typical worst drop, as tested and with half the edge. Create a free account and open this strategy in the Strategy Lab hub.
In the backtest, the longest stretch below a previous high lasted 944 days (18 Aug 2020 to 20 Mar 2023).
Year by year
Return by year
- 2020*−6.55%11 trades
- 2022+8.26%26 trades
- 2023+4.29%17 trades
- 2024+13.60%43 trades
- 2025+50.13%49 trades
- 2026*+8.28%22 trades
*Part year: 2020 from 11 Aug 2020 to 31 Dec 2020, 2026 from 1 Jan 2026 to 2 Jul 2026.
Profit and loss by month, in dollars
| Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2020 | -169 | -276 | -112 | -98 | ||||||||
| 2022 | 224 | 64 | -67 | -100 | -98 | 72 | 554 | 123 | ||||
| 2023 | -64 | -79 | 627 | 30 | -81 | |||||||
| 2024 | 48 | 35 | 362 | 689 | -247 | -10 | -157 | 329 | 168 | 217 | ||
| 2025 | 347 | 795 | 388 | 572 | 318 | 629 | 1365 | 781 | 813 | |||
| 2026 | 1411 | -398 | 1139 | -741 | 79 |
Grey months had no trades. Hover a month for its trades, wins and losses.
Where it fails
- Long only: it makes money when Gold trends up and sits out or loses in sell-offs.
- Low frequency: about 25 trades a year, so a prop challenge target usually takes months.
Every trade
| # | Closed | Exit | Side | Entry | Exit price | Candles | P&L | Equity |
|---|---|---|---|---|---|---|---|---|
| 168 | 8 Jul 2026 | Stop | Long | 4,117.96 | 4,046.76 | 24 | −$203.57 | $19,485 |
| 167 | 3 Jul 2026 | Target | Long | 4,118.55 | 4,161.95 | 3 | +$282.88 | $19,688 |
| 166 | 20 Apr 2026 | Stop | Long | 4,866.95 | 4,773.12 | 3 | −$471.34 | $19,406 |
| 165 | 17 Apr 2026 | Target | Long | 4,810.07 | 4,881.75 | 18 | +$275.11 | $19,877 |
| 164 | 15 Apr 2026 | Stop | Long | 4,841.71 | 4,801.97 | 4 | −$204.79 | $19,602 |
| 163 | 7 Apr 2026 | Target | Long | 4,706.39 | 4,797.43 | 1 | +$290.94 | $19,807 |
| 162 | 2 Apr 2026 | Stop | Long | 4,683.74 | 4,591.25 | 9 | −$209.68 | $19,516 |
| 161 | 2 Apr 2026 | Stop | Long | 4,786.85 | 4,703.14 | 3 | −$208.77 | $19,725 |
| 160 | 2 Apr 2026 | Stop | Long | 4,755.65 | 4,697.45 | 4 | −$212.64 | $19,934 |
| 159 | 11 Mar 2026 | Stop | Long | 5,228.68 | 5,148.63 | 8 | −$207.10 | $20,147 |
| 158 | 2 Mar 2026 | Target | Long | 5,383.46 | 5,406.64 | 1 | +$294.84 | $20,354 |
| 157 | 2 Mar 2026 | Target | Long | 5,251.02 | 5,387.25 | 2 | +$646.71 | $20,059 |
| 156 | 2 Mar 2026 | Target | Long | 5,242.17 | 5,387.25 | 3 | +$404.91 | $19,412 |
| 155 | 24 Feb 2026 | Stop | Long | 5,197.36 | 5,133.78 | 6 | −$198.44 | $19,007 |
| 154 | 24 Feb 2026 | Stop | Long | 5,215.66 | 5,169.44 | 2 | −$199.89 | $19,206 |
| 153 | 21 Jan 2026 | Target | Long | 4,760.80 | 4,820.46 | 2 | +$275.75 | $19,406 |
| 152 | 20 Jan 2026 | Target | Long | 4,732.31 | 4,769.58 | 3 | +$279.41 | $19,130 |
| 151 | 20 Jan 2026 | Target | Long | 4,675.20 | 4,709.92 | 4 | +$267.77 | $18,851 |
| 150 | 16 Jan 2026 | Stop | Long | 4,621.95 | 4,570.45 | 24 | −$209.06 | $18,583 |
| 149 | 12 Jan 2026 | Target | Long | 4,583.62 | 4,601.46 | 1 | +$271.58 | $18,792 |
Show all 168 trades
Loading trades…
Read nextcTrader trading bot without codingBest trading journal for algo tradersBest trading journal for TradingView
Run it as a bot
Once the strategy holds up, Launchpad runs it on paper, then live on cTrader, Liquid Brokers, Binance Futures or Hyperliquid, with the stop and target attached to every order.
- Paper:live prices, no broker
- Copilot:approve each trade in Telegram or the app
- Autopilot:trades inside your daily limits
Variations to test
Setting 14
Another variant that held up. In the search it made +67.0%, and +6.5% on the locked last 12 months.
Bollinger band breakout on XAUUSD 4-hour candles, long trades only (no shorts): buy when the candle closes above the upper Bollinger band(14, 2). Only take the trade when the daily ATR(14) is above the daily ATR(100). Only take signals on candles that open between 08:00 and 17:00 UTC (the London session). Enter at the close of the signal candle. Stop 0.25 ATR(14) beyond the signal candle's low. Take profit at 1.5R. Risk 1% of the account per trade with typical costs. Backtest it from 2020-01-24 to 2026-11-16.
Backtest this variation freeThe button copies this prompt. Paste it into TES and Strategy Lab builds and backtests it.
Setting 14 and 2R target
Another variant that held up. In the search it made +79.7%, and +7.8% on the locked last 12 months.
Bollinger band breakout on XAUUSD 4-hour candles, long trades only (no shorts): buy when the candle closes above the upper Bollinger band(14, 2). Only take the trade when the daily ATR(14) is above the daily ATR(100). Only take signals on candles that open between 08:00 and 17:00 UTC (the London session). Enter at the close of the signal candle. Stop 0.25 ATR(14) beyond the signal candle's low. Take profit at 2R. Risk 1% of the account per trade with typical costs. Backtest it from 2020-01-24 to 2026-11-16.
Backtest this variation freeThe button copies this prompt. Paste it into TES and Strategy Lab builds and backtests it.
Backtests are hypothetical: they apply fixed rules to historical data with assumed costs and fills. Past results don't predict future results, and leveraged trading carries a high risk of loss. This is an educational description, not a recommendation.