The system buys when EMA(5) crosses over EMA(13) with RSI(7) above 55, and sells short on the mirror cross with RSI(7) below 45. Stops sit at 0.8 times ATR(14) and targets at 1.2 times, and entries need ATR(14) above 0.011% of price.
Best run of 3. Silver, 4 hours, spread 2, from run sweeps:2026-10-03-SILVER-4h-opt.tsv:17.
| Period | Up to 2026-10-03 |
| Instrument | Silver, 4 hours |
| 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-03 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| SilverBest run | 4 hours | n/a | 2,059 | 34.34 | 66,597 USD | -30,950 |
| Dow Jones | Daily | n/a | 986 | 41.89 | 10,858 EUR | -3,951 |
| FTSE 100 | Daily | n/a | 764 | 44.37 | 3,115 EUR | -1,677 |
Charts
The code
// ============================================================== // EMA Cross With RSI And ATR Filter // ProRealAlgos Strategy Library | prorealalgos.com // Type: Momentum // Direction: Long & short // Timeframe tested: 4 hours // ============================================================== DEFPARAM CumulateOrders = false emafast = ExponentialAverage[5](close) emaslow = ExponentialAverage[13](close) rsival = RSI[7](close) atrval = AverageTrueRange[14](close)
21 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 3 market and timeframe combinations. The best run by trade count was Silver, 4 hours, with 2,059 trades.
The best run had a maximum drawdown of 30,950 USD at the tested position size, against a net result of 66,597 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.