The strategy buys when the 20 EMA is above the 50 EMA, RSI(14) is 58 to 65, and MACD is above zero and its signal. It exits on RSI above 70, a close below the 20 EMA, the 1.5% stop or the 3% target.
Best run of 12. USD/JPY, 1 hour, spread 1, from run sweeps:2026-10-10-USDJPY-1h-opt.tsv:10.
| Period | Up to 2026-10-10 |
| Instrument | USD/JPY, 1 hour |
| 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 | 1 hour | n/a | 3,003 | 40.09 | 353,090 USD | -115,350 |
| USD/JPY | Daily | n/a | 317 | 41.01 | 862,870 USD | -318,260 |
| Nikkei 225 | 4 hours | n/a | 622 | 39.39 | 10,884 USD | -6,111 |
| Dow Jones | 1 hour | n/a | 823 | 40.46 | 7,913 EUR | -2,578 |
| DAX 40 | 4 hours | n/a | 699 | 40.77 | 5,248 EUR | -2,618 |
| Nasdaq 100 | 4 hours | n/a | 760 | 43.29 | 5,044 EUR | -2,998 |
| GBP/USD | Daily | n/a | 295 | 40.00 | 4,323 USD | -2,766 |
| Brent Crude | 4 hours | n/a | 439 | 40.32 | 2,503 EUR | -2,294 |
| FTSE 100 | Daily | n/a | 322 | 42.24 | 2,476 EUR | -1,095 |
| US Crude Oil | Daily | n/a | 307 | 39.41 | 2,244 EUR | -1,081 |
| Gold | 1 hour | n/a | 2,555 | 39.73 | 1,309 EUR | -642 |
| Gold | Daily | n/a | 326 | 41.10 | 562 EUR | -283 |
Charts
Top 10 of 12 runs. The full list is in the table above.
The code
// ============================================================== // Filtered EMA RSI Momentum // ProRealAlgos Strategy Library | prorealalgos.com // Type: Momentum // Direction: Long only // Timeframe tested: 1 hour // ============================================================== DEFPARAM CumulateOrders = false ONCE intrade = 0 emafast = ExponentialAverage[20](close) emaslow = ExponentialAverage[50](close) myRsi = RSI[14](close) myMacd = ExponentialAverage[12](close) - ExponentialAverage[26](close) sig = ExponentialAverage[9](myMacd)
19 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 12 market and timeframe combinations. The best run by trade count was USD/JPY, 1 hour, with 3,003 trades.
The best run had a maximum drawdown of 115,350 USD at the tested position size, against a net result of 353,090 USD.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.