Join waitlist
Strategies / Momentum / MACD Signal Line Crossover

MACD Signal Line Crossover

Buys when the MACD line crosses above its 9 period signal line and sells when it crosses back below. This long only strategy has no stop or target.

MomentumLong onlySwingDAX 404 hours
1.16Profit factor
12,504Net profit EUR
39.20%Win rate
1,222Trades
-3,100Max drawdown
10.23Avg trade

Best run of 18. DAX 40, 4 hours, spread 3, from run pf:2026-10-12-DAX40-4h.tsv:4.

Entry rules, long

Exit rules

  1. The MACD line crosses under its signal line and the long is closed.

Test conditions

PeriodUp to 2026-10-12
InstrumentDAX 40, 4 hours
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
DAX 40Best run4 hours1.16 1,22239.2012,504 EUR-3,100
USD/JPY4 hoursn/a 1,36539.41660,730 USD-221,650
USD/JPY1 hourn/a 5,39935.91423,300 USD-333,040
Nikkei 225Dailyn/a 44941.4333,772 USD-9,497
Nikkei 2254 hoursn/a 1,00537.5129,728 USD-10,572
SilverDailyn/a 50732.5429,365 USD-26,587
Dow JonesDailyn/a 59242.5721,974 EUR-6,472
Nasdaq 1004 hoursn/a 1,27338.3312,226 EUR-4,574
DAX 40Dailyn/a 63240.3511,733 EUR-4,076
DAX 401 hourn/a 4,29437.4011,181 EUR-3,765
Nasdaq 100Dailyn/a 47039.367,722 EUR-5,528
Nasdaq 1001 hourn/a 4,69335.546,366 EUR-6,192
Brent Crude4 hoursn/a 71038.875,160 EUR-4,802
GoldDailyn/a 54837.042,569 EUR-1,424
Gold4 hoursn/a 1,23738.482,505 EUR-886
S&P 500Dailyn/a 61138.952,324 EUR-1,023
S&P 5004 hoursn/a 1,27339.121,625 EUR-1,104
Gold1 hourn/a 4,65934.641,515 EUR-1,089

Charts

Results by run

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

Net profitMax drawdown

The code

ProBuilder code, as tested

// ==============================================================
// MACD Signal Line Crossover
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Momentum
// Direction: Long only
// Timeframe tested: 4 hours
// ==============================================================

DEFPARAM CumulateOrders = false

myMacd = MACDline[12,26,9](close)
signal = ExponentialAverage[9](myMacd)
delta = myMacd - signal

10 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

MACDEMA
Read this firstKnown weaknesses2 points
  • A profit factor of 1.16 leaves little room for costs beyond the spread.
  • The code sets no stop loss, so a losing trade stays open until an exit signal arrives.

Questions

About this strategy

Can I run MACD Signal Line Crossover 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 18 market and timeframe combinations. The best run was DAX 40, 4 hours, with a profit factor of 1.16 over 1,222 trades.

How large was the drawdown?

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

Heikin Ashi Color Flip

Best run on the same market, DAX 40.

1.12 PF · 3,692 trades

Reversal With Day High Power

Also a momentum strategy.

1.17 PF · 1,635 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