The system buys when a stochastic-based close reversal agrees with a high breaking above the prior high plus the 21-period average range, and sells short when a low breaks below the prior low minus that range. Positions close when the states disagree.
Best run of 6. USD/JPY, Daily, spread 1, from run pf:2026-10-12-USDJPY-D.tsv:64.
| 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.43 | 462 | 42.21 | 2,148,720 USD | -425,400 |
| Nikkei 225 | Daily | n/a | 455 | 44.18 | 23,555 USD | -14,006 |
| Brent Crude | Daily | n/a | 204 | 42.16 | 13,158 EUR | -5,195 |
| DAX 40 | 30 min | n/a | 7,506 | 37.89 | 6,935 EUR | -5,588 |
| Gold | 30 min | n/a | 7,272 | 39.87 | 3,068 EUR | -2,149 |
| Gold | Daily | n/a | 549 | 34.61 | 1,449 EUR | -896 |
Charts
The code
// ============================================================== // Reversal Pattern With Average Range Breakout // ProRealAlgos Strategy Library | prorealalgos.com // Type: Breakout // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ONCE posrev = 0 ONCE sincebad = 1000 ONCE postwo = 0 ll = lowest[14](low) hh = highest[14](high)
49 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 6 market and timeframe combinations. The best run was USD/JPY, Daily, with a profit factor of 1.43 over 462 trades.
The best run had a maximum drawdown of 425,400 USD at the tested position size, against a net result of 2,148,720 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.