The system buys when price crosses above its 20-period average plus one standard deviation, and sells short on a cross below the minus one standard deviation level. Trades close when price crosses back through the average.
Best run of 8. USD/JPY, Daily, spread 1, from run pf:2026-10-13-USDJPY-D.tsv:3.
| Period | Up to 2026-10-13 |
| 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-13 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| USD/JPYBest run | Daily | 1.45 | 812 | 33.00 | 3,246,760 USD | -394,760 |
| USD/JPY | 1 hour | n/a | 8,748 | 31.97 | 857,850 USD | -226,920 |
| EUR/USD | Daily | n/a | 811 | 34.40 | 96,745 USD | -60,300 |
| Nikkei 225 | Daily | n/a | 694 | 36.02 | 45,691 USD | -17,569 |
| Silver | Daily | n/a | 764 | 32.72 | 39,515 USD | -23,784 |
| Brent Crude | Daily | n/a | 334 | 36.83 | 16,689 EUR | -11,736 |
| GBP/USD | Daily | n/a | 876 | 34.82 | 15,289 USD | -9,865 |
| Gold | Daily | n/a | 823 | 34.14 | 1,283 EUR | -932 |
Charts
The code
// ============================================================== // One Standard Deviation Band Breakout // ProRealAlgos Strategy Library | prorealalgos.com // Type: Breakout // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false mid = Average[20](close) sd = STD[20](close) up = mid + sd dn = mid - sd
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 8 market and timeframe combinations. The best run was USD/JPY, Daily, with a profit factor of 1.45 over 812 trades.
The best run had a maximum drawdown of 394,760 USD at the tested position size, against a net result of 3,246,760 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.