Buys a short-term dip when the open is below the 5-period average of lows, ADX is above 30 and the stochastic %K crosses above %D below 30. Sells when open is at or above the 5-period average of highs or stochastic crosses above 70.
Best run of 10. Silver, 3 min, spread 2, from run sweeps:2026-10-04-SILVER-3m-opt.tsv:13.
| Period | Up to 2026-10-04 |
| Instrument | Silver, 3 minutes |
| 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-04 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| SilverBest run | 3 min | n/a | 1,217 | 59.57 | 4,852 USD | -4,665 |
| EUR/USD | 4 hours | n/a | 435 | 66.90 | 33,013 USD | -10,375 |
| EUR/USD | Daily | n/a | 96 | 71.88 | 17,762 USD | -13,587 |
| Nikkei 225 | Daily | n/a | 88 | 86.36 | 5,959 USD | -1,828 |
| Nasdaq 100 | 4 hours | n/a | 289 | 69.20 | 2,532 EUR | -1,182 |
| Silver | Daily | n/a | 89 | 79.78 | 1,154 USD | -992 |
| S&P 500 | 4 hours | n/a | 278 | 71.22 | 612 EUR | -548 |
| S&P 500 | Daily | n/a | 77 | 80.52 | 370 EUR | -264 |
| Gold | Daily | n/a | 113 | 75.22 | 358 EUR | -108 |
| Gold | 4 hours | n/a | 275 | 66.55 | 299 EUR | -285 |
Charts
The code
// ============================================================== // Stochastic Oversold Scalp Long // ProRealAlgos Strategy Library | prorealalgos.com // Type: Mean reversion // Direction: Long only // Timeframe tested: 3 minutes // ============================================================== DEFPARAM CumulateOrders = false emahigh = ExponentialAverage[5](high) emalow = ExponentialAverage[5](low) hh = Highest[5](high) ll = Lowest[5](low) fastk = 0
20 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 10 market and timeframe combinations. The best run by trade count was Silver, 3 minutes, with 1,217 trades.
The best run had a maximum drawdown of 4,665 USD at the tested position size, against a net result of 4,852 USD.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.