The strategy trades retests of recent swing zones, going long when a bullish candle closes inside a zone from a swing low and short on the mirror setup. Each trade uses a stop at 7.5 times ATR(14) and a target 1.5 times that distance.
Best run of 20. Gold, 1 hour, spread 0.6, from run pf:2026-10-04-GOLD-1h.tsv:2.
| Period | Up to 2026-10-04 |
| Instrument | Gold, 1 hour |
| Spread | 0.6 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 |
|---|---|---|---|---|---|---|
| GoldBest run | 1 hour | 1.50 | 489 | 42.13 | 4,395 EUR | -869 |
| USD/JPY | Daily | n/a | 1,611 | 41.96 | 70,870 USD | -25,480 |
| Nikkei 225 | 30 min | n/a | 764 | 42.15 | 42,920 USD | -18,257 |
| Nikkei 225 | 1 hour | n/a | 344 | 42.73 | 30,394 USD | -22,631 |
| Dow Jones | 30 min | n/a | 347 | 44.67 | 22,154 EUR | -8,575 |
| Dow Jones | 1 hour | n/a | 191 | 43.46 | 20,495 EUR | -10,034 |
| US Crude Oil | Daily | n/a | 36 | 55.56 | 19,362 EUR | -6,528 |
| Nasdaq 100 | 15 min | n/a | 803 | 42.34 | 15,997 EUR | -6,957 |
| DAX 40 | 4 hours | n/a | 89 | 43.82 | 14,763 EUR | -5,597 |
| Brent Crude | 10 min | n/a | 599 | 45.08 | 12,441 EUR | -6,360 |
| Brent Crude | 15 min | n/a | 679 | 42.56 | 9,571 EUR | -5,819 |
| FTSE 100 | 4 hours | n/a | 88 | 46.59 | 9,013 EUR | -1,627 |
| DAX 40 | 1 hour | n/a | 447 | 41.83 | 8,012 EUR | -7,607 |
| Brent Crude | 1 hour | n/a | 259 | 39.77 | 7,220 EUR | -4,466 |
| Nasdaq 100 | 10 min | n/a | 685 | 40.00 | 6,802 EUR | -6,709 |
| US Crude Oil | 10 min | n/a | 569 | 41.65 | 6,355 EUR | -6,284 |
| Nasdaq 100 | 1 min | n/a | 468 | 41.24 | 3,036 EUR | -2,666 |
| Gold | Daily | n/a | 51 | 45.10 | 1,848 EUR | -1,249 |
| S&P 500 | 2 min | n/a | 458 | 40.17 | 929 EUR | -612 |
| S&P 500 | 3 min | n/a | 484 | 41.32 | 835 EUR | -812 |
Charts
Top 10 of 20 runs. The full list is in the table above.
The code
// ============================================================== // Pivot Zone Retest // ProRealAlgos Strategy Library | prorealalgos.com // Type: Pattern // Direction: Long & short // Timeframe tested: 1 hour // ============================================================== DEFPARAM CumulateOrders = false ONCE bullh = 0 ONCE bulll = 0 ONCE hasbull = 0 ONCE bearh = 0 ONCE bearl = 0 ONCE hasbear = 0 myAtr = AverageTrueRange[14](close)
46 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 20 market and timeframe combinations. The best run was Gold, 1 hour, with a profit factor of 1.50 over 489 trades.
The best run had a maximum drawdown of 869 EUR at the tested position size, against a net result of 4,395 EUR.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.