Buys one contract when RSI(14) is below 30 and a Hull-smoothed RSI shows a bullish divergence over the last 24 bars. Exits when RSI(14) rises above 65, or at a 1.75% stop or 3% target from entry.
Best run of 22. US Crude Oil, 30 min, spread 3, from run sweeps:2026-10-11-CRUDE-30m-opt.tsv:13.
| Period | Up to 2026-10-11 |
| Instrument | US Crude Oil, 30 minutes |
| Spread | 3 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 |
|---|---|---|---|---|---|---|
| US Crude OilBest run | 30 min | n/a | 364 | 53.02 | 1,788 EUR | -1,701 |
| Nikkei 225 | 3 min | n/a | 267 | 64.04 | 8,325 USD | -3,960 |
| Nikkei 225 | 4 hours | n/a | 47 | 51.06 | 6,884 USD | -2,101 |
| Silver | 5 min | n/a | 214 | 63.08 | 6,778 USD | -4,262 |
| Dow Jones | 15 min | n/a | 249 | 63.86 | 6,058 EUR | -5,768 |
| Dow Jones | 30 min | n/a | 132 | 65.15 | 5,183 EUR | -3,359 |
| DAX 40 | 1 hour | n/a | 243 | 57.20 | 4,251 EUR | -1,762 |
| US Crude Oil | 1 hour | n/a | 206 | 50.00 | 3,695 EUR | -1,218 |
| Brent Crude | 2 min | n/a | 237 | 67.51 | 2,533 EUR | -835 |
| Brent Crude | 10 min | n/a | 292 | 57.88 | 2,186 EUR | -1,339 |
| Brent Crude | 30 min | n/a | 216 | 55.56 | 2,005 EUR | -1,918 |
| Dow Jones | Daily | n/a | 30 | 40.00 | 1,989 EUR | -1,320 |
| Brent Crude | 1 hour | n/a | 137 | 44.53 | 1,805 EUR | -1,544 |
| Dow Jones | 3 min | n/a | 230 | 64.35 | 1,794 EUR | -1,680 |
| Brent Crude | 4 hours | n/a | 46 | 45.65 | 1,625 EUR | -1,024 |
| S&P 500 | 4 hours | n/a | 54 | 51.85 | 1,210 EUR | -285 |
| US Crude Oil | 5 min | n/a | 269 | 60.22 | 1,117 EUR | -1,070 |
| Silver | Daily | n/a | 26 | 46.15 | 932 USD | -664 |
| FTSE 100 | Daily | n/a | 16 | 50.00 | 793 EUR | -207 |
| S&P 500 | 30 min | n/a | 298 | 61.74 | 756 EUR | -549 |
| DAX 40 | Daily | n/a | 25 | 48.00 | 755 EUR | -566 |
| S&P 500 | Daily | n/a | 44 | 25.00 | 181 EUR | -160 |
Charts
Top 10 of 22 runs. The full list is in the table above.
The code
// ============================================================== // Hull Smoothed RSI Bullish Divergence // ProRealAlgos Strategy Library | prorealalgos.com // Type: Pattern // Direction: Long only // Timeframe tested: 30 minutes // ============================================================== DEFPARAM CumulateOrders = false ONCE downlen = 0 myRsi = RSI[14](close) srsi = WeightedAverage[3](2 * WeightedAverage[5](myRsi) - WeightedAverage[10](myRsi))
35 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 22 market and timeframe combinations. The best run by trade count was US Crude Oil, 30 minutes, with 364 trades.
The best run had a maximum drawdown of 1,701 EUR at the tested position size, against a net result of 1,788 EUR.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.