It buys when price is below its 10-period SMA, above its 200-period SMA, and RSI(3) is below 30. It closes when price moves back above the 10-period SMA and below the prior bar's low, or at a 5 percent stop or 20 percent target.
Best run of 12. S&P 500, Daily, spread 1, from run pf:2026-10-13-USA500-D.tsv:4.
| Period | Up to 2026-10-13 |
| 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-13 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| S&P 500Best run | Daily | 2.04 | 399 | 70.43 | 6,165 EUR | -921 |
| Nasdaq 100 | Daily | 1.78 | 376 | 62.77 | 21,754 EUR | -4,024 |
| S&P 500 | 4 hours | 1.62 | 720 | 67.22 | 5,135 EUR | -732 |
| Nasdaq 100 | 4 hours | 1.38 | 719 | 65.92 | 13,966 EUR | -3,558 |
| Dow Jones | Daily | n/a | 362 | 67.13 | 27,405 EUR | -7,901 |
| Nikkei 225 | Daily | n/a | 291 | 63.92 | 25,766 USD | -11,480 |
| Nikkei 225 | 4 hours | n/a | 488 | 61.68 | 25,715 USD | -10,397 |
| Dow Jones | 4 hours | n/a | 208 | 68.75 | 16,077 EUR | -5,374 |
| Dow Jones | 1 hour | n/a | 700 | 62.43 | 13,440 EUR | -6,303 |
| DAX 40 | Daily | n/a | 443 | 60.50 | 8,478 EUR | -5,248 |
| FTSE 100 | Daily | n/a | 303 | 62.71 | 2,684 EUR | -2,570 |
| Gold | Daily | n/a | 295 | 57.29 | 1,479 EUR | -1,225 |
Charts
Top 10 of 12 runs. The full list is in the table above.
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // SMA Pullback With RSI Filter // ProRealAlgos Strategy Library | prorealalgos.com // Type: Mean reversion // Direction: Long only // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false malong = Average[200](close) mashort = Average[10](close) myRsi = RSI[3](close)
12 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 12 market and timeframe combinations. The best run was S&P 500, Daily, with a profit factor of 2.04 over 399 trades.
The best run had a maximum drawdown of 921 EUR at the tested position size, against a net result of 6,165 EUR.
It only takes long trades.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.