The strategy buys at market when the stochastic reversal state is bullish and the scaled 13-period RSI is above -10, and sells short when both are bearish with the reading at or below -10. Positions close when the two states disagree.
Best run of 6. Silver, 4 hours, spread 2, from run sweeps:2026-10-11-SILVER-4h-opt.tsv:26.
| Period | Up to 2026-10-11 |
| Instrument | Silver, 4 hours |
| 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-11 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| SilverBest run | 4 hours | n/a | 1,685 | 23.44 | 30,208 USD | -15,407 |
| USD/JPY | Daily | n/a | 726 | 27.82 | 2,288,660 USD | -677,850 |
| Nikkei 225 | Daily | n/a | 622 | 28.62 | 21,040 USD | -17,337 |
| Brent Crude | Daily | n/a | 277 | 29.24 | 13,793 EUR | -11,230 |
| Gold | Daily | n/a | 783 | 26.95 | 1,750 EUR | -1,145 |
| Gold | 4 hours | n/a | 1,634 | 25.64 | 1,222 EUR | -876 |
Charts
The code
// ============================================================== // Stochastic Reversal With RSI Alert // ProRealAlgos Strategy Library | prorealalgos.com // Type: Momentum // Direction: Long & short // Timeframe tested: 4 hours // ============================================================== DEFPARAM CumulateOrders = false ONCE posrev = 0 ONCE sincebad = 1000 ONCE posrh = 0 ll = lowest[14](low) hh = highest[14](high)
49 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 6 market and timeframe combinations. The best run by trade count was Silver, 4 hours, with 1,685 trades.
The best run had a maximum drawdown of 15,407 USD at the tested position size, against a net result of 30,208 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.