The strategy buys when the 50-period EMA crosses above the 200-period EMA with RSI(14) below 70, and sells short on the mirror cross with RSI(14) above 30. Each trade has a 1% target and a 0.5% stop from entry.
Best run of 11. Gold, 2 min, spread 0.6, from run sweeps:2026-10-04-GOLD-2m-opt.tsv:36.
| Period | Up to 2026-10-04 |
| 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-04 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| GoldBest run | 2 min | n/a | 949 | 28.66 | 675 EUR | -345 |
| USD/JPY | 30 min | n/a | 806 | 32.01 | 315,460 USD | -175,870 |
| USD/JPY | 3 min | n/a | 836 | 29.07 | 223,620 USD | -123,330 |
| Nikkei 225 | 15 min | n/a | 825 | 33.58 | 9,217 USD | -4,102 |
| Nikkei 225 | 3 min | n/a | 859 | 28.06 | 6,453 USD | -5,919 |
| GBP/USD | 4 hours | n/a | 209 | 39.23 | 3,093 USD | -887 |
| Dow Jones | 4 hours | n/a | 29 | 48.28 | 2,465 EUR | -1,029 |
| Brent Crude | 1 hour | n/a | 290 | 37.59 | 1,353 EUR | -481 |
| FTSE 100 | 1 hour | n/a | 532 | 34.59 | 1,193 EUR | -997 |
| Dow Jones | Daily | n/a | 60 | 31.67 | 821 EUR | -476 |
| GBP/USD | Daily | n/a | 51 | 39.22 | 713 USD | -336 |
Charts
Top 10 of 11 runs. The full list is in the table above.
The code
// ============================================================== // EMA Crossover With RSI Filter (long and short) 3 // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long & short // Timeframe tested: 2 minutes // ============================================================== DEFPARAM CumulateOrders = false emafast = ExponentialAverage[50](close) emaslow = ExponentialAverage[200](close) myRsi = RSI[14](close)
16 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 Gold, 2 minutes, with 949 trades.
The best run had a maximum drawdown of 345 EUR at the tested position size, against a net result of 675 EUR.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.