Join waitlist
Strategies / Mean reversion / EMA Contrarian Crossover Long

EMA Contrarian Crossover Long

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.

Mean reversionLong onlySwingSilver1 hour
3.88Profit factor
541,335Net profit USD
70.01%Win rate
2,091Trades
-34,089Max drawdown
259Avg trade

Best run of 19. Silver, 1 hour, spread 2, from run pf:2026-10-04-SILVER-1h.tsv:3.

Entry rules, long

  1. No long position is open.

Exit rules

  1. The 12 period EMA is above the 26 period EMA, and was below the current 26 period EMA on the previous bar, closing the long.

Test conditions

PeriodUp to 2026-10-04
InstrumentSilver, 1 hour
Spread2 points
Starting capital1,000,000
CostsSpread only. Commissions and overnight financing are not included.
BarsUp to 200,000 bars, fewer where the instrument has less history
Last tested2026-10-04

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
SilverBest run1 hour3.88 2,09170.01541,335 USD-34,089
USD/JPY4 hoursn/a 64572.40407,010 USD-327,410
EUR/USD3 minn/a 3,68264.72216,389 USD-76,438
EUR/USD10 minn/a 3,62969.52104,888 USD-64,242
Nikkei 2254 hoursn/a 46773.6628,187 USD-11,944
Dow JonesDailyn/a 25578.8220,335 EUR-9,029
Nikkei 2251 hourn/a 1,73170.5417,619 USD-12,208
Nasdaq 1004 hoursn/a 57277.6216,187 EUR-4,945
Dow Jones1 hourn/a 68573.5815,251 EUR-6,973
DAX 404 hoursn/a 57175.4811,951 EUR-5,887
Dow Jones15 minn/a 2,85474.0011,135 EUR-7,575
FTSE 100Dailyn/a 21782.038,755 EUR-2,643
Nasdaq 100Dailyn/a 18678.498,621 EUR-4,995
DAX 40Dailyn/a 24070.428,112 EUR-5,488
Nasdaq 1001 hourn/a 2,01070.656,460 EUR-4,717
FTSE 1004 hoursn/a 54672.533,605 EUR-2,729
S&P 500Dailyn/a 25976.833,113 EUR-1,066
S&P 5004 hoursn/a 54676.372,409 EUR-1,289
S&P 5001 hourn/a 2,07571.762,386 EUR-1,206

Charts

Results by run

Top 10 of 19 runs. The full list is in the table above.

Net profitMax drawdown

The code

ProBuilder code, as tested

// ==============================================================
// 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

How to load it

  1. Copy the code with the copy button on the code block.
  2. In ProRealTime, open a chart of the instrument and timeframe you want to test, then open ProOrder > New trading system and choose "Create with programming".
  3. Paste the code, give the system a name and save it.
  4. Click "Backtest", set your own spread and position size, and run it before you consider trading it live.

Indicators used

EMA
Read this firstKnown weaknesses2 points
  • The code sets no stop loss, so a losing trade stays open until an exit signal arrives.
  • Results include the spread only. Commissions and overnight financing are not included.

Questions

About this strategy

Can I run EMA Contrarian Crossover Long in ProOrder?

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.

Which markets was it tested on?

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.

How large was the drawdown?

The best run had a maximum drawdown of 34,088 USD at the tested position size, against a net result of 541,335 USD.

Does it trade long, short or both?

It only takes long trades.

Related

Strategies like this one

Reversal Pattern With Chaikin Volatility

Uses the same indicator.

2.26 PF · 6,872 trades

SMA Crossover With RSI Exit

Best run on the same market, Silver.

2.13 PF · 8,999 trades

Stochastic Extreme Reversal

Also a mean reversion strategy.

3.94 PF · 974 trades

Put your name on the ProRealAlgos waitlist to trade a tested portfolio instead of single strategies.

The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.

Past backtest results do not guarantee future results. This is not financial advice. Curated and maintained by ProRealAlgos. ProRealTime™ is a trademark of ProRealTime SAS. prorealalgos.comStatsDocs