Join waitlist
Strategies / Trend / Supertrend EMA Trend Filter

Supertrend EMA Trend Filter

Buys when the Supertrend (ATR 10, factor 5) is bullish, the close is above a 200-period EMA and that EMA is rising. Sells when the Supertrend turns bearish, with no stop loss or target.

TrendLong onlyIntradayGold15 min
1.29Profit factor
2,224Net profit EUR
36.68%Win rate
1,077Trades
-508Max drawdown
2.07Avg trade

Best run of 41. Gold, 15 min, spread 0.6, from run pf:2026-10-05-GOLD-15m.tsv:1.

Entry rules, long

  1. The close is above the 200-period EMA.
  2. The 200-period EMA is higher than its value on the prior bar.
  3. Only when no position is open.

Exit rules

  1. Supertrend turns bearish, and the long position is sold.

Test conditions

PeriodUp to 2026-10-05
InstrumentGold, 15 minutes
Spread0.6 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
GoldBest run15 min1.29 1,07736.682,224 EUR-508
USD/JPYDailyn/a 7545.33864,080 USD-323,630
USD/JPY4 hoursn/a 20142.29583,600 USD-193,200
USD/JPY30 minn/a 1,06040.66544,460 USD-161,740
USD/JPY15 minn/a 1,07739.83466,320 USD-132,300
USD/JPY10 minn/a 1,11539.82332,440 USD-141,160
Nikkei 225Dailyn/a 7746.7536,404 USD-13,003
Nikkei 2254 hoursn/a 15843.0425,174 USD-8,706
Nikkei 2253 minn/a 1,17238.3123,293 USD-7,248
Nikkei 2251 hourn/a 62139.6122,713 USD-9,919
Dow JonesDailyn/a 8248.7819,359 EUR-5,579
Nasdaq 100Dailyn/a 6966.6719,339 EUR-2,747
Nikkei 2252 minn/a 1,16137.2117,353 USD-9,321
Silver5 minn/a 1,07335.2315,345 USD-8,373
Nikkei 2255 minn/a 1,23337.3913,892 USD-11,227
Nikkei 22530 minn/a 1,22739.5313,663 USD-10,964
DAX 40Dailyn/a 14447.2213,385 EUR-3,969
Dow Jones1 hourn/a 26943.8713,060 EUR-4,017
Nikkei 22515 minn/a 1,25637.2612,729 USD-11,971
DAX 4030 minn/a 1,29540.5412,630 EUR-3,448
Nasdaq 10030 minn/a 1,35443.2812,460 EUR-3,454
Nasdaq 1004 hoursn/a 23946.4411,352 EUR-3,698
Nasdaq 1001 hourn/a 85340.3310,362 EUR-4,328
DAX 401 hourn/a 74042.039,912 EUR-3,189
GBP/USDDailyn/a 7447.308,403 USD-4,679
Nasdaq 10015 minn/a 1,25641.247,775 EUR-4,364
DAX 404 hoursn/a 20542.447,481 EUR-3,554
Dow Jones4 hoursn/a 7648.687,389 EUR-5,641
US Crude OilDailyn/a 7643.426,405 EUR-5,467
Nasdaq 1005 minn/a 1,14637.785,294 EUR-3,432
Nasdaq 10010 minn/a 1,21137.575,096 EUR-3,688
S&P 500Dailyn/a 9051.114,923 EUR-851
DAX 4015 minn/a 1,23738.243,789 EUR-3,453
GoldDailyn/a 7946.843,386 EUR-1,088
Gold4 hoursn/a 18639.782,639 EUR-813
Gold1 hourn/a 66942.902,531 EUR-1,132
S&P 5001 hourn/a 83841.651,959 EUR-667
S&P 50030 minn/a 1,32939.651,686 EUR-939
Gold5 minn/a 1,03838.251,514 EUR-594
Gold30 minn/a 1,09039.271,474 EUR-1,116
Gold10 minn/a 1,10936.521,420 EUR-743

Charts

Results by run

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

Net profitMax drawdown

The code

ProBuilder code, as tested

// ==============================================================
// Supertrend EMA Trend Filter
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Trend
// Direction: Long only
// Timeframe tested: 15 minutes
// ==============================================================

DEFPARAM CumulateOrders = false

ONCE ub = 0
ONCE lb = 0
ONCE dir = 1
ONCE st = 0

myAtr = AverageTrueRange[10](close)
upper = MedianPrice + 5.0 * myAtr
lower = MedianPrice - 5.0 * myAtr

52 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

ATREMASuperTrend
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 Supertrend EMA Trend Filter 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 41 market and timeframe combinations. The best run was Gold, 15 minutes, with a profit factor of 1.29 over 1,077 trades.

How large was the drawdown?

The best run had a maximum drawdown of 508 EUR at the tested position size, against a net result of 2,224 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

CCI Breakout

Best run on the same market, Gold.

1.08 PF · 6,065 trades

Hull MA Cross With MACD Filter

Also a trend strategy.

1.29 PF · 1,134 trades

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

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