The strategy trades short-term pullbacks in the direction of the 200-bar SMA. It buys when RSI(2) falls below 5 in an uptrend and sells short when RSI(2) rises above 90 in a downtrend, closing positions almost immediately.
Best run of 4. EUR/USD, 4 hours, spread 1, from run sweeps:2026-10-11-EURUSD-4h-opt.tsv:23.
| Period | Up to 2026-10-11 |
| Instrument | EUR/USD, 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-11 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| EUR/USDBest run | 4 hours | n/a | 2,259 | 51.08 | 14,145 USD | -11,156 |
| USD/JPY | Daily | n/a | 680 | 52.94 | 385,370 USD | -127,700 |
| Nikkei 225 | Daily | n/a | 479 | 51.57 | 6,058 USD | -3,350 |
| Nasdaq 100 | Daily | n/a | 430 | 39.77 | 3,414 EUR | -1,328 |
Charts
The code
// ============================================================== // Short Term RSI Pullback // ProRealAlgos Strategy Library | prorealalgos.com // Type: Mean reversion // Direction: Long & short // Timeframe tested: 4 hours // ============================================================== DEFPARAM CumulateOrders = false rs = RSI[2](close) mafast = Average[5](close) maslow = Average[200](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 4 market and timeframe combinations. The best run by trade count was EUR/USD, 4 hours, with 2,259 trades.
The best run had a maximum drawdown of 11,156 USD at the tested position size, against a net result of 14,145 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.