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.
Best run of 7. Gold, 30 min, spread 0.6, from run sweeps:2026-10-12-GOLD-30m-opt.tsv:35.
| Period | Up to 2026-10-12 |
| Instrument | Gold, 30 minutes |
| Spread | 0.6 points |
| Starting capital | 1,000,000 |
| Costs | Spread only. Commissions and overnight financing are not included. |
| Bars | Up to 200,000 bars, fewer where the instrument has less history |
| Last tested | 2026-10-12 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| GoldBest run | 30 min | n/a | 2,117 | 37.08 | 1,927 EUR | -610 |
| Nikkei 225 | Daily | n/a | 124 | 41.13 | 26,950 USD | -12,552 |
| US Crude Oil | Daily | n/a | 136 | 38.97 | 13,206 EUR | -6,434 |
| Brent Crude | Daily | n/a | 62 | 32.26 | 12,194 EUR | -7,864 |
| Nasdaq 100 | Daily | n/a | 137 | 37.23 | 6,309 EUR | -3,450 |
| Gold | 1 hour | n/a | 1,309 | 38.27 | 2,941 EUR | -768 |
| Gold | Daily | n/a | 137 | 40.15 | 2,837 EUR | -809 |
Charts
The code
// ============================================================== // 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
Questions
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.
It was tested on 7 market and timeframe combinations. The best run by trade count was Gold, 30 minutes, with 2,117 trades.
The best run had a maximum drawdown of 610 EUR at the tested position size, against a net result of 1,926 EUR.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.