The strategy buys when the 9-period EMA crosses above the 20-period or 55-period EMA, and sells short on the mirror crosses. Each trade has a 7.41% stop and a 22.22% target from entry, and an opposite cross reverses the position.
Best run of 10. USD/JPY, Daily, spread 1, from run pf:2026-10-13-USDJPY-D.tsv:1.
| Period | Up to 2026-10-13 |
| 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-13 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| USD/JPYBest run | Daily | 1.43 | 643 | 30.17 | 2,998,250 USD | -458,000 |
| USD/JPY | 1 hour | n/a | 6,514 | 29.06 | 943,740 USD | -286,260 |
| EUR/USD | Daily | n/a | 592 | 34.12 | 196,116 USD | -54,467 |
| Silver | 1 hour | n/a | 5,838 | 25.47 | 90,802 USD | -53,446 |
| Nikkei 225 | Daily | n/a | 522 | 30.84 | 66,548 USD | -14,066 |
| Silver | 4 hours | n/a | 1,578 | 25.98 | 41,471 USD | -14,314 |
| Nasdaq 100 | Daily | n/a | 538 | 26.58 | 10,707 EUR | -6,367 |
| US Crude Oil | Daily | n/a | 554 | 31.23 | 9,369 EUR | -7,443 |
| Gold | 4 hours | n/a | 1,432 | 30.17 | 3,186 EUR | -1,518 |
| Gold | Daily | n/a | 694 | 27.67 | 2,815 EUR | -887 |
Charts
The code
// ============================================================== // Fast EMA Crossover Reversal // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false fast = ExponentialAverage[9](close) mid = ExponentialAverage[20](close) slow = ExponentialAverage[55](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 10 market and timeframe combinations. The best run was USD/JPY, Daily, with a profit factor of 1.43 over 643 trades.
The best run had a maximum drawdown of 458,000 USD at the tested position size, against a net result of 2,998,250 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.