The idea buys when the 7-period EMA crosses above the 50-period EMA while the 200-period SMA is not falling, and sells short on the mirror-image cross while it is falling. Trades use a 0.5 percent stop and 1.5 percent target.
Best run of 18. Dow Jones, Daily, spread 3, from run pf:2026-10-05-DOW30-D.tsv:13.
| 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 | 1.52 | 221 | 25.34 | 4,090 EUR | -719 |
| USD/JPY | 1 hour | n/a | 1,329 | 27.92 | 526,710 USD | -308,900 |
| EUR/USD | 2 min | n/a | 1,181 | 29.13 | 74,340 USD | -24,351 |
| EUR/USD | 3 min | n/a | 1,119 | 29.67 | 28,143 USD | -11,025 |
| EUR/USD | 4 hours | n/a | 606 | 26.73 | 26,381 USD | -20,488 |
| EUR/USD | 5 min | n/a | 1,113 | 30.37 | 20,436 USD | -11,933 |
| Nikkei 225 | 3 min | n/a | 1,287 | 28.83 | 12,165 USD | -10,355 |
| Nasdaq 100 | 1 hour | n/a | 1,622 | 22.75 | 3,997 EUR | -3,695 |
| Nasdaq 100 | 4 hours | n/a | 477 | 25.16 | 3,190 EUR | -1,073 |
| Dow Jones | 4 hours | n/a | 161 | 27.33 | 2,893 EUR | -2,613 |
| US Crude Oil | 1 hour | n/a | 1,305 | 25.98 | 1,734 EUR | -1,713 |
| Gold | 5 min | n/a | 1,381 | 28.82 | 1,653 EUR | -618 |
| FTSE 100 | Daily | n/a | 210 | 32.86 | 1,358 EUR | -708 |
| DAX 40 | Daily | n/a | 216 | 22.69 | 1,357 EUR | -571 |
| Gold | 2 min | n/a | 1,256 | 29.94 | 1,032 EUR | -817 |
| Gold | 3 min | n/a | 1,309 | 30.48 | 1,002 EUR | -683 |
| S&P 500 | 1 hour | n/a | 1,422 | 25.81 | 888 EUR | -782 |
| S&P 500 | 4 hours | n/a | 472 | 26.27 | 732 EUR | -491 |
Charts
Top 10 of 18 runs. The full list is in the table above.
The code
// ============================================================== // EMA Crossover With Trend Filter (long and short) // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false smatrend = Average[200](close)
19 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 | 4,089.70 EUR |
| Net, long run | 4,089.70 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 1.52 over 221 trades.
The best run had a maximum drawdown of 719 EUR at the tested position size, against a net result of 4,090 EUR.
It trades both long and short.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.