Tracks confirmed pivot highs and lows, each 5 bars late. Sells short when price sweeps above the pivot high and closes back below it on volume above 1.2 times its 20-bar average, and buys on the mirror sweep below a pivot low.
Best run of 12. GBP/USD, 30 min, spread 1.5, from run sweeps:2026-10-03-GBPUSD-30m-opt.tsv:2.
| Period | Up to 2026-10-03 |
| Instrument | GBP/USD, 30 minutes |
| Spread | 1.5 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-03 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| GBP/USDBest run | 30 min | n/a | 2,199 | 53.57 | 9,342 USD | -2,592 |
| USD/JPY | Daily | n/a | 36 | 61.11 | 663,270 USD | -463,930 |
| USD/JPY | 4 hours | n/a | 186 | 55.38 | 397,790 USD | -284,830 |
| EUR/USD | 5 min | n/a | 1,294 | 51.47 | 61,883 USD | -27,427 |
| Silver | 1 hour | n/a | 835 | 51.74 | 45,442 USD | -15,887 |
| Dow Jones | 1 hour | n/a | 446 | 60.31 | 26,632 EUR | -9,699 |
| Nikkei 225 | 2 min | n/a | 1,247 | 55.01 | 21,096 USD | -11,812 |
| US Crude Oil | Daily | n/a | 27 | 74.07 | 11,571 EUR | -6,974 |
| DAX 40 | 5 min | n/a | 1,381 | 53.87 | 7,366 EUR | -6,315 |
| DAX 40 | 2 min | n/a | 1,199 | 51.88 | 3,349 EUR | -3,211 |
| FTSE 100 | 4 hours | n/a | 164 | 59.76 | 3,065 EUR | -2,382 |
| FTSE 100 | 1 hour | n/a | 670 | 50.75 | 2,744 EUR | -2,669 |
Charts
Top 10 of 12 runs. The full list is in the table above.
The code
// ============================================================== // Pivot Level Sweep And Reclaim // ProRealAlgos Strategy Library | prorealalgos.com // Type: Pattern // Direction: Long & short // Timeframe tested: 30 minutes // ============================================================== DEFPARAM CumulateOrders = false ONCE res = 0 ONCE sup = 0 ONCE hasres = 0 ONCE hassup = 0
26 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 12 market and timeframe combinations. The best run by trade count was GBP/USD, 30 minutes, with 2,199 trades.
The best run had a maximum drawdown of 2,592 USD at the tested position size, against a net result of 9,342 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.