The strategy buys when price is above a rising 50-bar EMA that is above the 200-bar EMA, and RSI(3) crosses above 20 with ADX(5) above 30. It sells short on the mirror setup with RSI(3) crossing under 80.
Best run of 4. Silver, 4 hours, spread 2, from run pf:2026-10-12-SILVER-4h.tsv:5.
| Period | Up to 2026-10-12 |
| 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-12 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| SilverBest run | 4 hours | 5.20 | 267 | 34.46 | 139,358 USD | -7,411 |
| Dow Jones | 4 hours | n/a | 94 | 46.81 | 4,640 EUR | -2,059 |
| USD/JPY | Daily | n/a | 141 | 40.43 | 3,210 USD | -2,310 |
| S&P 500 | 4 hours | n/a | 332 | 40.36 | 789 EUR | -326 |
Charts
The code
// ============================================================== // EMA Trend RSI Cross With ADX // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long & short // Timeframe tested: 4 hours // ============================================================== DEFPARAM CumulateOrders = false emafast = ExponentialAverage[50](close) emaslow = ExponentialAverage[200](close) myRsi = RSI[3](close) myAdx = ADX[5] myAtr = AverageTrueRange[14](close) slope = emafast - emafast[5]
22 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 4 market and timeframe combinations. The best run was Silver, 4 hours, with a profit factor of 5.20 over 267 trades.
The best run had a maximum drawdown of 7,410 USD at the tested position size, against a net result of 139,358 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.