The strategy buys when the 5-period EMA crosses over the 13-period EMA with RSI above 50, and sells short on the mirror cross with RSI below 50. Positions also close when RSI falls below 45 for longs or rises above 55 for shorts.
Best run of 7. USD/JPY, Daily, spread 1, from run pf:2026-10-10-USDJPY-D.tsv:5.
| Period | Up to 2026-10-10 |
| Instrument | USD/JPY, Daily |
| Spread | 1 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-10 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| USD/JPYBest run | Daily | 1.40 | 869 | 30.15 | 3,087,730 USD | -526,100 |
| USD/JPY | 1 hour | n/a | 8,682 | 28.63 | 348,280 USD | -303,620 |
| EUR/USD | Daily | n/a | 794 | 33.25 | 145,383 USD | -44,565 |
| Nikkei 225 | Daily | n/a | 729 | 31.96 | 30,557 USD | -17,007 |
| GBP/USD | Daily | n/a | 868 | 31.91 | 23,229 USD | -10,601 |
| Brent Crude | Daily | n/a | 340 | 33.82 | 16,508 EUR | -13,737 |
| Gold | 4 hours | n/a | 1,936 | 29.80 | 1,937 EUR | -863 |
Charts
The code
// ============================================================== // EMA Crossover With RSI Filter (long and short) // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false fastema = ExponentialAverage[5](close) slowema = ExponentialAverage[13](close) myRsi = RSI[14](close)
23 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 7 market and timeframe combinations. The best run was USD/JPY, Daily, with a profit factor of 1.40 over 869 trades.
The best run had a maximum drawdown of 526,100 USD at the tested position size, against a net result of 3,087,730 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.