Buys when price sweeps below the last swing low and closes back above it during an uptrend, with SMA(20) above SMA(50). Shorts the mirror setup at the last swing high, with a stop at the signal bar high and a target at 3 times risk.
Best run of 11. US Crude Oil, 10 min, spread 3, from run sweeps:2026-10-03-CRUDE-10m-opt.tsv:5.
| Period | Up to 2026-10-03 |
| Instrument | US Crude Oil, 10 minutes |
| Spread | 3 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 |
|---|---|---|---|---|---|---|
| US Crude OilBest run | 10 min | n/a | 387 | 23.51 | 2,050 EUR | -1,462 |
| Dow Jones | 4 hours | n/a | 28 | 28.57 | 6,808 EUR | -2,773 |
| Dow Jones | Daily | n/a | 11 | 54.55 | 4,439 EUR | -1,327 |
| Dow Jones | 3 min | n/a | 292 | 22.26 | 3,622 EUR | -3,063 |
| Nikkei 225 | Daily | n/a | 13 | 30.77 | 3,391 USD | -2,760 |
| DAX 40 | Daily | n/a | 18 | 16.67 | 2,749 EUR | -1,716 |
| Nasdaq 100 | 4 hours | n/a | 94 | 25.53 | 2,689 EUR | -1,018 |
| DAX 40 | 1 hour | n/a | 260 | 26.15 | 2,242 EUR | -1,858 |
| US Crude Oil | 3 min | n/a | 317 | 19.24 | 1,203 EUR | -765 |
| DAX 40 | 5 min | n/a | 328 | 22.56 | 1,198 EUR | -760 |
| S&P 500 | Daily | n/a | 30 | 36.67 | 978 EUR | -506 |
Charts
Top 10 of 11 runs. The full list is in the table above.
The code
// ============================================================== // Swing Level Sweep Reversal // ProRealAlgos Strategy Library | prorealalgos.com // Type: Pattern // Direction: Long & short // Timeframe tested: 10 minutes // ============================================================== DEFPARAM CumulateOrders = false ONCE hassupply = 0 ONCE supplytop = 0 ONCE hasdemand = 0 ONCE demandbottom = 0 mafast = Average[20](close) maslow = Average[50](close) myAtr = AverageTrueRange[14](close)
33 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 11 market and timeframe combinations. The best run by trade count was US Crude Oil, 10 minutes, with 387 trades.
The best run had a maximum drawdown of 1,462 EUR at the tested position size, against a net result of 2,050 EUR.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.