The system buys when the slow 97-bar stochastic is above 50 and the smoothed 5-bar stochastic is below 30 and rising, and shorts on the mirror setup. Positions close at a 1.2 ratio against the second most recent signal close.
Best run of 21. Silver, 1 hour, spread 2, from run pf:2026-10-12-SILVER-1h.tsv:2.
| 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 | 3.69 | 1,064 | 34.96 | 572,728 USD | -22,492 |
| Gold | 10 min | 1.32 | 1,733 | 37.10 | 4,301 EUR | -627 |
| Silver | 15 min | 1.30 | 1,733 | 35.72 | 56,574 USD | -12,121 |
| USD/JPY | Daily | n/a | 118 | 37.29 | 1,791,760 USD | -1,042,160 |
| USD/JPY | 15 min | n/a | 1,649 | 37.60 | 721,550 USD | -223,110 |
| USD/JPY | 10 min | n/a | 1,675 | 38.27 | 578,970 USD | -243,830 |
| USD/JPY | 5 min | n/a | 1,738 | 37.05 | 352,410 USD | -168,320 |
| EUR/USD | Daily | n/a | 115 | 40.87 | 133,087 USD | -40,571 |
| Silver | 10 min | n/a | 1,777 | 34.44 | 31,103 USD | -19,347 |
| Silver | Daily | n/a | 170 | 40.59 | 23,109 USD | -18,417 |
| Nasdaq 100 | 4 hours | n/a | 260 | 40.77 | 18,241 EUR | -5,233 |
| DAX 40 | Daily | n/a | 174 | 40.80 | 17,053 EUR | -7,265 |
| Nikkei 225 | 2 min | n/a | 1,740 | 35.00 | 13,904 USD | -11,302 |
| Brent Crude | 4 hours | n/a | 164 | 43.29 | 13,034 EUR | -5,162 |
| DAX 40 | 15 min | n/a | 1,721 | 36.78 | 6,415 EUR | -6,005 |
| US Crude Oil | 5 min | n/a | 1,703 | 36.93 | 4,500 EUR | -3,131 |
| S&P 500 | 4 hours | n/a | 275 | 35.27 | 3,128 EUR | -1,434 |
| Gold | Daily | n/a | 166 | 39.16 | 2,380 EUR | -871 |
| Gold | 4 hours | n/a | 286 | 39.51 | 2,336 EUR | -989 |
| Gold | 30 min | n/a | 1,704 | 36.44 | 1,909 EUR | -1,063 |
| Gold | 1 hour | n/a | 1,045 | 35.60 | 1,333 EUR | -1,262 |
Charts
Top 10 of 21 runs. The full list is in the table above.
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // Leading Lagging Stochastic Swing // ProRealAlgos Strategy Library | prorealalgos.com // Type: Momentum // Direction: Long & short // Timeframe tested: 1 hour // ============================================================== DEFPARAM CumulateOrders = false ONCE rawfast = 50 ONCE rawslow = 50 ONCE buylast = 0 ONCE buyprev = 0 ONCE selllast = 0 ONCE sellprev = 0 hhf = highest[5](high) llf = lowest[5](low)
39 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 3.69 over 1,064 trades.
The best run had a maximum drawdown of 22,492 USD at the tested position size, against a net result of 572,728 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.