Join waitlist
Strategies / Trend / EMA 100 500 Trend Long

EMA 100 500 Trend Long

The strategy buys when the close is above both the 100-period and 500-period EMAs and the 100-period EMA is above the 500-period EMA. It closes the long when the close falls below the 500-period EMA, with a 3% stop loss from entry.

TrendLong onlySwingNasdaq 1004 hours
2.68Profit factor
16,498Net profit EUR
33.06%Win rate
124Trades
-3,347Max drawdown
133Avg trade

Best run of 52. Nasdaq 100, 4 hours, spread 3, from run pf:2026-10-11-NAS100-4h.tsv:1.

Entry rules, long

  1. The 100-period EMA is above the 500-period EMA

Exit rules

  1. A 3% stop loss is set from the fill price

Test conditions

PeriodUp to 2026-10-11
InstrumentNasdaq 100, 4 hours
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-12

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
Nasdaq 100Best run4 hours2.68 12433.0616,498 EUR-3,347
EUR/USD5 min2.52 87817.88298,351 USD-72,636
EUR/USD3 min2.40 85018.47399,217 USD-46,993
EUR/USD10 min2.02 88315.52194,360 USD-34,080
USD/JPYDailyn/a 3930.77493,340 USD-471,900
USD/JPY30 minn/a 71221.91461,110 USD-168,060
USD/JPY10 minn/a 68923.08458,580 USD-145,460
EUR/USD2 minn/a 82617.55449,950 USD-55,451
USD/JPY1 hourn/a 51521.94359,280 USD-297,000
USD/JPY15 minn/a 73221.04256,980 USD-249,810
EUR/USD1 hourn/a 59522.0259,375 USD-32,156
Nikkei 225Dailyn/a 5215.3852,887 USD-16,671
Silver30 minn/a 72919.0729,642 USD-16,357
Dow JonesDailyn/a 7223.6128,453 EUR-8,703
Nasdaq 100Dailyn/a 4729.7926,675 EUR-3,917
Nikkei 2251 hourn/a 36724.2524,935 USD-7,757
Nikkei 22530 minn/a 78921.1724,895 USD-7,035
Nikkei 22510 minn/a 74319.9220,138 USD-10,582
Nikkei 2253 minn/a 75321.3818,609 USD-10,421
Nikkei 2254 hoursn/a 11421.0517,448 USD-12,553
Nikkei 2255 minn/a 74220.7517,176 USD-11,179
Nikkei 22515 minn/a 83220.6715,768 USD-11,810
Silver15 minn/a 84715.2314,981 USD-14,804
DAX 40Dailyn/a 8821.5913,676 EUR-4,431
Nasdaq 10030 minn/a 69126.9213,204 EUR-4,030
Nasdaq 1001 hourn/a 39529.1112,840 EUR-5,107
Dow Jones4 hoursn/a 3933.3312,014 EUR-5,692
Dow Jones1 hourn/a 14332.1711,642 EUR-4,737
Nasdaq 10010 minn/a 65122.7311,239 EUR-3,469
Dow Jones15 minn/a 62023.558,741 EUR-6,809
Nasdaq 10015 minn/a 70723.207,781 EUR-4,067
DAX 4030 minn/a 79121.497,148 EUR-2,991
Brent Crude4 hoursn/a 6923.196,752 EUR-4,568
S&P 500Dailyn/a 6331.756,286 EUR-814
DAX 4015 minn/a 81019.385,907 EUR-5,086
Nasdaq 1003 minn/a 74022.165,680 EUR-2,589
Nasdaq 1005 minn/a 74523.094,266 EUR-4,250
DAX 4010 minn/a 78020.774,114 EUR-3,916
Brent Crude10 minn/a 73623.373,956 EUR-3,790
GoldDailyn/a 5318.873,547 EUR-1,534
S&P 5001 hourn/a 43127.152,970 EUR-801
S&P 5004 hoursn/a 11931.932,942 EUR-862
Gold4 hoursn/a 11124.322,801 EUR-1,360
S&P 50030 minn/a 75426.532,263 EUR-732
Gold5 minn/a 76918.601,708 EUR-757
S&P 50015 minn/a 70625.501,688 EUR-1,182
Gold15 minn/a 76720.211,677 EUR-1,204
Gold1 hourn/a 42123.751,596 EUR-1,491
Gold10 minn/a 75919.501,508 EUR-1,036
Gold3 minn/a 83916.21989 EUR-714
S&P 50010 minn/a 75621.16915 EUR-831
Gold2 minn/a 79417.88881 EUR-641

Charts

Results by run

Top 10 of 52 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 100 500 Trend Long
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Trend
// Direction: Long only
// Timeframe tested: 4 hours
// ==============================================================

DEFPARAM CumulateOrders = false

maf = ExponentialAverage[100](close)
mas = ExponentialAverage[500](close)

11 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
Longer historyRe-run on up to 1,000,000 barsNasdaq 100 · 4 hours · older data 0.00 EUR

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

Nasdaq 100 · 4 hours

Bars available28,000
Net, standard 200,000-bar run16,498.10 EUR
Net, long run16,498.10 EUR
Net on the older data alone0.00 EUR
Read this firstKnown weaknesses2 points
  • Results include the spread only. Commissions and overnight financing are not included.
  • The code is published as it was backtested and has not been compiled again since.

Questions

About this strategy

Can I run EMA 100 500 Trend 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 52 market and timeframe combinations. The best run was Nasdaq 100, 4 hours, with a profit factor of 2.68 over 124 trades.

How large was the drawdown?

The best run had a maximum drawdown of 3,347 EUR at the tested position size, against a net result of 16,498 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

Dual ATR Trail Trend Entry

Also a trend strategy.

2.67 PF · 114 trades

Want strategies that are already part of a live portfolio? Join the ProRealAlgos waitlist.

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