The system buys a second break above a swing high's breakout level within 20 bars, and sells the mirror setup short. The stop sits below the lowest low since the first break, and the target is 1, 2 or 3 times the risk.
Best run of 19. USD/JPY, Daily, spread 1, from run pf:2026-10-04-USDJPY-D.tsv:15.
| Period | Up to 2026-10-04 |
| 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-04 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| USD/JPYBest run | Daily | 1.84 | 1,389 | 40.89 | 177,390 USD | -5,070 |
| Silver | 5 min | n/a | 1,501 | 26.52 | 40,485 USD | -17,709 |
| Silver | 3 min | n/a | 1,474 | 27.14 | 39,469 USD | -14,468 |
| Silver | 4 hours | n/a | 252 | 32.14 | 34,945 USD | -19,257 |
| Nikkei 225 | Daily | n/a | 148 | 35.14 | 33,621 USD | -18,058 |
| Silver | 30 min | n/a | 1,644 | 28.83 | 31,321 USD | -16,946 |
| Silver | 1 hour | n/a | 833 | 29.53 | 29,966 USD | -17,793 |
| Silver | 2 min | n/a | 1,446 | 29.25 | 28,022 USD | -17,879 |
| Dow Jones | 1 hour | n/a | 323 | 34.98 | 20,283 EUR | -10,803 |
| Nikkei 225 | 1 min | n/a | 1,626 | 29.40 | 18,373 USD | -10,711 |
| Brent Crude | Daily | n/a | 50 | 44.00 | 14,877 EUR | -11,848 |
| Dow Jones | 15 min | n/a | 1,093 | 31.75 | 14,517 EUR | -11,174 |
| DAX 40 | 15 min | n/a | 1,464 | 31.08 | 11,837 EUR | -3,624 |
| Nasdaq 100 | 10 min | n/a | 1,433 | 31.89 | 11,042 EUR | -7,853 |
| S&P 500 | Daily | n/a | 244 | 34.84 | 3,541 EUR | -1,306 |
| Gold | 1 hour | n/a | 847 | 31.88 | 2,804 EUR | -904 |
| Gold | 30 min | n/a | 1,304 | 32.13 | 2,208 EUR | -1,155 |
| Gold | 4 hours | n/a | 272 | 33.46 | 2,039 EUR | -1,422 |
| Gold | Daily | n/a | 190 | 33.68 | 1,661 EUR | -1,230 |
Charts
Top 10 of 19 runs. The full list is in the table above.
The code
// ============================================================== // Second Breakout Candle Reward Ratio // ProRealAlgos Strategy Library | prorealalgos.com // Type: Breakout // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ONCE lph = 0 ONCE hasph = 0 ONCE lpl = 0 ONCE haspl = 0 ONCE lstage = 0 ONCE lhtwo = 0 ONCE lpbl = 0 ONCE lbars = 0 ONCE sstage = 0 ONCE sltwo = 0 ONCE sbh = 0 ONCE sbars = 0 myAtr = AverageTrueRange[14](close) body = abs(close - open) barrange = high - low avgbody = Average[50](body) avgrange = Average[100](barrange) recentbody = Average[10](body) recentrange = Average[10](barrange)
123 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 | 177,390.00 USD |
| Net, long run | 177,390.00 USD |
| Net on the older data alone | 0.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 19 market and timeframe combinations. The best run was USD/JPY, Daily, with a profit factor of 1.84 over 1,389 trades.
The best run had a maximum drawdown of 5,070 USD at the tested position size, against a net result of 177,390 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.