The strategy trades after price sweeps a pivot low or high by 0.6 times ATR(14) and closes back past it, on the matching side of EMA(200). Stops sit 0.5 times ATR(14) beyond the pivot, and targets are 2 times the risk.
Best run of 6. S&P 500, Daily, spread 1, from run sweeps:2026-10-12-USA500-D-opt.tsv:17.
| Period | Up to 2026-10-12 |
| Instrument | S&P 500, 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-12 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| S&P 500Best run | Daily | n/a | 266 | 31.58 | 1,085 EUR | -924 |
| Nikkei 225 | Daily | n/a | 159 | 45.91 | 29,062 USD | -8,585 |
| Nasdaq 100 | Daily | n/a | 188 | 34.57 | 10,252 EUR | -3,042 |
| Dow Jones | Daily | n/a | 196 | 35.71 | 10,250 EUR | -4,006 |
| DAX 40 | Daily | n/a | 229 | 32.75 | 7,209 EUR | -7,050 |
| USD/JPY | Daily | n/a | 264 | 30.68 | 5,400 USD | -4,290 |
Charts
The code
// ============================================================== // Pivot Sweep and Reclaim // ProRealAlgos Strategy Library | prorealalgos.com // Type: Pattern // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ONCE havepl = 0 ONCE haveph = 0 ONCE lastpl = 0 ONCE lastph = 0 ONCE havesweeplow = 0 ONCE havesweephigh = 0 ONCE sweeplowbar = 0 ONCE sweephighbar = 0 ema = ExponentialAverage[200](close) myAtr = AverageTrueRange[14](close)
61 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 6 market and timeframe combinations. The best run by trade count was S&P 500, Daily, with 266 trades.
The best run had a maximum drawdown of 924 EUR at the tested position size, against a net result of 1,085 EUR.
It trades both long and short.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.