Buys when the 4-period RSI crosses back above 15 while the bar low stays above the 100-period exponential average. Sells when RSI crosses above 85 or the low drops below that average, with a 10% trailing stop.
Best run of 13. Silver, 1 hour, spread 2, from run pf:2026-10-05-SILVER-1h.tsv:1.
| Period | Up to 2026-10-05 |
| Instrument | Silver, 1 hour |
| Spread | 2 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-05 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| SilverBest run | 1 hour | 27.31 | 310 | 40.65 | 567,523 USD | -6,529 |
| USD/JPY | Daily | n/a | 14 | 50.00 | 54,640 USD | -50,360 |
| Dow Jones | Daily | n/a | 9 | 55.56 | 4,600 EUR | -1,890 |
| Dow Jones | 4 hours | n/a | 49 | 46.94 | 4,422 EUR | -2,698 |
| Nikkei 225 | 4 hours | n/a | 60 | 46.67 | 4,416 USD | -3,542 |
| EUR/USD | Daily | n/a | 10 | 40.00 | 4,398 USD | -4,225 |
| Silver | Daily | n/a | 8 | 37.50 | 2,023 USD | -1,459 |
| US Crude Oil | 4 hours | n/a | 71 | 46.48 | 1,973 EUR | -866 |
| US Crude Oil | 1 hour | n/a | 242 | 41.74 | 1,776 EUR | -1,512 |
| Brent Crude | 1 hour | n/a | 176 | 38.07 | 1,368 EUR | -873 |
| GBP/USD | Daily | n/a | 15 | 40.00 | 712 USD | -418 |
| S&P 500 | Daily | n/a | 9 | 55.56 | 494 EUR | -274 |
| Gold | 4 hours | n/a | 107 | 44.86 | 282 EUR | -148 |
Charts
Top 10 of 13 runs. The full list is in the table above.
The code
// ============================================================== // RSI Recovery With Trend Filter // ProRealAlgos Strategy Library | prorealalgos.com // Type: Mean reversion // Direction: Long only // Timeframe tested: 1 hour // ============================================================== DEFPARAM CumulateOrders = false myRsi = RSI[4](close) ema = ExponentialAverage[100](close)
10 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 13 market and timeframe combinations. The best run was Silver, 1 hour, with a profit factor of 27.31 over 310 trades.
The best run had a maximum drawdown of 6,528 USD at the tested position size, against a net result of 567,522 USD.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.