The idea buys when a two-bar average of a composite momentum score crosses above 40. The score is the mean of RSI(3), a streak RSI and a 100-bar percent rank, and the long closes when the average crosses below 70.
Best run of 9. S&P 500, 4 hours, spread 1, from run sweeps:2026-10-12-USA500-4h-opt.tsv:58.
| Period | Up to 2026-10-12 |
| Instrument | S&P 500, 4 hours |
| 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 | 4 hours | n/a | 2,159 | 58.96 | 3,041 EUR | -1,327 |
| Nikkei 225 | 4 hours | n/a | 1,683 | 59.83 | 30,332 USD | -13,368 |
| Dow Jones | Daily | n/a | 1,004 | 63.35 | 29,655 EUR | -13,666 |
| Nikkei 225 | Daily | n/a | 784 | 63.65 | 29,459 USD | -23,573 |
| Nasdaq 100 | 4 hours | n/a | 2,093 | 59.68 | 18,458 EUR | -4,970 |
| Nasdaq 100 | Daily | n/a | 780 | 57.44 | 12,951 EUR | -5,328 |
| DAX 40 | 4 hours | n/a | 2,011 | 61.76 | 9,088 EUR | -6,000 |
| FTSE 100 | Daily | n/a | 794 | 61.59 | 4,882 EUR | -3,499 |
| S&P 500 | Daily | n/a | 1,085 | 58.71 | 3,570 EUR | -1,203 |
Charts
The code
// ============================================================== // Smoothed Composite RSI Entry // ProRealAlgos Strategy Library | prorealalgos.com // Type: Mean reversion // Direction: Long only // Timeframe tested: 4 hours // ============================================================== DEFPARAM CumulateOrders = false ONCE ud = 0 IF close = close[1] THEN ud = 0
44 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 9 market and timeframe combinations. The best run by trade count was S&P 500, 4 hours, with 2,159 trades.
The best run had a maximum drawdown of 1,327 EUR at the tested position size, against a net result of 3,041 EUR.
It only takes long trades.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.