The strategy buys when the 50-bar EMA is above the 200-bar EMA, the close is above the 50-bar EMA, and RSI crosses above 50 after a 40 to 50 pullback. It exits when the 50-bar EMA crosses under the 200-bar EMA.
Best run of 18. S&P 500, Daily, spread 1, from run sweeps:2026-10-11-USA500-D-opt.tsv:106.
| Period | Up to 2026-10-11 |
| 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-11 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| S&P 500Best run | Daily | n/a | 163 | 34.97 | 811 EUR | -761 |
| Dow Jones | Daily | n/a | 155 | 40.00 | 13,736 EUR | -5,120 |
| USD/JPY | Daily | n/a | 80 | 45.00 | 7,110 USD | -4,710 |
| US Crude Oil | 4 hours | n/a | 114 | 40.35 | 3,931 EUR | -2,683 |
| Nasdaq 100 | 4 hours | n/a | 24 | 54.17 | 2,507 EUR | -1,936 |
| US Crude Oil | 30 min | n/a | 55 | 43.64 | 1,527 EUR | -1,077 |
| Nikkei 225 | 5 min | n/a | 1 | 100.00 | 1,513 USD | -693 |
| Gold | Daily | n/a | 132 | 43.94 | 1,341 EUR | -1,189 |
| Brent Crude | 30 min | n/a | 39 | 41.03 | 1,150 EUR | -1,141 |
| Dow Jones | 15 min | n/a | 1 | 100.00 | 998 EUR | -84.50 |
| USD/JPY | 4 hours | n/a | 1 | 100.00 | 400 USD | -0.00 |
| DAX 40 | 15 min | n/a | 1 | 100.00 | 359 EUR | -162 |
| S&P 500 | 4 hours | n/a | 10 | 60.00 | 337 EUR | -159 |
| FTSE 100 | 30 min | n/a | 1 | 100.00 | 309 EUR | -221 |
| FTSE 100 | 15 min | n/a | 1 | 100.00 | 240 EUR | -232 |
| S&P 500 | 5 min | n/a | 1 | 100.00 | 230 EUR | -87.78 |
| S&P 500 | 3 min | n/a | 1 | 100.00 | 226 EUR | -158 |
| S&P 500 | 15 min | n/a | 1 | 100.00 | 104 EUR | -4.87 |
Charts
Top 10 of 18 runs. The full list is in the table above.
The code
// ============================================================== // RSI Pullback Trend Continuation // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long only // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false emafast = ExponentialAverage[50](close) emaslow = ExponentialAverage[200](close) myRsi = RSI[14](close) myAtr = AverageTrueRange[14](close)
20 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 18 market and timeframe combinations. The best run by trade count was S&P 500, Daily, with 163 trades.
The best run had a maximum drawdown of 761 EUR at the tested position size, against a net result of 811 EUR.
It only takes long trades.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.