The system buys when the close sits between the 1 and 2 standard deviation upper Bollinger Bands, and sells short between the matching lower bands. Positions close when price moves back through the 20-period average.
Best run of 8. USD/JPY, Daily, spread 1, from run pf:2026-10-10-USDJPY-D.tsv:8.
| Period | Up to 2026-10-10 |
| Instrument | USD/JPY, Daily |
| Spread | 1 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-10 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| USD/JPYBest run | Daily | 1.42 | 801 | 32.96 | 3,022,010 USD | -409,930 |
| USD/JPY | 1 hour | n/a | 8,576 | 31.42 | 764,170 USD | -236,680 |
| EUR/USD | Daily | n/a | 806 | 34.37 | 100,231 USD | -57,353 |
| Nikkei 225 | Daily | n/a | 693 | 35.06 | 42,156 USD | -17,352 |
| Silver | Daily | n/a | 759 | 32.54 | 37,783 USD | -23,784 |
| Brent Crude | Daily | n/a | 330 | 35.76 | 15,484 EUR | -11,465 |
| GBP/USD | Daily | n/a | 867 | 34.83 | 14,513 USD | -10,776 |
| Gold | Daily | n/a | 813 | 33.33 | 1,013 EUR | -895 |
Charts
The code
// ============================================================== // Double Bollinger Band Zone // ProRealAlgos Strategy Library | prorealalgos.com // Type: Volatility // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false basis = Average[20](close) dev = STD[20](close) upperone = basis + dev * 1 lowerone = basis - dev * 1 uppertwo = basis + dev * 2 lowertwo = basis - dev * 2
17 more lines: the entry and exit rules.
Setup
USD/JPY had no history beyond the standard run, so both runs used 12,000 bars.
| Bars available | 12,000 |
| Net, standard 200,000-bar run | 3,022,010.00 USD |
| Net, long run | 3,019,720.00 USD |
| Net on the older data alone | -2,290.00 USD |
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 8 market and timeframe combinations. The best run was USD/JPY, Daily, with a profit factor of 1.42 over 801 trades.
The best run had a maximum drawdown of 409,930 USD at the tested position size, against a net result of 3,022,010 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.