Join waitlist
Strategies / Trend / EMA Crossover With Profit Target

EMA Crossover With Profit Target

The strategy buys when the 8-period EMA crosses above the 21-period EMA. It closes the long when the 21-period EMA crosses above the 8-period EMA, and each trade carries a 20% stop and a 50% target.

TrendLong onlyIntradayUSD/JPY30 min
n/aProfit factor
530,360Net profit USD
28.76%Win rate
4,625Trades
-192,250Max drawdown
115Avg trade

Best run of 20. USD/JPY, 30 min, spread 1, from run sweeps:2026-10-04-USDJPY-30m-opt.tsv:48.

Entry rules, long

  1. Volume is above 0 on the current bar
  2. No long position is currently open

Exit rules

  1. The stop loss is 20% below the entry price
  2. The profit target is 50% above the entry price

Test conditions

PeriodUp to 2026-10-04
InstrumentUSD/JPY, 30 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-04

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
USD/JPYBest run30 minn/a 4,62528.76530,360 USD-192,250
USD/JPY1 hourn/a 3,17630.13773,670 USD-213,070
USD/JPYDailyn/a 11234.82484,500 USD-253,320
Silver4 hoursn/a 76927.9636,116 USD-19,023
Nikkei 225Dailyn/a 7437.8432,809 USD-10,448
Nikkei 2254 hoursn/a 39831.9118,552 USD-15,959
Dow JonesDailyn/a 4055.0018,449 EUR-5,986
Nasdaq 100Dailyn/a 6842.6515,827 EUR-5,094
Dow Jones4 hoursn/a 23236.2115,508 EUR-6,248
Nasdaq 1001 hourn/a 1,33334.3614,841 EUR-4,104
Nikkei 2251 hourn/a 1,43130.6113,890 USD-13,138
Nasdaq 1004 hoursn/a 35538.5912,194 EUR-5,410
DAX 40Dailyn/a 5050.007,059 EUR-2,948
DAX 401 hourn/a 1,17733.736,091 EUR-5,115
DAX 4030 minn/a 2,26232.054,822 EUR-4,341
Gold4 hoursn/a 69832.953,279 EUR-837
S&P 500Dailyn/a 6538.463,141 EUR-805
Gold1 hourn/a 2,75329.202,633 EUR-827
S&P 5004 hoursn/a 37135.312,320 EUR-1,187
GoldDailyn/a 10430.772,192 EUR-869

Charts

Results by run

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

Net profitMax drawdown

The code

ProBuilder code, as tested

// ==============================================================
// EMA Crossover With Profit Target
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Trend
// Direction: Long only
// Timeframe tested: 30 minutes
// ==============================================================

DEFPARAM CumulateOrders = false

emafast = ExponentialAverage[8](close)
emaslow = ExponentialAverage[21](close)

13 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

EMAVolume
Read this firstKnown weaknesses2 points
  • No profit factor is available, because only sweep results exist for this strategy.
  • Results include the spread only. Commissions and overnight financing are not included.

Questions

About this strategy

Can I run EMA Crossover With Profit Target 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 20 market and timeframe combinations. The best run by trade count was USD/JPY, 30 minutes, with 4,625 trades.

How large was the drawdown?

The best run had a maximum drawdown of 192,250 USD at the tested position size, against a net result of 530,360 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

Trend Surfer

Best run on the same market, USD/JPY.

1.04 PF · 10,813 trades

ADX Filtered EMA Cross

Also a trend strategy.

1.15 PF · 607 trades

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

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