Buys when the close breaks above the highest high of the prior 20 bars while it is above the 200-bar SMA. Sells when the close falls below the lowest low of the prior 20 bars.
Best run of 27. Nasdaq 100, Daily, spread 3, from run pf:2026-10-05-NAS100-D.tsv:8.
| Period | Up to 2026-10-05 |
| 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-05 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| Nasdaq 100Best run | Daily | 2.36 | 118 | 54.24 | 16,383 EUR | -3,761 |
| USD/JPY | Daily | n/a | 108 | 44.44 | 895,210 USD | -407,550 |
| USD/JPY | 30 min | n/a | 1,691 | 39.15 | 459,610 USD | -150,750 |
| USD/JPY | 15 min | n/a | 1,769 | 38.10 | 282,510 USD | -167,400 |
| USD/JPY | 10 min | n/a | 1,805 | 38.23 | 262,690 USD | -157,970 |
| EUR/USD | Daily | n/a | 106 | 40.57 | 62,655 USD | -37,652 |
| Nikkei 225 | Daily | n/a | 112 | 43.75 | 38,348 USD | -13,638 |
| Silver | 4 hours | n/a | 235 | 40.43 | 33,553 USD | -17,397 |
| Nikkei 225 | 4 hours | n/a | 245 | 43.67 | 22,767 USD | -8,718 |
| Nikkei 225 | 1 hour | n/a | 888 | 38.63 | 19,470 USD | -11,537 |
| Nikkei 225 | 30 min | n/a | 1,710 | 39.36 | 17,079 USD | -8,176 |
| Dow Jones | Daily | n/a | 151 | 43.05 | 11,834 EUR | -7,769 |
| US Crude Oil | Daily | n/a | 110 | 45.45 | 11,029 EUR | -4,909 |
| Nasdaq 100 | 30 min | n/a | 2,037 | 40.60 | 10,158 EUR | -3,358 |
| DAX 40 | 1 hour | n/a | 1,043 | 41.51 | 9,980 EUR | -3,653 |
| Dow Jones | 1 hour | n/a | 390 | 42.05 | 9,276 EUR | -5,382 |
| Nasdaq 100 | 4 hours | n/a | 322 | 45.34 | 8,758 EUR | -4,319 |
| DAX 40 | 30 min | n/a | 1,879 | 38.48 | 8,557 EUR | -3,067 |
| DAX 40 | Daily | n/a | 166 | 46.39 | 8,167 EUR | -5,458 |
| Nasdaq 100 | 15 min | n/a | 1,846 | 39.00 | 7,925 EUR | -2,805 |
| Gold | Daily | n/a | 126 | 42.06 | 2,720 EUR | -1,179 |
| S&P 500 | Daily | n/a | 159 | 43.40 | 2,555 EUR | -1,020 |
| Gold | 4 hours | n/a | 268 | 41.79 | 2,146 EUR | -1,097 |
| Gold | 1 hour | n/a | 1,027 | 38.95 | 1,979 EUR | -1,049 |
| S&P 500 | 4 hours | n/a | 318 | 42.45 | 1,266 EUR | -1,017 |
| Gold | 30 min | n/a | 1,746 | 37.63 | 1,170 EUR | -825 |
| Gold | 5 min | n/a | 1,778 | 36.28 | 740 EUR | -513 |
Charts
Top 10 of 27 runs. The full list is in the table above.
The code
// ============================================================== // Channel Breakout Trend Filter // ProRealAlgos Strategy Library | prorealalgos.com // Type: Breakout // Direction: Long only // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false upperband = highest[20](high)[1] lowerband = lowest[20](low)[1] matrend = Average[200](close)
9 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 | 16,383.30 EUR |
| Net, long run | 16,690.50 EUR |
| Net on the older data alone | 307.20 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 27 market and timeframe combinations. The best run was Nasdaq 100, Daily, with a profit factor of 2.36 over 118 trades.
The best run had a maximum drawdown of 3,761 EUR at the tested position size, against a net result of 16,383 EUR.
It only takes long trades.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.