Buys one contract in range-bound conditions, with ADX(14) below 25, RSI(14) between 35 and 65, and a 20-period Bollinger band width below 8%. Exits after 21 bars, or earlier if the close falls more than 5% below the entry.
Best run of 15. Nasdaq 100, Daily, spread 3, from run pf:2026-10-05-NAS100-D.tsv:20.
| 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 | 1.70 | 316 | 58.86 | 16,086 EUR | -3,477 |
| S&P 500 | 4 hours | 1.34 | 953 | 58.24 | 4,814 EUR | -726 |
| Nasdaq 100 | 4 hours | 1.31 | 915 | 55.19 | 17,512 EUR | -4,269 |
| Dow Jones | 4 hours | n/a | 304 | 55.92 | 23,905 EUR | -6,703 |
| Nikkei 225 | 4 hours | n/a | 790 | 51.01 | 21,658 USD | -12,781 |
| Dow Jones | Daily | n/a | 450 | 56.00 | 14,515 EUR | -9,893 |
| Nasdaq 100 | 1 hour | n/a | 3,450 | 51.30 | 11,260 EUR | -5,998 |
| Dow Jones | 30 min | n/a | 2,375 | 52.08 | 9,162 EUR | -7,623 |
| Dow Jones | 1 hour | n/a | 1,149 | 52.65 | 8,850 EUR | -7,903 |
| DAX 40 | Daily | n/a | 486 | 53.50 | 7,771 EUR | -4,506 |
| DAX 40 | 1 hour | n/a | 3,276 | 52.78 | 6,209 EUR | -4,856 |
| DAX 40 | 4 hours | n/a | 920 | 53.70 | 5,562 EUR | -4,661 |
| S&P 500 | Daily | n/a | 488 | 57.17 | 3,664 EUR | -1,058 |
| Gold | 4 hours | n/a | 894 | 52.57 | 1,954 EUR | -990 |
| Gold | Daily | n/a | 423 | 49.88 | 1,893 EUR | -948 |
Charts
Top 10 of 15 runs. The full list is in the table above.
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // Range Regime Long With Time Exit // ProRealAlgos Strategy Library | prorealalgos.com // Type: Mean reversion // Direction: Long only // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ONCE holdcount = 0 ONCE basis = 0 myAdx = ADX[14] myRsi = RSI[14](close) bmid = Average[20](close) bdev = STD[20](close) bwidth = (4 * bdev) / bmid * 100
26 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,086.10 EUR |
| Net, long run | 16,357.30 EUR |
| Net on the older data alone | 271.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 15 market and timeframe combinations. The best run was Nasdaq 100, Daily, with a profit factor of 1.70 over 316 trades.
The best run had a maximum drawdown of 3,477 EUR at the tested position size, against a net result of 16,086 EUR.
It only takes long trades.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.