Join waitlist
Strategies / Trend / EMA 10 20 50 Alignment

EMA 10 20 50 Alignment

Buys when the 10-period EMA is above the 20-period EMA and that is above the 50-period EMA, a bullish stacked alignment. Closes the long when the EMAs stack in the bearish order.

TrendLong onlyIntradayEUR/USD2 min
n/aProfit factor
56,649Net profit USD
23.60%Win rate
1,970Trades
-55,033Max drawdown
28.76Avg trade

Best run of 40. EUR/USD, 2 min, spread 1, from run sweeps:2026-10-11-EURUSD-2m-opt.tsv:16.

Entry rules, long

  1. No long position is already open.
  2. Signals are only considered after bar 50.

Exit rules

  1. No stop loss or profit target is set.

Test conditions

PeriodUp to 2026-10-11
InstrumentEUR/USD, 2 minutes
Spread1 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-11

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
EUR/USDBest run2 minn/a 1,97023.6056,649 USD-55,033
USD/JPYDailyn/a 11034.551,111,640 USD-506,320
USD/JPY30 minn/a 1,75332.12788,040 USD-212,850
USD/JPY1 hourn/a 1,28832.84478,740 USD-333,200
USD/JPY10 minn/a 1,82331.60431,030 USD-109,750
USD/JPY15 minn/a 1,80932.45347,550 USD-147,790
EUR/USDDailyn/a 11735.0460,210 USD-48,084
Nikkei 225Dailyn/a 10431.7346,274 USD-13,427
Nikkei 2254 hoursn/a 24039.1737,028 USD-7,922
Dow JonesDailyn/a 13136.6427,200 EUR-8,049
Nikkei 2251 hourn/a 93431.8022,595 USD-12,182
Nasdaq 100Dailyn/a 9750.5220,655 EUR-3,270
Nikkei 2252 minn/a 1,77131.1117,272 USD-7,319
Nikkei 2253 minn/a 1,83830.6912,794 USD-7,227
Nasdaq 10030 minn/a 1,76933.6312,444 EUR-3,959
Nasdaq 1004 hoursn/a 30336.6311,103 EUR-5,158
DAX 40Dailyn/a 14037.1410,898 EUR-4,295
US Crude OilDailyn/a 10538.1010,613 EUR-5,292
Nasdaq 1001 hourn/a 1,09034.2210,507 EUR-5,178
Brent CrudeDailyn/a 4839.5810,244 EUR-6,284
DAX 4030 minn/a 1,78231.939,130 EUR-4,984
Nasdaq 1005 minn/a 1,78630.968,363 EUR-4,306
Nasdaq 10010 minn/a 1,78030.967,609 EUR-3,710
Dow Jones4 hoursn/a 10338.837,380 EUR-6,874
Nasdaq 10015 minn/a 1,80332.177,264 EUR-3,602
DAX 404 hoursn/a 31033.237,187 EUR-3,482
Dow Jones1 hourn/a 37833.866,824 EUR-6,132
DAX 4015 minn/a 1,80330.066,102 EUR-3,855
DAX 4010 minn/a 1,84330.935,352 EUR-3,307
DAX 401 hourn/a 1,05333.815,242 EUR-5,189
S&P 500Dailyn/a 14238.734,220 EUR-1,129
Gold30 minn/a 1,80429.773,116 EUR-859
GoldDailyn/a 12835.163,002 EUR-1,191
Gold1 hourn/a 1,08733.302,608 EUR-1,252
S&P 5004 hoursn/a 29938.132,288 EUR-991
Gold4 hoursn/a 29532.201,983 EUR-1,509
Gold10 minn/a 1,86328.401,705 EUR-834
Gold5 minn/a 1,89330.801,396 EUR-715
Gold15 minn/a 1,86328.821,314 EUR-991
Gold3 minn/a 1,92828.731,005 EUR-637

Charts

Results by run

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

Net profitMax drawdown

The code

ProBuilder code, as tested

// ==============================================================
// EMA 10 20 50 Alignment
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Trend
// Direction: Long only
// Timeframe tested: 2 minutes
// ==============================================================

DEFPARAM CumulateOrders = false

emaf = ExponentialAverage[10](close)
emam = ExponentialAverage[20](close)
emas = ExponentialAverage[50](close)

14 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
  • No profit factor is available, because only sweep results exist for this strategy.
  • The maximum drawdown of 55,033 USD is large next to the net profit of 56,649 USD.

Questions

About this strategy

Can I run EMA 10 20 50 Alignment 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 40 market and timeframe combinations. The best run by trade count was EUR/USD, 2 minutes, with 1,970 trades.

How large was the drawdown?

The best run had a maximum drawdown of 55,033 USD at the tested position size, against a net result of 56,649 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

Slow MACD Slope

Best run on the same market, EUR/USD.

6.80 PF · 7,305 trades

ADX Filtered EMA Cross

Also a trend strategy.

1.15 PF · 607 trades

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

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