Buys when the 10 EMA crosses above the 20 EMA while above the 100 EMA on an up bar (close above open). Closes the long when RSI(14) is above 70, or after 24 bars if the close is above the entry price.
Best run of 18. Dow Jones, Daily, spread 3, from run pf:2026-10-05-DOW30-D.tsv:2.
| Period | Up to 2026-10-05 |
| Instrument | Dow Jones, Daily |
| Spread | 3 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-05 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| Dow JonesBest run | Daily | 11.90 | 108 | 88.89 | 21,789 EUR | -5,239 |
| S&P 500 | 1 hour | 1.55 | 733 | 78.31 | 2,154 EUR | -483 |
| USD/JPY | Daily | n/a | 63 | 84.13 | 782,510 USD | -306,500 |
| Nikkei 225 | 4 hours | n/a | 171 | 81.29 | 25,582 USD | -11,063 |
| Dow Jones | 1 hour | n/a | 248 | 83.06 | 12,199 EUR | -4,508 |
| Nikkei 225 | 1 hour | n/a | 534 | 76.03 | 11,329 USD | -7,859 |
| Nikkei 225 | Daily | n/a | 60 | 86.67 | 10,598 USD | -9,554 |
| US Crude Oil | Daily | n/a | 64 | 84.38 | 8,565 EUR | -3,816 |
| Nasdaq 100 | 4 hours | n/a | 218 | 86.70 | 7,218 EUR | -4,261 |
| DAX 40 | 4 hours | n/a | 203 | 85.71 | 7,132 EUR | -5,957 |
| US Crude Oil | 4 hours | n/a | 130 | 83.85 | 6,326 EUR | -4,444 |
| DAX 40 | Daily | n/a | 76 | 88.16 | 5,925 EUR | -5,243 |
| Nasdaq 100 | Daily | n/a | 91 | 81.32 | 5,731 EUR | -5,361 |
| FTSE 100 | Daily | n/a | 78 | 87.18 | 4,061 EUR | -1,974 |
| FTSE 100 | 15 min | n/a | 1,175 | 75.40 | 1,739 EUR | -1,717 |
| S&P 500 | Daily | n/a | 122 | 84.43 | 1,270 EUR | -1,190 |
| Gold | 4 hours | n/a | 164 | 82.93 | 1,254 EUR | -387 |
| Gold | 5 min | n/a | 1,106 | 74.86 | 982 EUR | -629 |
Charts
Top 10 of 18 runs. The full list is in the table above.
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // EMA Crossover Trend Long // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long only // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ONCE bars = 0 myRsi = RSI[14](close) emaa = ExponentialAverage[10](close) emab = ExponentialAverage[20](close) emac = ExponentialAverage[100](close)
20 more lines: the entry and exit rules.
Setup
Dow Jones had no history beyond the standard run, so both runs used 14,000 bars.
| Bars available | 14,000 |
| Net, standard 200,000-bar run | 21,788.60 EUR |
| Net, long run | 21,788.60 EUR |
| Net on the older data alone | 0.00 EUR |
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 18 market and timeframe combinations. The best run was Dow Jones, Daily, with a profit factor of 11.90 over 108 trades.
The best run had a maximum drawdown of 5,239 EUR at the tested position size, against a net result of 21,789 EUR.
It only takes long trades.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.