The strategy trades outside bars, buying when one closes below the prior low and selling short when one closes above the prior high. Each trade targets 1 times ATR(20) from the fill and exits at market after 3 bars.
Best run of 3. Nasdaq 100, Daily, spread 3, from run sweeps:2026-10-10-NAS100-D-opt.tsv:32.
| Period | Up to 2026-10-10 |
| Instrument | Nasdaq 100, Daily |
| 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 | Daily | n/a | 1,070 | 50.47 | 5,164 EUR | -4,401 |
| Dow Jones | 4 hours | n/a | 934 | 58.89 | 12,525 EUR | -3,294 |
| Nikkei 225 | Daily | n/a | 902 | 56.65 | 11,010 USD | -10,561 |
Charts
The code
// ============================================================== // Outside Bar Mean Reversion // ProRealAlgos Strategy Library | prorealalgos.com // Type: Mean reversion // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ONCE bars = 0 myAtr = AverageTrueRange[20](close)
28 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 3 market and timeframe combinations. The best run by trade count was Nasdaq 100, Daily, with 1,070 trades.
The best run had a maximum drawdown of 4,401 EUR at the tested position size, against a net result of 5,164 EUR.
It trades both long and short.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.