The strategy buys when close crosses above an ATR trailing line built with a buffer of 3 times ATR(1), and sells when close crosses below it. It has no stop or target.
Best run of 11. Nasdaq 100, 30 min, spread 3, from run sweeps:2026-10-04-NAS100-30m-opt.tsv:47.
| Period | Up to 2026-10-04 |
| Instrument | Nasdaq 100, 30 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-04 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| Nasdaq 100Best run | 30 min | n/a | 5,404 | 37.60 | 7,055 EUR | -6,758 |
| USD/JPY | 1 hour | n/a | 2,856 | 39.74 | 535,010 USD | -181,900 |
| Silver | 4 hours | n/a | 849 | 38.75 | 28,094 USD | -15,541 |
| Nikkei 225 | Daily | n/a | 436 | 44.72 | 22,506 USD | -10,236 |
| Dow Jones | Daily | n/a | 321 | 47.04 | 21,345 EUR | -7,038 |
| DAX 40 | Daily | n/a | 776 | 38.14 | 12,223 EUR | -6,382 |
| Nasdaq 100 | Daily | n/a | 391 | 45.01 | 11,073 EUR | -6,407 |
| Dow Jones | 4 hours | n/a | 321 | 44.55 | 10,136 EUR | -9,255 |
| DAX 40 | 1 hour | n/a | 3,055 | 39.90 | 8,778 EUR | -4,252 |
| Nasdaq 100 | 1 hour | n/a | 3,508 | 36.52 | 7,894 EUR | -5,178 |
| Gold | 4 hours | n/a | 865 | 42.31 | 2,105 EUR | -1,359 |
Charts
Top 10 of 11 runs. The full list is in the table above.
The code
// ============================================================== // ATR Trailing Line Crossover // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long only // Timeframe tested: 30 minutes // ============================================================== DEFPARAM CumulateOrders = false ONCE trail = 0 prev = trail buf = 3.0 * AverageTrueRange[1](close)
22 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 Nasdaq 100, 30 minutes, with 5,404 trades.
The best run had a maximum drawdown of 6,758 EUR at the tested position size, against a net result of 7,055 EUR.
It only takes long trades.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.