The strategy buys when the close crosses above its 14-bar simple moving average. It sells when RSI(14) crosses below 70, rises above 75, or the close crosses below the 7-bar average of lows or the 14-bar average.
Best run of 10. Silver, 1 hour, spread 2, from run pf:2026-10-12-SILVER-1h.tsv:14.
| 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.13 | 8,999 | 23.52 | 458,692 USD | -112,669 |
| Nikkei 225 | Daily | n/a | 816 | 35.78 | 43,878 USD | -12,377 |
| Dow Jones | Daily | n/a | 1,007 | 32.57 | 17,640 EUR | -7,007 |
| Nikkei 225 | 4 hours | n/a | 1,831 | 31.57 | 13,034 USD | -12,232 |
| Nasdaq 100 | Daily | n/a | 793 | 33.80 | 9,939 EUR | -3,765 |
| DAX 40 | 4 hours | n/a | 2,088 | 32.61 | 7,022 EUR | -3,274 |
| Brent Crude | 4 hours | n/a | 1,205 | 31.20 | 6,253 EUR | -5,224 |
| Nasdaq 100 | 4 hours | n/a | 2,094 | 33.33 | 5,662 EUR | -4,699 |
| S&P 500 | Daily | n/a | 1,054 | 34.35 | 2,467 EUR | -1,112 |
| Gold | 4 hours | n/a | 2,159 | 29.50 | 1,766 EUR | -860 |
Charts
The code
// ============================================================== // SMA Crossover With RSI Exit // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long only // Timeframe tested: 1 hour // ============================================================== DEFPARAM CumulateOrders = false maf = Average[14](close) masl = Average[7](low) myRsi = RSI[14](close)
12 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 was Silver, 1 hour, with a profit factor of 2.13 over 8,999 trades.
The best run had a maximum drawdown of 112,669 USD at the tested position size, against a net result of 458,692 USD.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.