Buys one contract when RSI(14) crosses above 40 or the close crosses back above a lower regression band. Sells when RSI(14) crosses below 65 or the close crosses below the upper band.
Best run of 23. S&P 500, Daily, spread 1, from run pf:2026-10-12-USA500-D.tsv:9.
| Period | Up to 2026-10-12 |
| Instrument | S&P 500, Daily |
| Spread | 1 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-12 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| S&P 500Best run | Daily | 3.22 | 163 | 74.23 | 4,971 EUR | -1,103 |
| S&P 500 | 1 hour | 1.31 | 1,345 | 65.28 | 4,493 EUR | -1,065 |
| Dow Jones | Daily | n/a | 161 | 72.05 | 34,405 EUR | -8,834 |
| Nikkei 225 | 30 min | n/a | 2,109 | 60.31 | 27,850 USD | -13,993 |
| Nikkei 225 | 4 hours | n/a | 280 | 66.07 | 27,018 USD | -10,695 |
| Nikkei 225 | 1 hour | n/a | 1,044 | 61.88 | 17,486 USD | -11,778 |
| Nasdaq 100 | 4 hours | n/a | 345 | 71.30 | 16,431 EUR | -6,388 |
| DAX 40 | Daily | n/a | 146 | 74.66 | 16,390 EUR | -5,511 |
| Dow Jones | 15 min | n/a | 1,711 | 64.00 | 15,769 EUR | -8,565 |
| Nasdaq 100 | 15 min | n/a | 2,085 | 65.04 | 14,423 EUR | -6,471 |
| Nikkei 225 | 15 min | n/a | 2,144 | 59.70 | 13,597 USD | -13,135 |
| Dow Jones | 4 hours | n/a | 122 | 70.49 | 13,301 EUR | -11,208 |
| Nasdaq 100 | 1 hour | n/a | 1,334 | 63.49 | 13,092 EUR | -4,880 |
| Dow Jones | 1 hour | n/a | 433 | 65.59 | 12,642 EUR | -7,915 |
| DAX 40 | 4 hours | n/a | 364 | 66.21 | 11,863 EUR | -6,549 |
| Nasdaq 100 | 30 min | n/a | 2,071 | 63.98 | 10,706 EUR | -5,973 |
| Nasdaq 100 | Daily | n/a | 125 | 64.80 | 9,520 EUR | -6,239 |
| FTSE 100 | Daily | n/a | 137 | 69.34 | 7,401 EUR | -4,290 |
| S&P 500 | 4 hours | n/a | 363 | 72.18 | 4,650 EUR | -1,240 |
| S&P 500 | 30 min | n/a | 2,078 | 64.73 | 3,552 EUR | -1,204 |
| S&P 500 | 15 min | n/a | 2,061 | 63.85 | 2,182 EUR | -1,496 |
| Gold | Daily | n/a | 141 | 63.12 | 1,614 EUR | -855 |
| Gold | 4 hours | n/a | 335 | 63.28 | 1,280 EUR | -1,129 |
Charts
Top 10 of 23 runs. The full list is in the table above.
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // RSI Crossover With Regression Bands // ProRealAlgos Strategy Library | prorealalgos.com // Type: Mean reversion // Direction: Long only // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false myRsi = RSI[14](close) lin = LinearRegression[2646](close) sd = STD[2646](close) upper = lin + sd lower = lin - sd
15 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 23 market and timeframe combinations. The best run was S&P 500, Daily, with a profit factor of 3.22 over 163 trades.
The best run had a maximum drawdown of 1,103 EUR at the tested position size, against a net result of 4,971 EUR.
It only takes long trades.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.