The strategy buys when price breaks above the latest confirmed pivot high and sells short when price breaks below the latest pivot low. Stops are set from the bar's low or high plus 1.5 times ATR(14), with targets 1.1 times that distance.
Best run of 8. Nasdaq 100, 1 hour, spread 3, from run sweeps:2026-10-04-NAS100-1h-opt.tsv:63.
| Period | Up to 2026-10-04 |
| Instrument | Nasdaq 100, 1 hour |
| 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-04 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| Nasdaq 100Best run | 1 hour | n/a | 1,964 | 44.25 | 6,997 EUR | -3,814 |
| Nikkei 225 | Daily | n/a | 157 | 53.50 | 18,353 USD | -11,126 |
| US Crude Oil | Daily | n/a | 167 | 53.29 | 6,183 EUR | -4,118 |
| Brent Crude | 1 hour | n/a | 941 | 47.61 | 5,685 EUR | -2,902 |
| Dow Jones | 4 hours | n/a | 153 | 49.02 | 5,414 EUR | -5,182 |
| Nasdaq 100 | 4 hours | n/a | 467 | 47.97 | 3,975 EUR | -3,425 |
| Gold | 1 hour | n/a | 1,791 | 46.40 | 1,467 EUR | -761 |
| S&P 500 | Daily | n/a | 216 | 42.59 | 872 EUR | -864 |
Charts
The code
// ============================================================== // Pivot Breakout With ATR Stop // ProRealAlgos Strategy Library | prorealalgos.com // Type: Breakout // Direction: Long & short // Timeframe tested: 1 hour // ============================================================== DEFPARAM CumulateOrders = false ONCE updhigh = 0 ONCE updlow = 0 ONCE phactive = 0 ONCE plactive = 0 ONCE tradeon = 0 myAtr = AverageTrueRange[14](close)
49 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 8 market and timeframe combinations. The best run by trade count was Nasdaq 100, 1 hour, with 1,964 trades.
The best run had a maximum drawdown of 3,814 EUR at the tested position size, against a net result of 6,997 EUR.
It trades both long and short.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.