Join waitlist
Strategies / Trend / Normalized MACD Histogram Trend

Normalized MACD Histogram Trend

The system buys 1 contract when the MACD histogram, scaled by a 12-period EMA of price, rises above 0.0025, and sells when it falls below -0.0025.

TrendLong onlySwingS&P 5004 hours
2.23Profit factor
5,186Net profit EUR
45.99%Win rate
137Trades
-737Max drawdown
37.85Avg trade

Best run of 63. S&P 500, 4 hours, spread 1, from run pf:2026-10-05-USA500-4h.tsv:8.

Entry rules, long

  1. The MACD line uses periods 12, 26 and 9, with a 9-period EMA as the signal line.

Exit rules

  1. The trade closes at market when (the MACD line minus its signal line) divided by the 12-period EMA is below -0.0025.

Test conditions

PeriodUp to 2026-10-05
InstrumentS&P 500, 4 hours
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-05

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
S&P 500Best run4 hours2.23 13745.995,186 EUR-737
Nasdaq 1001 hour1.98 17644.8918,930 EUR-3,578
USD/JPY1 hourn/a 966.67619,630 USD-382,490
USD/JPY30 minn/a 366.67232,760 USD-222,170
Nikkei 2254 hoursn/a 17950.2833,950 USD-12,819
SilverDailyn/a 26343.3528,969 USD-27,542
Nikkei 2251 hourn/a 9947.4728,490 USD-8,153
Silver4 hoursn/a 37645.2124,137 USD-12,597
Silver15 minn/a 12646.0323,268 USD-17,063
Nikkei 22515 minn/a 3852.6322,901 USD-9,732
Nasdaq 10030 minn/a 7054.2921,868 EUR-4,099
Nikkei 225Dailyn/a 22247.7520,969 USD-11,446
Nasdaq 10010 minn/a 1464.2919,418 EUR-4,091
Dow Jones10 minn/a 475.0018,907 EUR-8,800
Dow Jones4 hoursn/a 4259.5217,304 EUR-5,828
Dow Jones15 minn/a 2544.0016,444 EUR-7,223
Nasdaq 10015 minn/a 4636.9616,248 EUR-6,839
Nikkei 22530 minn/a 8345.7815,757 USD-8,182
Nasdaq 1005 minn/a 4100.0014,495 EUR-3,451
Dow Jones30 minn/a 2740.7413,831 EUR-8,197
Dow JonesDailyn/a 24745.7511,655 EUR-9,855
DAX 404 hoursn/a 19846.9710,545 EUR-5,532
DAX 4030 minn/a 6451.5610,116 EUR-5,518
DAX 40Dailyn/a 26551.709,439 EUR-3,929
DAX 401 hourn/a 14645.899,212 EUR-5,086
Nasdaq 1004 hoursn/a 21646.309,066 EUR-5,656
Nasdaq 100Dailyn/a 22647.798,661 EUR-4,636
Brent Crude30 minn/a 27643.487,821 EUR-5,375
Nikkei 2253 minn/a 633.336,441 USD-4,807
Nasdaq 1001 minn/a 1100.006,424 EUR-3,760
Nasdaq 1002 minn/a 1100.006,424 EUR-3,756
Dow Jones3 minn/a 2100.006,421 EUR-4,164
Dow Jones5 minn/a 2100.005,654 EUR-4,164
Nasdaq 1003 minn/a 366.675,126 EUR-2,506
S&P 50010 minn/a 977.784,923 EUR-716
Dow Jones1 minn/a 1100.004,710 EUR-4,166
Dow Jones2 minn/a 1100.004,706 EUR-4,164
DAX 4015 minn/a 3138.714,242 EUR-3,205
S&P 50030 minn/a 4445.454,103 EUR-1,143
Brent Crude1 minn/a 1963.163,719 EUR-2,131
DAX 405 minn/a 2100.003,584 EUR-1,749
S&P 50015 minn/a 2755.563,574 EUR-1,215
S&P 5001 hourn/a 11846.613,350 EUR-950
US Crude Oil1 minn/a 1154.553,234 EUR-1,613
FTSE 100Dailyn/a 18147.513,198 EUR-2,630
S&P 5005 minn/a 2100.002,877 EUR-694
Gold10 minn/a 862.502,806 EUR-1,043
DAX 403 minn/a 366.672,532 EUR-1,770
DAX 401 minn/a 1100.002,531 EUR-1,782
FTSE 10015 minn/a 1931.582,514 EUR-1,584
FTSE 1003 minn/a 1100.002,478 EUR-1,262
FTSE 1005 minn/a 250.002,407 EUR-1,260
Gold1 hourn/a 8845.452,365 EUR-722
FTSE 10010 minn/a 250.002,300 EUR-1,258
Gold4 hoursn/a 14145.392,056 EUR-917
GoldDailyn/a 22548.001,754 EUR-1,625
S&P 500Dailyn/a 24144.401,688 EUR-980
Gold30 minn/a 3548.571,453 EUR-695
Gold5 minn/a 944.441,446 EUR-1,272
Gold15 minn/a 1450.001,343 EUR-1,246
S&P 5002 minn/a 1100.001,070 EUR-393
S&P 5001 minn/a 1100.001,068 EUR-396
S&P 5003 minn/a 366.671,036 EUR-524

Charts

Results by run

Top 10 of 63 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

// ==============================================================
// Normalized MACD Histogram Trend
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Trend
// Direction: Long only
// Timeframe tested: 4 hours
// ==============================================================

DEFPARAM CumulateOrders = false

myMacd = MACDline[12,26,9](close)
signal = ExponentialAverage[9](myMacd)
delta = (myMacd - signal) / ExponentialAverage[12](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

MACDEMA
Longer historyRe-run on up to 1,000,000 barsS&P 500 · 4 hours · older data 48.72 EUR

S&P 500 had no history beyond the standard run, so both runs used 28,000 bars.

S&P 500 · 4 hours

Bars available28,000
Net, standard 200,000-bar run5,185.66 EUR
Net, long run5,234.38 EUR
Net on the older data alone48.72 EUR
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 Normalized MACD Histogram Trend 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 63 market and timeframe combinations. The best run was S&P 500, 4 hours, with a profit factor of 2.23 over 137 trades.

How large was the drawdown?

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

CCI Sign With EMA Alignment

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

1.23 PF · 1,253 trades

ATR Trailing Line Crossover Long

Also a trend strategy.

2.24 PF · 160 trades

Want strategies that are already part of a live portfolio? Join the ProRealAlgos waitlist.

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