The idea buys on a downward cross of a 12 period EMA through a 26 period EMA, a contrarian entry. It sells the long on the upward cross of the same two averages.
Best run of 19. Silver, 1 hour, spread 2, from run pf:2026-10-04-SILVER-1h.tsv:3.
| Period | Up to 2026-10-04 |
| Instrument | Silver, 1 hour |
| Spread | 2 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 |
|---|---|---|---|---|---|---|
| SilverBest run | 1 hour | 3.88 | 2,091 | 70.01 | 541,335 USD | -34,089 |
| USD/JPY | 4 hours | n/a | 645 | 72.40 | 407,010 USD | -327,410 |
| EUR/USD | 3 min | n/a | 3,682 | 64.72 | 216,389 USD | -76,438 |
| EUR/USD | 10 min | n/a | 3,629 | 69.52 | 104,888 USD | -64,242 |
| Nikkei 225 | 4 hours | n/a | 467 | 73.66 | 28,187 USD | -11,944 |
| Dow Jones | Daily | n/a | 255 | 78.82 | 20,335 EUR | -9,029 |
| Nikkei 225 | 1 hour | n/a | 1,731 | 70.54 | 17,619 USD | -12,208 |
| Nasdaq 100 | 4 hours | n/a | 572 | 77.62 | 16,187 EUR | -4,945 |
| Dow Jones | 1 hour | n/a | 685 | 73.58 | 15,251 EUR | -6,973 |
| DAX 40 | 4 hours | n/a | 571 | 75.48 | 11,951 EUR | -5,887 |
| Dow Jones | 15 min | n/a | 2,854 | 74.00 | 11,135 EUR | -7,575 |
| FTSE 100 | Daily | n/a | 217 | 82.03 | 8,755 EUR | -2,643 |
| Nasdaq 100 | Daily | n/a | 186 | 78.49 | 8,621 EUR | -4,995 |
| DAX 40 | Daily | n/a | 240 | 70.42 | 8,112 EUR | -5,488 |
| Nasdaq 100 | 1 hour | n/a | 2,010 | 70.65 | 6,460 EUR | -4,717 |
| FTSE 100 | 4 hours | n/a | 546 | 72.53 | 3,605 EUR | -2,729 |
| S&P 500 | Daily | n/a | 259 | 76.83 | 3,113 EUR | -1,066 |
| S&P 500 | 4 hours | n/a | 546 | 76.37 | 2,409 EUR | -1,289 |
| S&P 500 | 1 hour | n/a | 2,075 | 71.76 | 2,386 EUR | -1,206 |
Charts
Top 10 of 19 runs. The full list is in the table above.
The code
// ============================================================== // EMA Contrarian Crossover Long // ProRealAlgos Strategy Library | prorealalgos.com // Type: Mean reversion // Direction: Long only // Timeframe tested: 1 hour // ============================================================== DEFPARAM CumulateOrders = false emaf = ExponentialAverage[12](close) emas = ExponentialAverage[26](close)
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 19 market and timeframe combinations. The best run was Silver, 1 hour, with a profit factor of 3.88 over 2,091 trades.
The best run had a maximum drawdown of 34,088 USD at the tested position size, against a net result of 541,335 USD.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.