The strategy buys when Bollinger Bands move back outside Keltner Channels after a squeeze and a rising linear regression momentum value is positive, and sells short on the mirror setup. Each trade uses a 4% stop loss and a 6.67% profit target.
Best run of 7. Gold, Daily, spread 0.6, from run pf:2026-10-12-GOLD-D.tsv:10.
| Period | Up to 2026-10-12 |
| Instrument | Gold, Daily |
| 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 | Daily | 1.45 | 619 | 42.00 | 1,924 EUR | -307 |
| USD/JPY | Daily | n/a | 561 | 41.35 | 768,080 USD | -569,940 |
| Silver | 4 hours | n/a | 1,234 | 39.55 | 26,034 USD | -7,475 |
| Silver | Daily | n/a | 508 | 40.35 | 19,736 USD | -5,212 |
| Dow Jones | 4 hours | n/a | 410 | 41.95 | 6,503 EUR | -5,778 |
| Brent Crude | Daily | n/a | 220 | 44.55 | 6,323 EUR | -5,194 |
| Gold | 4 hours | n/a | 1,339 | 40.48 | 886 EUR | -711 |
Charts
The code
// ============================================================== // Squeeze Release Momentum Breakout // ProRealAlgos Strategy Library | prorealalgos.com // Type: Volatility // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false src = TotalPrice maa = Average[12](src) mab = Average[16](src) rangema = Average[16](high - low) dev = 2.0 * STD[12](src) upperbb = maa + dev lowerbb = maa - dev upperkc = mab + rangema * 1.5 lowerkc = mab - rangema * 1.5
33 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 was Gold, Daily, with a profit factor of 1.45 over 619 trades.
The best run had a maximum drawdown of 307 EUR at the tested position size, against a net result of 1,924 EUR.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.