Buys on a bullish RSI(8) divergence against a lower 5-bar low and sells short on the mirrored bearish divergence. Each trade has a 1% stop loss and a 2% profit target from the entry price.
Best run of 4. EUR/USD, 1 hour, spread 1, from run sweeps:2026-10-10-EURUSD-1h-opt.tsv:4.
| Period | Up to 2026-10-10 |
| Instrument | EUR/USD, 1 hour |
| 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-10 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| EUR/USDBest run | 1 hour | n/a | 4,023 | 56.65 | 47,527 USD | -41,026 |
| Dow Jones | 4 hours | n/a | 382 | 44.50 | 12,953 EUR | -6,302 |
| Dow Jones | 1 min | n/a | 3,449 | 58.54 | 8,372 EUR | -2,971 |
| GBP/USD | 4 hours | n/a | 1,243 | 49.48 | 6,196 USD | -4,855 |
Charts
The code
// ============================================================== // RSI Divergence Reversal // ProRealAlgos Strategy Library | prorealalgos.com // Type: Pattern // Direction: Long & short // Timeframe tested: 1 hour // ============================================================== DEFPARAM CumulateOrders = false myRsi = RSI[8](close) ll = lowest[5](low) hh = highest[5](high) lr = lowest[5](myRsi) hr = highest[5](myRsi)
15 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, 1 hour, with 4,023 trades.
The best run had a maximum drawdown of 41,026 USD at the tested position size, against a net result of 47,527 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.