The system uses swing highs and lows of five bars to build support and resistance levels, then tracks a trend from price against them. It buys when the trend is up and close breaks the last swing high, and sells short on the mirror condition.
Best run of 9. USD/JPY, 30 min, spread 1, from run sweeps:2026-10-10-USDJPY-30m-opt.tsv:9.
| Period | Up to 2026-10-10 |
| Instrument | USD/JPY, 30 minutes |
| 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 | 30 min | n/a | 4,654 | 34.87 | 299,620 USD | -234,990 |
| USD/JPY | Daily | n/a | 311 | 37.30 | 2,423,510 USD | -704,730 |
| USD/JPY | 1 hour | n/a | 3,265 | 36.75 | 854,640 USD | -269,140 |
| EUR/USD | Daily | n/a | 311 | 40.19 | 127,564 USD | -48,332 |
| US Crude Oil | Daily | n/a | 274 | 40.88 | 20,379 EUR | -9,425 |
| GBP/USD | Daily | n/a | 313 | 39.94 | 20,083 USD | -6,236 |
| Brent Crude | Daily | n/a | 128 | 37.50 | 9,705 EUR | -9,133 |
| Gold | 4 hours | n/a | 747 | 38.96 | 2,257 EUR | -1,478 |
| Gold | Daily | n/a | 307 | 36.48 | 2,104 EUR | -1,471 |
Charts
The code
// ============================================================== // Fractal Support Resistance Breakout // ProRealAlgos Strategy Library | prorealalgos.com // Type: Breakout // Direction: Long & short // Timeframe tested: 30 minutes // ============================================================== DEFPARAM CumulateOrders = false ONCE lvalc = 0 ONCE lvalr = 0 ONCE hvalc = 0 ONCE hvalr = 0 ONCE haveh = 0 ONCE havel = 0 ONCE trend = 0 len = 21 myH = 0
63 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 9 market and timeframe combinations. The best run by trade count was USD/JPY, 30 minutes, with 4,654 trades.
The best run had a maximum drawdown of 234,990 USD at the tested position size, against a net result of 299,620 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.