Buys when the 13-bar EMA crosses above the 34-bar EMA while volume is above its 10-bar average. Sells when the 13-bar EMA crosses below the 34-bar EMA, and each trade has a 20% stop and 50% target.
Best run of 28. Gold, 10 min, spread 0.6, from run sweeps:2026-10-04-GOLD-10m-opt.tsv:40.
| Period | Up to 2026-10-04 |
| Instrument | Gold, 10 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-04 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| GoldBest run | 10 min | n/a | 1,719 | 29.38 | 694 EUR | -596 |
| USD/JPY | 1 hour | n/a | 760 | 32.89 | 390,470 USD | -180,990 |
| USD/JPY | 30 min | n/a | 1,463 | 31.24 | 302,490 USD | -157,520 |
| USD/JPY | Daily | n/a | 33 | 30.30 | 230,680 USD | -144,020 |
| USD/JPY | 10 min | n/a | 1,539 | 30.73 | 150,940 USD | -148,040 |
| Nikkei 225 | Daily | n/a | 22 | 36.36 | 26,015 USD | -9,594 |
| Nikkei 225 | 3 min | n/a | 1,243 | 31.38 | 15,209 USD | -4,736 |
| Nasdaq 100 | Daily | n/a | 20 | 65.00 | 14,148 EUR | -3,026 |
| Silver | 4 hours | n/a | 220 | 32.27 | 11,105 USD | -10,318 |
| Dow Jones | Daily | n/a | 10 | 60.00 | 10,123 EUR | -3,275 |
| Dow Jones | 30 min | n/a | 649 | 34.51 | 8,203 EUR | -8,166 |
| Nasdaq 100 | 4 hours | n/a | 88 | 45.45 | 7,711 EUR | -3,098 |
| Brent Crude | 4 hours | n/a | 116 | 37.93 | 6,894 EUR | -3,663 |
| Nasdaq 100 | 1 hour | n/a | 489 | 35.38 | 6,887 EUR | -3,766 |
| Nasdaq 100 | 15 min | n/a | 1,579 | 30.27 | 6,041 EUR | -2,897 |
| Nasdaq 100 | 30 min | n/a | 994 | 34.71 | 5,765 EUR | -3,351 |
| US Crude Oil | 1 hour | n/a | 739 | 34.37 | 4,824 EUR | -2,656 |
| DAX 40 | 4 hours | n/a | 107 | 29.91 | 4,524 EUR | -2,071 |
| DAX 40 | 30 min | n/a | 897 | 33.11 | 4,306 EUR | -1,839 |
| Brent Crude | Daily | n/a | 21 | 38.10 | 4,164 EUR | -2,874 |
| S&P 500 | Daily | n/a | 18 | 61.11 | 2,726 EUR | -489 |
| Gold | 4 hours | n/a | 224 | 34.82 | 2,599 EUR | -1,013 |
| Gold | 1 hour | n/a | 776 | 31.06 | 1,944 EUR | -893 |
| FTSE 100 | 4 hours | n/a | 118 | 32.20 | 1,800 EUR | -1,447 |
| S&P 500 | 4 hours | n/a | 85 | 44.71 | 1,700 EUR | -788 |
| Gold | 5 min | n/a | 1,619 | 29.83 | 1,227 EUR | -325 |
| Gold | 30 min | n/a | 1,614 | 30.79 | 1,028 EUR | -605 |
| Gold | Daily | n/a | 49 | 34.69 | 663 EUR | -385 |
Charts
Top 10 of 28 runs. The full list is in the table above.
The code
// ============================================================== // EMA Crossover With Volume Filter // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long only // Timeframe tested: 10 minutes // ============================================================== DEFPARAM CumulateOrders = false emaf = ExponentialAverage[13](close) emas = ExponentialAverage[34](close) volavg = Average[10](volume)
13 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 28 market and timeframe combinations. The best run by trade count was Gold, 10 minutes, with 1,719 trades.
The best run had a maximum drawdown of 596 EUR at the tested position size, against a net result of 694 EUR.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.