Join waitlist
Strategies / Trend / EMA 12 25 Crossover

EMA 12 25 Crossover

The strategy buys 1 contract when the 12 period EMA crosses above the 25 period EMA, and holds the long until the 12 period EMA crosses back below. It only trades after the first 30 bars.

TrendLong onlySwingNasdaq 100Daily
2.42Profit factor
21,070Net profit EUR
41.67%Win rate
192Trades
-3,497Max drawdown
110Avg trade

Best run of 24. Nasdaq 100, Daily, spread 3, from run pf:2026-10-13-NAS100-D.tsv:1.

Entry rules, long

  1. Signals are evaluated only after bar 30.

Exit rules

  1. The 12 period EMA crosses under the 25 period EMA while a long position is open, closing the trade by selling 1 contract at market.

Test conditions

PeriodUp to 2026-10-13
InstrumentNasdaq 100, Daily
Spread3 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-13

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
Nasdaq 100Best runDaily2.42 19241.6721,070 EUR-3,497
GoldDaily2.27 24332.103,637 EUR-809
S&P 500Daily1.96 26337.264,062 EUR-716
Dow JonesDaily1.87 25935.9127,161 EUR-6,379
USD/JPYDailyn/a 22637.171,174,280 USD-469,100
USD/JPY30 minn/a 3,41630.27662,180 USD-175,190
USD/JPY1 hourn/a 2,39431.20652,050 USD-191,580
USD/JPY10 minn/a 3,58329.25187,680 USD-161,770
EUR/USDDailyn/a 20437.2594,825 USD-44,080
Nikkei 225Dailyn/a 19834.8536,943 USD-13,365
Nikkei 2254 hoursn/a 47733.3323,414 USD-14,401
DAX 40Dailyn/a 24538.3714,241 EUR-4,254
Dow Jones4 hoursn/a 18236.8114,125 EUR-4,843
Nasdaq 1001 hourn/a 2,06132.6510,807 EUR-3,445
US Crude OilDailyn/a 20238.1210,725 EUR-7,810
DAX 4030 minn/a 3,48030.0910,173 EUR-4,134
Nasdaq 1004 hoursn/a 58735.789,585 EUR-5,190
Nasdaq 10030 minn/a 3,45732.319,322 EUR-3,581
DAX 401 hourn/a 1,93832.668,727 EUR-4,511
Gold4 hoursn/a 51835.523,248 EUR-1,077
Gold1 hourn/a 2,05530.323,042 EUR-947
S&P 5004 hoursn/a 56636.752,807 EUR-781
Gold30 minn/a 3,50729.201,892 EUR-988
Gold5 minn/a 3,60128.35612 EUR-535

Charts

Results by run

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

Above 1.0 made money, below 1.0 lost money.

The code

ProBuilder code, as tested

// ==============================================================
// EMA 12 25 Crossover
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Trend
// Direction: Long only
// Timeframe tested: Daily
// ==============================================================

DEFPARAM CumulateOrders = false

fast = ExponentialAverage[12](close)
slow = ExponentialAverage[25](close)

10 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 12 25 Crossover 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 24 market and timeframe combinations. The best run was Nasdaq 100, Daily, with a profit factor of 2.42 over 192 trades.

How large was the drawdown?

The best run had a maximum drawdown of 3,496 EUR at the tested position size, against a net result of 21,070 EUR.

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

Volatility Spike Regression Long

Best run on the same market, Nasdaq 100.

1.22 PF · 1,850 trades

Alligator Trend EMA Filter

Also a trend strategy.

2.42 PF · 193 trades

Get the full rules, the complete code and the ProRealAlgos portfolio as a member.

Copy trading on US indices is available to ProRealAlgos members as spots open.

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