It buys when the close crosses above the 50-period EMA while the close is above the 200-period EMA. It closes the long when the close crosses below the 50-period EMA.
Best run of 15. Dow Jones, Daily, spread 3, from run pf:2026-10-05-DOW30-D.tsv:12.
| 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.79 | 382 | 32.20 | 23,770 EUR | -5,078 |
| USD/JPY | Daily | n/a | 271 | 23.99 | 628,630 USD | -354,600 |
| USD/JPY | 1 hour | n/a | 3,079 | 20.40 | 444,760 USD | -134,470 |
| USD/JPY | 4 hours | n/a | 709 | 22.99 | 246,210 USD | -195,130 |
| EUR/USD | 4 hours | n/a | 864 | 24.77 | 73,082 USD | -25,465 |
| EUR/USD | Daily | n/a | 237 | 26.58 | 44,796 USD | -33,902 |
| Nikkei 225 | Daily | n/a | 263 | 25.10 | 33,787 USD | -12,955 |
| Silver | 4 hours | n/a | 620 | 17.58 | 22,015 USD | -14,062 |
| Dow Jones | 1 hour | n/a | 928 | 22.20 | 8,448 EUR | -4,639 |
| Nasdaq 100 | Daily | n/a | 351 | 25.64 | 7,361 EUR | -6,110 |
| DAX 40 | Daily | n/a | 401 | 25.69 | 7,194 EUR | -4,560 |
| Dow Jones | 30 min | n/a | 1,860 | 20.86 | 5,959 EUR | -5,350 |
| Gold | Daily | n/a | 345 | 22.90 | 3,134 EUR | -1,176 |
| S&P 500 | Daily | n/a | 453 | 27.37 | 2,263 EUR | -900 |
| Gold | 4 hours | n/a | 630 | 23.49 | 2,060 EUR | -1,042 |
Charts
Top 10 of 15 runs. The full list is in the table above.
The code
// ============================================================== // EMA Crossover With Trend Filter (long only) // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long only // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false emafast = ExponentialAverage[50](close) emaslow = ExponentialAverage[200](close)
12 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 | 23,770.30 EUR |
| Net, long run | 23,770.30 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 15 market and timeframe combinations. The best run was Dow Jones, Daily, with a profit factor of 1.79 over 382 trades.
The best run had a maximum drawdown of 5,078 EUR at the tested position size, against a net result of 23,770 EUR.
It only takes long trades.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.