Buys when price is above its 200-period average and the 2-period RSI is at or below 10, and sells short when price is below it and RSI is at or above 90. Longs close above the 5-period average, shorts close below it.
Best run of 11. S&P 500, Daily, spread 1, from run pf:2026-10-05-USA500-D.tsv:13.
| 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 | 2.18 | 696 | 60.20 | 4,101 EUR | -587 |
| Nasdaq 100 | Daily | 2.12 | 503 | 62.23 | 14,035 EUR | -3,330 |
| Dow Jones | Daily | 1.59 | 633 | 63.35 | 18,648 EUR | -4,173 |
| Nikkei 225 | Daily | 1.49 | 493 | 67.75 | 34,273 USD | -7,696 |
| EUR/USD | 4 hours | 1.14 | 2,018 | 64.47 | 46,260 USD | -10,769 |
| EUR/USD | 1 hour | 1.08 | 7,760 | 63.52 | 54,448 USD | -11,980 |
| USD/JPY | Daily | n/a | 603 | 66.00 | 550,290 USD | -423,700 |
| US Crude Oil | Daily | n/a | 492 | 65.04 | 11,977 EUR | -3,270 |
| DAX 40 | Daily | n/a | 695 | 60.14 | 9,823 EUR | -2,551 |
| FTSE 100 | Daily | n/a | 494 | 67.21 | 4,669 EUR | -1,434 |
| GBP/USD | Daily | n/a | 642 | 66.04 | 4,662 USD | -3,352 |
Charts
Top 10 of 11 runs. The full list is in the table above.
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // Two Period RSI Trend Pullback // ProRealAlgos Strategy Library | prorealalgos.com // Type: Mean reversion // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false myRsi = RSI[2](close) slow = Average[200](close) fast = Average[5](close)
19 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,101.31 EUR |
| Net, long run | 4,101.31 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 11 market and timeframe combinations. The best run was S&P 500, Daily, with a profit factor of 2.18 over 696 trades.
The best run had a maximum drawdown of 587 EUR at the tested position size, against a net result of 4,101 EUR.
It trades both long and short.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.