Join waitlist
Strategies / Trend / EMA Crossover Above Slow SMA

EMA Crossover Above Slow SMA

Buys when the 11 period EMA crosses above the 50 period SMA. Sells the long when the EMA crosses below the 50 period SMA or the 20 period SMA.

TrendLong onlySwingNasdaq 100Daily
2.51Profit factor
13,164Net profit EUR
47.06%Win rate
136Trades
-3,006Max drawdown
96.80Avg trade

Best run of 18. Nasdaq 100, Daily, spread 3, from run pf:2026-10-05-NAS100-D.tsv:4.

Entry rules, long

  1. Enter long at market when flat.

Exit rules

  1. A buy signal on the same bar takes priority over this exit.

Test conditions

PeriodUp to 2026-10-05
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-05

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
Nasdaq 100Best runDaily2.51 13647.0613,164 EUR-3,006
S&P 500Daily2.34 19640.822,763 EUR-390
USD/JPYDailyn/a 17137.43391,480 USD-313,910
USD/JPY30 minn/a 2,56834.85332,130 USD-141,780
USD/JPY1 hourn/a 1,81435.45323,810 USD-159,940
EUR/USDDailyn/a 15345.1071,321 USD-32,134
Nikkei 225Dailyn/a 14746.2631,763 USD-8,079
Nikkei 2254 hoursn/a 34539.7121,863 USD-7,809
Dow JonesDailyn/a 19340.4111,096 EUR-3,740
Nikkei 2251 hourn/a 1,32736.109,396 USD-8,520
DAX 401 hourn/a 1,50336.669,230 EUR-2,928
Dow Jones4 hoursn/a 13943.887,040 EUR-5,993
DAX 40Dailyn/a 18945.505,234 EUR-3,136
Nasdaq 10030 minn/a 2,66335.974,679 EUR-3,817
S&P 5004 hoursn/a 43242.821,428 EUR-720
GoldDailyn/a 18133.151,187 EUR-572
Gold4 hoursn/a 38938.82956 EUR-439
Gold30 minn/a 2,59834.14658 EUR-639

Charts

Results by run

Top 10 of 18 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 Crossover Above Slow SMA
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Trend
// Direction: Long only
// Timeframe tested: Daily
// ==============================================================

DEFPARAM CumulateOrders = false

emamid = ExponentialAverage[11](close)
smashort = Average[20](close)
smalong = Average[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

EMASMA
Longer historyRe-run on up to 1,000,000 barsNasdaq 100 · Daily · older data 0.00 EUR

Nasdaq 100 had no history beyond the standard run, so both runs used 10,000 bars.

Nasdaq 100 · Daily

Bars available10,000
Net, standard 200,000-bar run13,164.30 EUR
Net, long run13,164.30 EUR
Net on the older data alone0.00 EUR
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 Crossover Above Slow SMA 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 18 market and timeframe combinations. The best run was Nasdaq 100, Daily, with a profit factor of 2.51 over 136 trades.

How large was the drawdown?

The best run had a maximum drawdown of 3,006 EUR at the tested position size, against a net result of 13,164 EUR.

Does it trade long, short or both?

It only takes long trades.

Related

Strategies like this one

Trend Surfer

Uses the same indicator.

1.04 PF · 10,813 trades

Volatility Spike Regression Long

Best run on the same market, Nasdaq 100.

1.22 PF · 1,850 trades

EMA 10 25 Crossover Long

Also a trend strategy.

2.53 PF · 208 trades

See how ProRealAlgos combines strategies like this into one automated portfolio.

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