Buys when a 21-period simple average crosses above a 120-period simple average with RSI at or above 60, and sells short on the mirror cross with RSI at or below 40. Any opposite cross closes the open trade.
Best run of 14. Gold, 2 min, spread 0.6, from run sweeps:2026-10-12-GOLD-2m-opt.tsv:9.
| Period | Up to 2026-10-12 |
| Instrument | Gold, 2 minutes |
| Spread | 0.6 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 |
|---|---|---|---|---|---|---|
| GoldBest run | 2 min | n/a | 1,350 | 33.41 | 1,162 EUR | -516 |
| Silver | 1 hour | n/a | 830 | 32.17 | 27,121 USD | -20,911 |
| Silver | 3 min | n/a | 1,247 | 33.12 | 16,839 USD | -10,773 |
| Dow Jones | 1 hour | n/a | 289 | 38.75 | 15,355 EUR | -8,563 |
| Nikkei 225 | 2 min | n/a | 1,278 | 34.04 | 11,951 USD | -10,052 |
| Nasdaq 100 | Daily | n/a | 68 | 45.59 | 11,264 EUR | -5,115 |
| US Crude Oil | Daily | n/a | 86 | 41.86 | 11,049 EUR | -6,760 |
| Brent Crude | Daily | n/a | 35 | 45.71 | 9,254 EUR | -6,013 |
| DAX 40 | 10 min | n/a | 1,291 | 35.86 | 4,652 EUR | -4,443 |
| S&P 500 | Daily | n/a | 99 | 39.39 | 2,566 EUR | -1,431 |
| Gold | Daily | n/a | 90 | 32.22 | 2,162 EUR | -1,315 |
| Gold | 30 min | n/a | 1,295 | 35.68 | 2,091 EUR | -1,351 |
| Gold | 1 hour | n/a | 818 | 36.31 | 1,999 EUR | -825 |
| Gold | 4 hours | n/a | 235 | 35.74 | 1,715 EUR | -1,024 |
Charts
Top 10 of 14 runs. The full list is in the table above.
The code
// ============================================================== // SMA Cross With RSI Filter // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long & short // Timeframe tested: 2 minutes // ============================================================== DEFPARAM CumulateOrders = false tenkan = Average[21](close) kijun = Average[120](close) myRsi = RSI[14](close)
24 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 14 market and timeframe combinations. The best run by trade count was Gold, 2 minutes, with 1,350 trades.
The best run had a maximum drawdown of 516 EUR at the tested position size, against a net result of 1,162 EUR.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.