Join waitlist
Strategies / Trend / EMA and PMax Cross Long

EMA and PMax Cross Long

The strategy buys when a 10-period EMA of the median price crosses above a PMax stop line built from 3 times ATR(10) bands. It closes the long when the EMA crosses back below PMax.

TrendLong onlyIntradayNasdaq 10030 min
1.26Profit factor
16,155Net profit EUR
41.63%Win rate
1,302Trades
-3,005Max drawdown
12.41Avg trade

Best run of 43. Nasdaq 100, 30 min, spread 3, from run pf:2026-10-12-NAS100-30m.tsv:4.

Entry rules, long

  1. When flat, the strategy buys one contract on that cross.

Exit rules

  1. No short trades are taken, so a cross under PMax only closes the long.

Test conditions

PeriodUp to 2026-10-12
InstrumentNasdaq 100, 30 minutes
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 run30 min1.26 1,30241.6316,155 EUR-3,005
Nasdaq 10015 min1.16 1,25640.5312,228 EUR-2,847
USD/JPYDailyn/a 8141.98914,670 USD-495,200
USD/JPY4 hoursn/a 21542.79734,580 USD-217,160
USD/JPY30 minn/a 1,14040.79600,400 USD-189,350
USD/JPY10 minn/a 1,14840.24372,890 USD-158,540
USD/JPY15 minn/a 1,14338.32199,190 USD-174,720
EUR/USDDailyn/a 7941.7742,063 USD-39,850
Nikkei 225Dailyn/a 7738.9637,737 USD-11,480
Dow JonesDailyn/a 8448.8120,791 EUR-5,689
Nikkei 2251 hourn/a 64339.8119,207 USD-13,403
Nikkei 2254 hoursn/a 16342.3318,688 USD-7,946
Nikkei 2253 minn/a 1,21336.8517,211 USD-9,616
Nikkei 2252 minn/a 1,16338.0916,365 USD-8,702
Nasdaq 100Dailyn/a 7163.3815,359 EUR-2,513
Silver5 minn/a 1,13136.3413,996 USD-13,467
DAX 40Dailyn/a 12046.6712,362 EUR-7,045
Dow Jones30 minn/a 52140.1211,882 EUR-6,396
Nasdaq 1004 hoursn/a 24043.3311,379 EUR-5,707
Dow Jones4 hoursn/a 7149.3011,061 EUR-8,767
Nasdaq 1001 hourn/a 83442.2110,322 EUR-4,943
DAX 404 hoursn/a 20643.2010,308 EUR-3,905
DAX 4030 minn/a 1,29240.2510,162 EUR-4,094
Dow Jones1 hourn/a 27640.2210,005 EUR-6,801
DAX 4015 minn/a 1,23238.969,123 EUR-4,333
Nasdaq 1005 minn/a 1,18737.418,721 EUR-3,750
US Crude OilDailyn/a 8046.257,106 EUR-5,627
GBP/USDDailyn/a 9041.115,959 USD-5,923
Nasdaq 1003 minn/a 1,14238.095,541 EUR-3,823
DAX 4010 minn/a 1,24137.634,971 EUR-2,947
Nasdaq 10010 minn/a 1,24437.064,640 EUR-3,853
S&P 500Dailyn/a 9346.243,895 EUR-1,009
Gold1 hourn/a 72341.492,899 EUR-1,160
S&P 5004 hoursn/a 22446.432,764 EUR-1,334
FTSE 1004 hoursn/a 18044.442,644 EUR-2,191
S&P 50030 minn/a 1,28140.522,624 EUR-728
Gold15 minn/a 1,12537.072,383 EUR-893
GoldDailyn/a 8744.832,230 EUR-1,353
Gold30 minn/a 1,15637.802,047 EUR-906
Gold5 minn/a 1,10438.501,871 EUR-574
Gold4 hoursn/a 21140.761,716 EUR-1,580
Gold10 minn/a 1,15137.361,677 EUR-861
Gold3 minn/a 1,11137.711,080 EUR-816

Charts

Results by run

Top 10 of 43 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 and PMax Cross Long
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Trend
// Direction: Long only
// Timeframe tested: 30 minutes
// ==============================================================

DEFPARAM CumulateOrders = false

ONCE longstop = 0
ONCE shortstop = 0
ONCE dir = 1
ONCE init = 0
ONCE pmax = 0

ma = ExponentialAverage[10](MedianPrice)
myAtr = AverageTrueRange[10](close)
ls = ma - 3 * myAtr
ss = ma + 3 * myAtr

41 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

EMAATR
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 and PMax Cross 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 43 market and timeframe combinations. The best run was Nasdaq 100, 30 minutes, with a profit factor of 1.26 over 1,302 trades.

How large was the drawdown?

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

EMA Band MACD Swing Bracket

Also a trend strategy.

1.26 PF · 613 trades

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

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