Buys when a new pivot low is below the prior pivot low and the close clears the last pivot high, and sells short on the mirrored setup. Each trade uses a stop at 1.5 ATR(14) and a target at 3 ATR(14).
Best run of 7. Nasdaq 100, 4 hours, spread 3, from run sweeps:2026-10-11-NAS100-4h-opt.tsv:80.
| Period | Up to 2026-10-11 |
| Instrument | Nasdaq 100, 4 hours |
| 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-11 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| Nasdaq 100Best run | 4 hours | n/a | 237 | 33.76 | 4,261 EUR | -1,328 |
| Nikkei 225 | Daily | n/a | 70 | 48.57 | 11,657 USD | -2,317 |
| Silver | 4 hours | n/a | 157 | 38.22 | 10,896 USD | -5,841 |
| DAX 40 | 4 hours | n/a | 174 | 35.63 | 2,785 EUR | -1,349 |
| US Crude Oil | Daily | n/a | 65 | 40.00 | 2,637 EUR | -2,483 |
| Gold | Daily | n/a | 55 | 45.45 | 279 EUR | -108 |
| Gold | 4 hours | n/a | 160 | 35.00 | 222 EUR | -202 |
Charts
The code
// ============================================================== // Pivot Reversal With ATR Bracket // ProRealAlgos Strategy Library | prorealalgos.com // Type: Pattern // Direction: Long & short // Timeframe tested: 4 hours // ============================================================== DEFPARAM CumulateOrders = false ONCE lastlow = 0 ONCE lasthigh = 0 prevlow = lastlow prevhigh = lasthigh pivlow = 0 pivhigh = 0
29 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 7 market and timeframe combinations. The best run by trade count was Nasdaq 100, 4 hours, with 237 trades.
The best run had a maximum drawdown of 1,328 EUR at the tested position size, against a net result of 4,261 EUR.
It trades both long and short.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.