The strategy buys when RSI(10) crosses above 40 with the close above the 200-period EMA. It sells short when RSI(10) crosses below 60 with the close below that EMA, and each trade uses a stop at 4 times the 14-period ATR.
Best run of 8. S&P 500, Daily, spread 1, from run pf:2026-10-12-USA500-D.tsv:6.
| 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 | 1.77 | 145 | 44.14 | 4,070 EUR | -905 |
| USD/JPY | Daily | 1.54 | 502 | 42.43 | 71,600 USD | -9,070 |
| Nikkei 225 | Daily | n/a | 102 | 42.16 | 31,149 USD | -18,375 |
| Dow Jones | Daily | n/a | 121 | 41.32 | 16,929 EUR | -7,928 |
| Gold | Daily | n/a | 123 | 47.97 | 3,012 EUR | -1,101 |
| Gold | 4 hours | n/a | 291 | 37.46 | 2,653 EUR | -1,264 |
| S&P 500 | 4 hours | n/a | 341 | 34.90 | 1,791 EUR | -942 |
| Gold | 5 min | n/a | 1,848 | 32.47 | 669 EUR | -651 |
Charts
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // RSI Pullback Trend Bracket // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ema = ExponentialAverage[200](close) myRsi = RSI[10](close) myAtr = AverageTrueRange[14](close)
17 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 8 market and timeframe combinations. The best run was S&P 500, Daily, with a profit factor of 1.77 over 145 trades.
The best run had a maximum drawdown of 905 EUR at the tested position size, against a net result of 4,070 EUR.
It trades both long and short.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.