Join waitlist
Strategies / Trend / EMA 50/200 Cross With Stop

EMA 50/200 Cross With Stop

The system buys 1 contract when the 50-period EMA crosses above the 200-period EMA and sells on the reverse cross. A stop loss 15% below the entry limits the loss on each trade.

TrendLong onlySwingNikkei 2251 hour
1.58Profit factor
34,853Net profit USD
33.88%Win rate
304Trades
-7,005Max drawdown
115Avg trade

Best run of 51. Nikkei 225, 1 hour, spread 10, from run pf:2026-10-05-NIKKEI-1h.tsv:3.

Entry rules, long

  1. When flat, buy 1 contract at market when the 50-period EMA crosses above the 200-period EMA.

Exit rules

  1. A stop loss sits 15% below the entry price.

Test conditions

PeriodUp to 2026-10-05
InstrumentNikkei 225, 1 hour
Spread10 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
Nikkei 225Best run1 hour1.58 30433.8834,853 USD-7,005
USD/JPYDailyn/a 3138.71631,280 USD-629,400
USD/JPY30 minn/a 57131.35493,820 USD-228,480
USD/JPY10 minn/a 57032.28412,060 USD-213,370
USD/JPY4 hoursn/a 11036.36323,290 USD-262,380
USD/JPY15 minn/a 57631.77305,800 USD-227,430
USD/JPY5 minn/a 58831.97176,260 USD-167,580
USD/JPY3 minn/a 61030.0087,550 USD-83,780
EUR/USDDailyn/a 3234.3870,131 USD-38,380
Nikkei 225Dailyn/a 3036.6750,352 USD-12,728
Nikkei 2254 hoursn/a 8030.0031,426 USD-13,052
Nasdaq 100Dailyn/a 2462.5029,548 EUR-3,269
Nikkei 22515 minn/a 58232.8228,562 USD-9,341
Dow JonesDailyn/a 3745.9526,911 EUR-8,397
Silver15 minn/a 58530.7725,692 USD-13,970
Nikkei 22530 minn/a 60431.7920,292 USD-18,786
Nikkei 22510 minn/a 60131.7819,481 USD-11,496
Dow Jones4 hoursn/a 2347.8318,915 EUR-4,146
Nasdaq 1004 hoursn/a 8943.8218,412 EUR-3,885
Silver2 minn/a 60430.1317,538 USD-13,619
DAX 40Dailyn/a 3748.6516,716 EUR-5,241
Dow Jones30 minn/a 23933.0513,917 EUR-5,876
Nasdaq 10030 minn/a 60134.2811,720 EUR-4,544
Nasdaq 1001 hourn/a 36336.3611,596 EUR-5,391
Dow Jones1 hourn/a 12237.7011,237 EUR-6,499
DAX 404 hoursn/a 9735.059,482 EUR-3,367
Dow Jones15 minn/a 46031.529,386 EUR-7,217
Nasdaq 10015 minn/a 56733.868,897 EUR-5,682
Nasdaq 10010 minn/a 56031.798,713 EUR-3,735
DAX 401 hourn/a 37431.286,482 EUR-3,292
S&P 500Dailyn/a 2860.715,992 EUR-1,028
DAX 4030 minn/a 63730.935,761 EUR-4,323
Brent Crude10 minn/a 58531.975,667 EUR-4,915
Nasdaq 1005 minn/a 60531.575,289 EUR-3,518
DAX 405 minn/a 57529.744,773 EUR-2,959
FTSE 100Dailyn/a 3636.114,556 EUR-2,858
S&P 5004 hoursn/a 8544.714,467 EUR-544
DAX 4015 minn/a 62729.674,465 EUR-3,827
GoldDailyn/a 3429.413,806 EUR-1,551
Gold4 hoursn/a 9634.382,957 EUR-962
Gold30 minn/a 57829.932,550 EUR-1,132
Brent Crude2 minn/a 57328.452,331 EUR-2,199
Gold1 hourn/a 34932.092,322 EUR-1,576
S&P 50030 minn/a 59733.332,268 EUR-975
S&P 5001 hourn/a 36534.792,133 EUR-1,175
Gold3 minn/a 58327.441,967 EUR-528
Gold5 minn/a 58830.781,776 EUR-860
Gold10 minn/a 59827.591,751 EUR-1,110
Gold15 minn/a 63328.751,703 EUR-1,252
Gold2 minn/a 61129.951,367 EUR-763
S&P 50015 minn/a 57532.701,250 EUR-1,138

Charts

Results by run

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

Net profitMax drawdown

The code

ProBuilder code, as tested

// ==============================================================
// EMA 50/200 Cross With Stop
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Trend
// Direction: Long only
// Timeframe tested: 1 hour
// ==============================================================

DEFPARAM CumulateOrders = false

emaa = ExponentialAverage[50](close)
emab = ExponentialAverage[200](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
Longer historyRe-run on up to 1,000,000 barsNikkei 225 · 1 hour · older data 511.90 USD

Nikkei 225 had no history beyond the standard run, so both runs used 90,000 bars.

Nikkei 225 · 1 hour

Bars available90,000
Net, standard 200,000-bar run34,852.60 USD
Net, long run35,364.50 USD
Net on the older data alone511.90 USD
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 50/200 Cross With Stop 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 51 market and timeframe combinations. The best run was Nikkei 225, 1 hour, with a profit factor of 1.58 over 304 trades.

How large was the drawdown?

The best run had a maximum drawdown of 7,005 USD at the tested position size, against a net result of 34,853 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

Rock Climber

Best run on the same market, Nikkei 225.

1.44 PF · 1,644 trades

EMA Trend RSI Bracket Long

Also a trend strategy.

1.58 PF · 360 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