Join waitlist
Strategies / Trend / TEMA Crossover With SuperTrend Filter

TEMA Crossover With SuperTrend Filter

The strategy buys when a 50-period TEMA of lows crosses above a 30-period TEMA of highs while the SuperTrend is up. It sells short on the mirror condition and uses a 1% stop and 1% target.

TrendLong & shortIntradayS&P 50015 min
1.25Profit factor
3,078Net profit EUR
56.35%Win rate
614Trades
-558Max drawdown
5.01Avg trade

Best run of 29. S&P 500, 15 min, spread 1, from run pf:2026-10-11-USA500-15m.tsv:1.

Entry rules, long

  1. The 50-period TEMA of lows is above the 140-period TEMA of closes.
  2. The SuperTrend, using 2 times a 10-period EMA of true range, is in an uptrend.

Entry rules, short

  1. The 50-period TEMA of lows is below the 140-period TEMA of closes.
  2. The SuperTrend is in a downtrend.

Exit rules

  1. A 1% stop loss and a 1% profit target are set on each trade.

Test conditions

PeriodUp to 2026-10-11
InstrumentS&P 500, 15 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-11

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
S&P 500Best run15 min1.25 61456.353,078 EUR-558
USD/JPY30 minn/a 47254.66502,200 USD-151,660
USD/JPY10 minn/a 29856.38482,820 USD-167,450
USD/JPY15 minn/a 33154.08330,050 USD-215,540
USD/JPY3 minn/a 9955.56159,950 USD-101,150
USD/JPY2 minn/a 5360.38156,360 USD-90,480
USD/JPY4 hoursn/a 11055.45138,800 USD-92,950
Nikkei 2251 minn/a 28955.7117,916 USD-6,881
EUR/USD4 hoursn/a 17453.4514,642 USD-10,566
Dow Jones15 minn/a 50354.4713,824 EUR-4,875
DAX 4015 minn/a 63254.279,664 EUR-3,218
Dow Jones5 minn/a 30353.478,136 EUR-5,169
Dow Jones10 minn/a 47352.647,532 EUR-5,396
Dow Jones3 minn/a 22353.366,066 EUR-5,431
Nasdaq 1001 minn/a 16855.955,157 EUR-3,359
Nasdaq 10015 minn/a 74552.754,552 EUR-2,978
Nasdaq 1001 hourn/a 55352.804,138 EUR-2,578
DAX 404 hoursn/a 14353.852,019 EUR-908
Nikkei 225Dailyn/a 4456.821,709 USD-666
S&P 50010 minn/a 49554.141,616 EUR-727
FTSE 1003 minn/a 17854.491,416 EUR-949
Silver4 hoursn/a 11148.651,241 USD-1,118
GBP/USDDailyn/a 4557.781,223 USD-797
S&P 5001 hourn/a 52254.211,135 EUR-380
Gold10 minn/a 52053.851,050 EUR-768
S&P 5001 minn/a 7160.561,025 EUR-369
FTSE 1004 hoursn/a 11154.05623 EUR-457
Gold4 hoursn/a 12255.74334 EUR-135
S&P 5004 hoursn/a 13252.27254 EUR-208

Charts

Results by run

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

Net profitMax drawdown

The code

ProBuilder code, as tested

// ==============================================================
// TEMA Crossover With SuperTrend Filter
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Trend
// Direction: Long & short
// Timeframe tested: 15 minutes
// ==============================================================

DEFPARAM CumulateOrders = false

ONCE up = 0
ONCE dn = 0
ONCE uptrend = 1

eaa = ExponentialAverage[30](high)
eab = ExponentialAverage[30](eaa)
eac = ExponentialAverage[30](eab)
temashort = 3 * (eaa - eab) + eac
eba = ExponentialAverage[50](low)
ebb = ExponentialAverage[50](eba)
ebc = ExponentialAverage[50](ebb)
temalong = 3 * (eba - ebb) + ebc
eca = ExponentialAverage[140](close)
ecb = ExponentialAverage[140](eca)
ecc = ExponentialAverage[140](ecb)
tematrend = 3 * (eca - ecb) + ecc

42 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

SuperTrendEMATrue Range
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 TEMA Crossover With SuperTrend 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 29 market and timeframe combinations. The best run was S&P 500, 15 minutes, with a profit factor of 1.25 over 614 trades.

How large was the drawdown?

The best run had a maximum drawdown of 558 EUR at the tested position size, against a net result of 3,078 EUR.

Does it trade long, short or both?

It trades both long and short.

Related

Strategies like this one

Reversal Pattern With Chaikin Volatility

Uses the same indicator.

2.26 PF · 6,872 trades

CCI Sign With EMA Alignment

Best run on the same market, S&P 500.

1.23 PF · 1,253 trades

Directional Movement Trend Long

Also a trend strategy.

1.25 PF · 1,365 trades

Put your name on the ProRealAlgos waitlist to trade a tested portfolio instead of single strategies.

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