The strategy buys when the close reaches or exceeds the highest high of the prior 20 bars. It sells when the close falls to the lowest low of the prior 10 bars or below a volatility line built from true range.
Best run of 18. Nasdaq 100, Daily, spread 3, from run pf:2026-10-10-NAS100-D.tsv:5.
| 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-10 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| Nasdaq 100Best run | Daily | 2.03 | 208 | 46.15 | 15,283 EUR | -2,649 |
| USD/JPY | 1 hour | n/a | 2,077 | 39.96 | 372,160 USD | -189,460 |
| EUR/USD | Daily | n/a | 188 | 44.15 | 65,768 USD | -41,115 |
| Nikkei 225 | Daily | n/a | 208 | 42.79 | 22,241 USD | -13,414 |
| Nikkei 225 | 4 hours | n/a | 409 | 43.52 | 22,033 USD | -8,135 |
| Silver | 4 hours | n/a | 478 | 38.70 | 16,945 USD | -10,998 |
| Dow Jones | Daily | n/a | 246 | 43.50 | 15,777 EUR | -4,388 |
| Nasdaq 100 | 4 hours | n/a | 528 | 43.37 | 10,699 EUR | -3,814 |
| DAX 40 | Daily | n/a | 301 | 41.20 | 9,844 EUR | -3,999 |
| US Crude Oil | Daily | n/a | 185 | 44.32 | 8,258 EUR | -6,892 |
| DAX 40 | 4 hours | n/a | 488 | 43.44 | 7,338 EUR | -4,383 |
| DAX 40 | 1 hour | n/a | 1,877 | 40.01 | 6,219 EUR | -4,872 |
| Nasdaq 100 | 30 min | n/a | 3,558 | 37.32 | 5,519 EUR | -5,207 |
| S&P 500 | Daily | n/a | 274 | 40.88 | 2,499 EUR | -646 |
| Gold | Daily | n/a | 215 | 40.93 | 2,049 EUR | -1,239 |
| Gold | 4 hours | n/a | 492 | 39.23 | 1,676 EUR | -1,023 |
| Gold | 1 hour | n/a | 1,880 | 38.83 | 1,605 EUR | -651 |
| S&P 500 | 4 hours | n/a | 551 | 40.65 | 1,352 EUR | -1,231 |
Charts
Top 10 of 18 runs. The full list is in the table above.
The code
// ============================================================== // Donchian Breakout With ATR Line Exit // ProRealAlgos Strategy Library | prorealalgos.com // Type: Breakout // Direction: Long only // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false myAtr = ExponentialAverage[20](TR(close)) atrline = ExponentialAverage[3](close - 2 * myAtr) upper = highest[20](high) lower = lowest[10](low)
14 more lines: the entry and exit rules.
Setup
Nasdaq 100 had no history beyond the standard run, so both runs used 10,000 bars.
| Bars available | 10,000 |
| Net, standard 200,000-bar run | 15,282.70 EUR |
| Net, long run | 15,282.70 EUR |
| Net on the older data alone | 0.00 EUR |
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 18 market and timeframe combinations. The best run was Nasdaq 100, Daily, with a profit factor of 2.03 over 208 trades.
The best run had a maximum drawdown of 2,649 EUR at the tested position size, against a net result of 15,283 EUR.
It only takes long trades.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.