The strategy buys when the close is above its 200-bar average and Bollinger %b has stayed below 0.2 for three bars. It sells at market when %b rises above 0.8.
Best run of 15. Silver, 1 hour, spread 2, from run pf:2026-10-12-SILVER-1h.tsv:4.
| 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 | 9.01 | 834 | 65.95 | 564,439 USD | -20,088 |
| Brent Crude | 4 hours | 2.71 | 135 | 76.30 | 10,975 EUR | -1,860 |
| US Crude Oil | 4 hours | 2.09 | 173 | 72.83 | 10,277 EUR | -1,720 |
| Dow Jones | Daily | n/a | 145 | 75.86 | 20,722 EUR | -7,173 |
| EUR/USD | 10 min | n/a | 1,282 | 62.95 | 19,194 USD | -9,619 |
| Dow Jones | 4 hours | n/a | 104 | 78.85 | 15,364 EUR | -3,934 |
| DAX 40 | Daily | n/a | 133 | 69.17 | 11,467 EUR | -3,264 |
| Nikkei 225 | 4 hours | n/a | 229 | 68.12 | 9,431 USD | -7,293 |
| Nasdaq 100 | Daily | n/a | 105 | 74.29 | 8,826 EUR | -4,231 |
| Nasdaq 100 | 4 hours | n/a | 305 | 73.44 | 5,821 EUR | -2,652 |
| FTSE 100 | Daily | n/a | 109 | 77.06 | 3,616 EUR | -2,643 |
| S&P 500 | Daily | n/a | 154 | 83.12 | 3,542 EUR | -1,107 |
| GBP/USD | 1 hour | n/a | 1,220 | 66.15 | 2,740 USD | -1,900 |
| FTSE 100 | 1 hour | n/a | 842 | 69.60 | 2,666 EUR | -2,044 |
| S&P 500 | 4 hours | n/a | 300 | 72.33 | 1,923 EUR | -568 |
Charts
Top 10 of 15 runs. The full list is in the table above.
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // Bollinger Percent B Reversion // ProRealAlgos Strategy Library | prorealalgos.com // Type: Mean reversion // Direction: Long only // Timeframe tested: 1 hour // ============================================================== DEFPARAM CumulateOrders = false ONCE pb = 0.5 sma = Average[200](close) basis = Average[20](close) dev = STD[20](close) upper = basis + 2.0 * dev lower = basis - 2.0 * dev
16 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 15 market and timeframe combinations. The best run was Silver, 1 hour, with a profit factor of 9.01 over 834 trades.
The best run had a maximum drawdown of 20,088 USD at the tested position size, against a net result of 564,439 USD.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.