It goes long after two consecutive higher closes while stochastic %K is above 50 and below its 3-bar average, and shorts the mirror setup. Longs also need the relative momentum index below 40, and shorts need it above 70.
Best run of 21. Silver, 1 hour, spread 2, from run pf:2026-10-12-SILVER-1h.tsv:15.
| 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.96 | 830 | 44.46 | 577,155 USD | -12,573 |
| USD/JPY | 30 min | n/a | 1,450 | 43.17 | 316,460 USD | -171,190 |
| USD/JPY | 10 min | n/a | 1,449 | 41.96 | 180,980 USD | -129,320 |
| Dow Jones | 4 hours | n/a | 80 | 58.75 | 25,617 EUR | -6,675 |
| Nikkei 225 | Daily | n/a | 79 | 43.04 | 22,199 USD | -14,220 |
| Dow Jones | Daily | n/a | 99 | 54.55 | 21,076 EUR | -9,474 |
| DAX 40 | 30 min | n/a | 1,529 | 45.45 | 12,993 EUR | -4,830 |
| Nasdaq 100 | 30 min | n/a | 1,452 | 44.15 | 8,653 EUR | -4,023 |
| DAX 40 | 4 hours | n/a | 217 | 43.78 | 8,443 EUR | -5,362 |
| DAX 40 | Daily | n/a | 85 | 52.94 | 7,681 EUR | -7,528 |
| Nasdaq 100 | Daily | n/a | 81 | 53.09 | 6,857 EUR | -5,632 |
| US Crude Oil | 15 min | n/a | 1,558 | 44.09 | 6,595 EUR | -3,914 |
| Brent Crude | Daily | n/a | 35 | 45.71 | 6,096 EUR | -5,285 |
| GBP/USD | 4 hours | n/a | 293 | 48.12 | 5,762 USD | -3,647 |
| FTSE 100 | 4 hours | n/a | 209 | 48.80 | 5,621 EUR | -2,097 |
| US Crude Oil | 30 min | n/a | 1,393 | 44.01 | 5,093 EUR | -4,535 |
| GBP/USD | 1 hour | n/a | 1,319 | 46.10 | 4,773 USD | -2,894 |
| S&P 500 | Daily | n/a | 102 | 46.08 | 4,118 EUR | -1,273 |
| S&P 500 | 1 hour | n/a | 929 | 45.64 | 2,453 EUR | -988 |
| S&P 500 | 4 hours | n/a | 212 | 50.47 | 1,957 EUR | -963 |
| Gold | 30 min | n/a | 1,459 | 42.15 | 1,606 EUR | -837 |
Charts
Top 10 of 21 runs. The full list is in the table above.
The code
// ============================================================== // Stochastic Reversal With Relative Momentum // ProRealAlgos Strategy Library | prorealalgos.com // Type: Pattern // Direction: Long & short // Timeframe tested: 1 hour // ============================================================== DEFPARAM CumulateOrders = false ONCE posrev = 0 ONCE sincebad = 1000 ONCE postwo = 0 ONCE xmu = 1 ONCE xmd = 0 ll = lowest[14](low) hh = highest[14](high)
60 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 21 market and timeframe combinations. The best run was Silver, 1 hour, with a profit factor of 5.96 over 830 trades.
The best run had a maximum drawdown of 12,573 USD at the tested position size, against a net result of 577,154 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.