The system measures where price sits inside Bollinger Bands as %B, buying when %B drops below -0.2 and selling short when it rises above 1.2. Longs close at %B of 0.2 or higher, and shorts close at 1.0 or lower.
Best run of 7. Silver, 1 hour, spread 2, from run pf:2026-10-12-SILVER-1h.tsv:3.
| Period | Up to 2026-10-12 |
| Instrument | Silver, 1 hour |
| Spread | 2 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 |
|---|---|---|---|---|---|---|
| SilverBest run | 1 hour | 5.66 | 2,377 | 53.60 | 546,831 USD | -29,170 |
| Dow Jones | Daily | 3.24 | 119 | 57.98 | 13,492 EUR | -2,181 |
| EUR/USD | Daily | n/a | 102 | 62.75 | 32,695 USD | -13,660 |
| Nasdaq 100 | Daily | n/a | 78 | 55.13 | 6,087 EUR | -939 |
| DAX 40 | Daily | n/a | 126 | 58.73 | 5,210 EUR | -2,154 |
| FTSE 100 | Daily | n/a | 104 | 68.27 | 2,751 EUR | -820 |
| S&P 500 | Daily | n/a | 107 | 55.14 | 1,470 EUR | -467 |
Charts
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // Percent B Threshold Reversion // ProRealAlgos Strategy Library | prorealalgos.com // Type: Mean reversion // Direction: Long & short // Timeframe tested: 1 hour // ============================================================== DEFPARAM CumulateOrders = false ONCE bbr = 0.5 basis = Average[21](close) dev = 2.0 * STD[21](close) upper = basis + dev lower = basis - dev
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 7 market and timeframe combinations. The best run was Silver, 1 hour, with a profit factor of 5.66 over 2,377 trades.
The best run had a maximum drawdown of 29,170 USD at the tested position size, against a net result of 546,830 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.