The system buys 1 contract when the 10-period EMA crosses above the 20-period EMA and sells when the fast average crosses back below. Signals begin after 300 bars of data.
Best run of 19. Gold, Daily, spread 0.6, from run pf:2026-10-05-GOLD-D.tsv:4.
| Period | Up to 2026-10-05 |
| Instrument | Gold, Daily |
| 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-05 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| GoldBest run | Daily | 2.04 | 292 | 32.88 | 3,530 EUR | -850 |
| Dow Jones | Daily | 1.75 | 298 | 40.27 | 26,306 EUR | -5,694 |
| Nikkei 225 | Daily | 1.66 | 230 | 35.65 | 51,684 USD | -10,039 |
| S&P 500 | Daily | 1.63 | 309 | 34.63 | 3,347 EUR | -710 |
| USD/JPY | Daily | n/a | 279 | 35.84 | 929,340 USD | -445,300 |
| USD/JPY | 1 hour | n/a | 2,918 | 31.15 | 775,730 USD | -241,970 |
| USD/JPY | 30 min | n/a | 4,237 | 29.74 | 558,710 USD | -182,340 |
| EUR/USD | Daily | n/a | 263 | 34.22 | 46,286 USD | -44,632 |
| Nikkei 225 | 4 hours | n/a | 575 | 33.74 | 21,697 USD | -16,305 |
| Nasdaq 100 | Daily | n/a | 241 | 36.51 | 18,899 EUR | -4,995 |
| Dow Jones | 4 hours | n/a | 211 | 36.49 | 16,239 EUR | -5,755 |
| Nasdaq 100 | 1 hour | n/a | 2,513 | 32.43 | 13,880 EUR | -3,643 |
| DAX 40 | Daily | n/a | 313 | 39.94 | 13,716 EUR | -3,633 |
| Nasdaq 100 | 4 hours | n/a | 662 | 36.40 | 12,578 EUR | -4,679 |
| DAX 40 | 1 hour | n/a | 2,367 | 32.15 | 11,215 EUR | -3,862 |
| DAX 40 | 30 min | n/a | 4,232 | 30.29 | 10,233 EUR | -3,616 |
| Gold | 4 hours | n/a | 644 | 33.23 | 3,032 EUR | -1,114 |
| Gold | 1 hour | n/a | 2,537 | 29.48 | 2,910 EUR | -862 |
| S&P 500 | 4 hours | n/a | 691 | 35.60 | 1,342 EUR | -1,276 |
Charts
Top 10 of 19 runs. The full list is in the table above.
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // EMA 10/20 Crossover Long // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long only // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false emafast = ExponentialAverage[10](close) emaslow = ExponentialAverage[20](close)
9 more lines: the entry and exit rules.
Setup
Gold had no history beyond the standard run, so both runs used 13,000 bars.
| Bars available | 13,000 |
| Net, standard 200,000-bar run | 3,530.40 EUR |
| Net, long run | 3,530.40 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 19 market and timeframe combinations. The best run was Gold, Daily, with a profit factor of 2.04 over 292 trades.
The best run had a maximum drawdown of 850 EUR at the tested position size, against a net result of 3,530 EUR.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.