The strategy buys 1 contract when RSI(7) is below 20, the close is below the lower Keltner Channel and the histogram is positive and rising. It shorts the mirror image and exits on a price band or histogram reversal.
Best run of 9. Silver, 1 hour, spread 2, from run pf:2026-10-12-SILVER-1h.tsv:5.
| Period | Up to 2026-10-12 |
| 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-12 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| SilverBest run | 1 hour | 5.51 | 1,603 | 45.91 | 526,556 USD | -40,534 |
| Nikkei 225 | Daily | n/a | 228 | 50.44 | 9,333 USD | -5,122 |
| Dow Jones | Daily | n/a | 142 | 53.52 | 8,457 EUR | -2,544 |
| US Crude Oil | Daily | n/a | 192 | 51.04 | 3,226 EUR | -1,304 |
| Brent Crude | 4 hours | n/a | 276 | 53.26 | 2,924 EUR | -1,426 |
| Nasdaq 100 | Daily | n/a | 170 | 39.41 | 2,676 EUR | -1,477 |
| Brent Crude | Daily | n/a | 98 | 51.02 | 2,532 EUR | -1,829 |
| FTSE 100 | Daily | n/a | 168 | 51.79 | 1,437 EUR | -862 |
| S&P 500 | Daily | n/a | 159 | 38.99 | 299 EUR | -254 |
Charts
The code
// ============================================================== // RSI Keltner Histogram Reversion // ProRealAlgos Strategy Library | prorealalgos.com // Type: Mean reversion // Direction: Long & short // Timeframe tested: 1 hour // ============================================================== DEFPARAM CumulateOrders = false myRsi = RSI[7](close) myAtr = AverageTrueRange[17](close) kcmid = ExponentialAverage[17](close) kcup = kcmid + 2.7 * myAtr kclow = kcmid - 2.7 * myAtr myMacd = ExponentialAverage[16](close) - ExponentialAverage[7](close) sig = Average[9](myMacd) hist = 10 * (myMacd - sig)
17 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 9 market and timeframe combinations. The best run was Silver, 1 hour, with a profit factor of 5.51 over 1,603 trades.
The best run had a maximum drawdown of 40,534 USD at the tested position size, against a net result of 526,556 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.