Buys when price is above its 200-period average and the 4-period RSI is at or below 25. Closes the long when the RSI is at or above 55.
Best run of 15. S&P 500, Daily, spread 1, from run pf:2026-10-05-USA500-D.tsv:14.
| Period | Up to 2026-10-05 |
| 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-05 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| S&P 500Best run | Daily | 3.58 | 377 | 74.80 | 4,696 EUR | -604 |
| Nasdaq 100 | Daily | 2.68 | 284 | 71.13 | 12,374 EUR | -2,311 |
| FTSE 100 | Daily | 1.62 | 250 | 71.20 | 4,399 EUR | -1,001 |
| EUR/USD | Daily | n/a | 199 | 67.34 | 30,694 USD | -23,330 |
| Nikkei 225 | Daily | n/a | 206 | 68.93 | 23,383 USD | -12,957 |
| Dow Jones | Daily | n/a | 324 | 70.06 | 13,522 EUR | -5,517 |
| Nikkei 225 | 4 hours | n/a | 503 | 66.20 | 9,075 USD | -4,231 |
| Dow Jones | 4 hours | n/a | 238 | 69.75 | 7,810 EUR | -3,723 |
| Dow Jones | 30 min | n/a | 1,437 | 67.36 | 6,063 EUR | -3,778 |
| Nasdaq 100 | 4 hours | n/a | 665 | 65.86 | 5,350 EUR | -1,806 |
| GBP/USD | 4 hours | n/a | 725 | 67.03 | 2,993 USD | -2,148 |
| FTSE 100 | 4 hours | n/a | 578 | 70.93 | 2,635 EUR | -1,217 |
| GBP/USD | 1 hour | n/a | 2,779 | 66.35 | 2,443 USD | -2,080 |
| S&P 500 | 4 hours | n/a | 689 | 68.51 | 1,071 EUR | -686 |
| Gold | Daily | n/a | 235 | 65.53 | 741 EUR | -609 |
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
// ============================================================== // Four Period RSI Pullback // ProRealAlgos Strategy Library | prorealalgos.com // Type: Mean reversion // Direction: Long only // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false myRsi = RSI[4](close) sma = Average[200](close)
9 more lines: the entry and exit rules.
Setup
S&P 500 had no history beyond the standard run, so both runs used 14,000 bars.
| Bars available | 14,000 |
| Net, standard 200,000-bar run | 4,695.76 EUR |
| Net, long run | 4,695.76 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 15 market and timeframe combinations. The best run was S&P 500, Daily, with a profit factor of 3.58 over 377 trades.
The best run had a maximum drawdown of 604 EUR at the tested position size, against a net result of 4,696 EUR.
It only takes long trades.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.