The idea buys when the 9-period EMA crosses above the 50-period EMA on a bar where RSI(14) rose more than 5 points and is below 70. It closes the long when the 50-period EMA crosses above the 9-period EMA, with no stop or target.
Best run of 31. Gold, 30 min, spread 0.6, from run pf:2026-10-12-GOLD-30m.tsv:6.
| Period | Up to 2026-10-12 |
| Instrument | Gold, 30 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-12 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| GoldBest run | 30 min | 1.50 | 751 | 31.29 | 1,748 EUR | -383 |
| USD/JPY | Daily | n/a | 46 | 30.43 | 697,720 USD | -269,370 |
| USD/JPY | 15 min | n/a | 792 | 30.68 | 233,830 USD | -104,090 |
| USD/JPY | 30 min | n/a | 723 | 31.81 | 181,090 USD | -99,320 |
| USD/JPY | 10 min | n/a | 796 | 28.52 | 157,240 USD | -113,180 |
| EUR/USD | 5 min | n/a | 903 | 24.25 | 95,638 USD | -54,752 |
| EUR/USD | 2 min | n/a | 848 | 23.58 | 72,355 USD | -54,815 |
| Dow Jones | Daily | n/a | 44 | 43.18 | 12,085 EUR | -3,945 |
| Nikkei 225 | 4 hours | n/a | 106 | 33.02 | 11,069 USD | -5,666 |
| Silver | 5 min | n/a | 914 | 24.18 | 10,580 USD | -9,141 |
| Nikkei 225 | Daily | n/a | 42 | 33.33 | 9,580 USD | -8,680 |
| Nasdaq 100 | 1 hour | n/a | 430 | 33.02 | 6,833 EUR | -2,181 |
| Nikkei 225 | 2 min | n/a | 753 | 31.47 | 5,894 USD | -5,336 |
| Dow Jones | 5 min | n/a | 813 | 26.20 | 5,643 EUR | -3,232 |
| Nikkei 225 | 1 hour | n/a | 356 | 30.90 | 5,631 USD | -4,239 |
| US Crude Oil | Daily | n/a | 51 | 47.06 | 5,442 EUR | -3,722 |
| Nasdaq 100 | 15 min | n/a | 763 | 32.90 | 5,370 EUR | -2,535 |
| DAX 40 | Daily | n/a | 38 | 39.47 | 5,194 EUR | -3,008 |
| Nasdaq 100 | 4 hours | n/a | 126 | 35.71 | 5,017 EUR | -2,109 |
| GBP/USD | Daily | n/a | 66 | 34.85 | 4,224 USD | -4,191 |
| DAX 40 | 1 hour | n/a | 414 | 30.43 | 3,820 EUR | -2,747 |
| Dow Jones | 3 min | n/a | 825 | 26.79 | 3,746 EUR | -2,419 |
| US Crude Oil | 4 hours | n/a | 88 | 31.82 | 3,661 EUR | -3,013 |
| DAX 40 | 15 min | n/a | 833 | 29.53 | 2,104 EUR | -1,570 |
| Nasdaq 100 | 5 min | n/a | 740 | 29.19 | 1,846 EUR | -1,640 |
| Gold | 4 hours | n/a | 122 | 36.07 | 1,693 EUR | -535 |
| Gold | Daily | n/a | 49 | 30.61 | 1,451 EUR | -930 |
| Gold | 15 min | n/a | 846 | 29.20 | 1,297 EUR | -337 |
| FTSE 100 | 4 hours | n/a | 115 | 32.17 | 1,274 EUR | -1,007 |
| Gold | 1 hour | n/a | 486 | 32.30 | 1,216 EUR | -570 |
| Gold | 5 min | n/a | 849 | 26.03 | 685 EUR | -422 |
Charts
Top 10 of 31 runs. The full list is in the table above.
The code
// ============================================================== // EMA Cross With RSI Momentum Filter // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long only // Timeframe tested: 30 minutes // ============================================================== DEFPARAM CumulateOrders = false myRsi = RSI[14](close) fast = ExponentialAverage[9](close) slow = ExponentialAverage[50](close)
10 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 31 market and timeframe combinations. The best run was Gold, 30 minutes, with a profit factor of 1.50 over 751 trades.
The best run had a maximum drawdown of 383 EUR at the tested position size, against a net result of 1,748 EUR.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.