The system buys when a stochastic-based close reversal agrees with a Commodity Selection Index reading below its 14-period average, and sells short when the index is above that average with a bearish reversal. Positions close when the states no longer agree.
Best run of 5. Silver, 1 hour, spread 2, from run pf:2026-10-12-SILVER-1h.tsv:28.
| 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 | 2.63 | 5,528 | 43.78 | 556,963 USD | -37,395 |
| USD/JPY | Daily | n/a | 592 | 46.96 | 1,763,970 USD | -611,350 |
| Nikkei 225 | Daily | n/a | 495 | 46.67 | 27,574 USD | -12,593 |
| GBP/USD | 4 hours | n/a | 2,411 | 47.28 | 4,446 USD | -4,304 |
| S&P 500 | Daily | n/a | 712 | 43.12 | 1,754 EUR | -1,231 |
Charts
The code
// ============================================================== // Reversal Pattern With Commodity Selection Index // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long & short // Timeframe tested: 1 hour // ============================================================== DEFPARAM CumulateOrders = false ONCE stoch = 50 ONCE posrev = 0 ONCE poscsi = 0 hh = highest[14](high) ll = lowest[14](low)
44 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 5 market and timeframe combinations. The best run was Silver, 1 hour, with a profit factor of 2.63 over 5,528 trades.
The best run had a maximum drawdown of 37,395 USD at the tested position size, against a net result of 556,962 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.