Sells short when the close breaks below the lower 20-period Bollinger Band after band width has been at its tightest of the last 100 bars. Closes the short when the close rises above the 150-period average.
Best run of 2. Brent Crude, Daily, spread 5, from run pf:2026-10-11-BRENT-D.tsv:6.
| Period | Up to 2026-10-11 |
| Instrument | Brent Crude, Daily |
| Spread | 5 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-11 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| Brent CrudeBest run | Daily | 2.12 | 47 | 46.81 | 7,301 EUR | -5,524 |
| GBP/USD | Daily | 1.71 | 99 | 33.33 | 4,309 USD | -3,139 |
Charts
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // Bollinger Band Squeeze Breakout (short only) // ProRealAlgos Strategy Library | prorealalgos.com // Type: Breakout // Direction: Short only // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ONCE capital = 10000
20 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 2 market and timeframe combinations. The best run was Brent Crude, Daily, with a profit factor of 2.12 over 47 trades.
The best run had a maximum drawdown of 5,524 EUR at the tested position size, against a net result of 7,301 EUR.
It only takes short trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.