Join waitlist
Strategies / Trend / TEMA Cross With MACD Zero Line

TEMA Cross With MACD Zero Line

Buys when the close crosses above the 50-period TEMA on the same bar that the MACD line crosses above zero. Sells when the close crosses below the TEMA while the MACD line crosses below zero, and holds one contract long only.

TrendLong onlyIntradayNasdaq 10030 min
n/aProfit factor
10,397Net profit EUR
46.48%Win rate
256Trades
-3,982Max drawdown
40.61Avg trade

Best run of 44. Nasdaq 100, 30 min, spread 3, from run sweeps:2026-10-03-NAS100-30m-opt.tsv:54.

Entry rules, long

  1. The MACD line crosses from below zero to above zero on this same bar

Exit rules

  1. The close crosses below the 50-period TEMA as the MACD line crosses from above zero to below zero, closing the long

Test conditions

PeriodUp to 2026-10-03
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-04

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
Nasdaq 100Best run30 minn/a 25646.4810,397 EUR-3,982
USD/JPY5 minn/a 22744.05193,300 USD-131,520
EUR/USD15 minn/a 22941.9281,543 USD-33,904
Nikkei 225Dailyn/a 560.0060,403 USD-15,973
Silver30 minn/a 24240.0835,146 USD-13,903
Dow JonesDailyn/a 1258.3329,833 EUR-7,961
Nikkei 22515 minn/a 20942.1126,357 USD-8,680
Nikkei 2251 hourn/a 10849.0721,268 USD-13,748
Dow Jones1 hourn/a 3560.0016,807 EUR-6,250
Dow Jones15 minn/a 17046.4716,800 EUR-8,328
Nasdaq 1004 hoursn/a 2867.8615,114 EUR-5,672
Dow Jones30 minn/a 8451.1915,074 EUR-5,711
Nasdaq 1001 hourn/a 11554.7814,394 EUR-3,658
DAX 40Dailyn/a 1266.6712,265 EUR-5,511
Nikkei 2252 minn/a 20939.2312,014 USD-7,763
Nikkei 2254 hoursn/a 2050.0011,802 USD-7,975
DAX 4015 minn/a 20146.7711,342 EUR-3,540
Dow Jones5 minn/a 23638.989,939 EUR-4,912
Nasdaq 10010 minn/a 19945.239,568 EUR-3,909
DAX 4030 minn/a 23643.649,125 EUR-5,674
Nasdaq 10015 minn/a 20946.897,578 EUR-5,284
Brent Crude4 hoursn/a 1952.636,849 EUR-5,166
FTSE 100Dailyn/a 1369.236,231 EUR-3,142
US Crude Oil4 hoursn/a 1963.166,110 EUR-5,339
Nasdaq 1005 minn/a 20243.566,007 EUR-3,967
DAX 401 hourn/a 10745.795,585 EUR-5,486
S&P 5004 hoursn/a 2864.294,468 EUR-1,236
FTSE 10030 minn/a 22748.464,312 EUR-1,587
DAX 405 minn/a 22045.004,148 EUR-3,165
S&P 500Dailyn/a 1163.644,011 EUR-1,743
Brent Crude3 minn/a 21942.473,865 EUR-2,115
DAX 403 minn/a 21138.863,675 EUR-2,625
FTSE 1001 hourn/a 13751.823,336 EUR-2,850
FTSE 1004 hoursn/a 2867.863,317 EUR-1,829
S&P 50015 minn/a 21450.473,064 EUR-1,278
S&P 5001 hourn/a 13548.892,909 EUR-960
S&P 50010 minn/a 20649.512,476 EUR-1,611
S&P 50030 minn/a 22646.902,472 EUR-1,520
Gold4 hoursn/a 2853.571,916 EUR-1,607
Gold15 minn/a 20745.411,915 EUR-663
Gold1 hourn/a 11945.381,522 EUR-693
FTSE 1005 minn/a 21142.181,427 EUR-1,319
Gold2 minn/a 20940.191,223 EUR-517
GoldDailyn/a 933.33857 EUR-781

Charts

Results by run

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

Net profitMax drawdown

The code

ProBuilder code, as tested

// ==============================================================
// TEMA Cross With MACD Zero Line
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Trend
// Direction: Long only
// Timeframe tested: 30 minutes
// ==============================================================

DEFPARAM CumulateOrders = false

myTema = TEMA[50](close)
myMacd = MACDLine[12,26,9](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

TEMAMACD
Read this firstKnown weaknesses2 points
  • No profit factor is available, because only sweep results exist for this strategy.
  • The code sets no stop loss, so a losing trade stays open until an exit signal arrives.

Questions

About this strategy

Can I run TEMA Cross With MACD Zero Line 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 44 market and timeframe combinations. The best run by trade count was Nasdaq 100, 30 minutes, with 256 trades.

How large was the drawdown?

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

Does it trade long, short or both?

It only takes long trades.

Related

Strategies like this one

Slow MACD Slope

Uses the same indicator.

6.80 PF · 7,305 trades

Volatility Spike Regression Long

Best run on the same market, Nasdaq 100.

1.22 PF · 1,850 trades

ADX Filtered EMA Cross

Also a trend strategy.

1.15 PF · 607 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