Trades the sign of a 365 bar rate of change, going long when it turns positive and short when it turns negative. Each entry has a 6% stop, and a stopped trade is followed by an entry on the opposite side.
Best run of 11. Silver, 3 min, spread 2, from run sweeps:2026-10-12-SILVER-3m-opt.tsv:7.
| Period | Up to 2026-10-12 |
| 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-12 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| SilverBest run | 3 min | n/a | 2,522 | 24.43 | 16,486 USD | -16,056 |
| Nikkei 225 | Daily | n/a | 97 | 36.08 | 54,469 USD | -14,704 |
| Nasdaq 100 | Daily | n/a | 86 | 25.58 | 23,601 EUR | -8,921 |
| Silver | 2 min | n/a | 2,345 | 26.52 | 22,340 USD | -17,637 |
| Dow Jones | Daily | n/a | 154 | 28.57 | 16,823 EUR | -13,757 |
| S&P 500 | Daily | n/a | 133 | 23.31 | 4,386 EUR | -2,020 |
| Gold | Daily | n/a | 171 | 36.26 | 4,074 EUR | -1,534 |
| S&P 500 | 4 hours | n/a | 303 | 32.34 | 3,476 EUR | -1,123 |
| Gold | 4 hours | n/a | 361 | 35.18 | 3,001 EUR | -1,094 |
| Gold | 1 hour | n/a | 1,318 | 28.45 | 2,242 EUR | -1,059 |
| Gold | 2 min | n/a | 2,382 | 27.41 | 1,023 EUR | -982 |
Charts
Top 10 of 11 runs. The full list is in the table above.
The code
// ============================================================== // ROC Zero Cross Auto Reverse // ProRealAlgos Strategy Library | prorealalgos.com // Type: Momentum // Direction: Long & short // Timeframe tested: 3 minutes // ============================================================== DEFPARAM CumulateOrders = false ONCE inbubble = 0 ONCE lastdir = 0 myRoc = (close / close[365] - 1) * 100
34 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 11 market and timeframe combinations. The best run by trade count was Silver, 3 minutes, with 2,522 trades.
The best run had a maximum drawdown of 16,056 USD at the tested position size, against a net result of 16,486 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.