Join waitlist
Strategies / Mean reversion / Deep Negative MACD Crossover Long

Deep Negative MACD Crossover Long

The strategy buys when the MACD line crosses above its 9 period signal line while the MACD line sits below negative 0.0217% of the close. It sells when the MACD line crosses above the histogram.

Mean reversionLong onlyIntradayEUR/USD5 min
3.62Profit factor
131,514Net profit USD
61.54%Win rate
871Trades
-28,613Max drawdown
151Avg trade

Best run of 18. EUR/USD, 5 min, spread 1, from run pf:2026-10-12-EURUSD-5m.tsv:2.

Entry rules, long

  1. The MACD line is below negative 0.0217% of the close.

Exit rules

  1. The MACD line crosses above the histogram (MACD line minus its 9 period signal), closing the long.

Test conditions

PeriodUp to 2026-10-12
InstrumentEUR/USD, 5 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-12

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
EUR/USDBest run5 min3.62 87161.54131,514 USD-28,613
Nasdaq 1001 hour1.47 1,22668.0315,954 EUR-2,848
S&P 5001 hour1.36 1,20868.293,549 EUR-788
USD/JPY4 hoursn/a 39172.12318,920 USD-251,030
Nikkei 2251 hourn/a 1,04665.6821,239 USD-7,261
Dow Jones1 hourn/a 42671.8319,035 EUR-6,822
Nikkei 2254 hoursn/a 29772.3916,986 USD-11,552
Dow JonesDailyn/a 16873.2116,609 EUR-5,559
SilverDailyn/a 15269.7416,454 USD-7,308
Nasdaq 1004 hoursn/a 36470.0513,303 EUR-4,496
Nasdaq 100Dailyn/a 11877.979,350 EUR-3,611
DAX 401 hourn/a 1,16669.307,853 EUR-4,764
DAX 40Dailyn/a 16564.857,433 EUR-4,667
FTSE 100Dailyn/a 13676.476,577 EUR-2,643
FTSE 1004 hoursn/a 32872.263,014 EUR-2,441
FTSE 1001 hourn/a 1,14969.192,643 EUR-2,346
S&P 5004 hoursn/a 34171.262,101 EUR-1,143
S&P 500Dailyn/a 16370.551,501 EUR-880

Charts

Results by run

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

// ==============================================================
// Deep Negative MACD Crossover Long
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Mean reversion
// Direction: Long only
// Timeframe tested: 5 minutes
// ==============================================================

DEFPARAM CumulateOrders = false

myMacd = MACDline[12,26,9](close)
signal = ExponentialAverage[9](myMacd)
hist = myMacd - signal
level = -close * 0.0217 / 100

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
  • 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 Deep Negative MACD Crossover Long 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 EUR/USD, 5 minutes, with a profit factor of 3.62 over 871 trades.

How large was the drawdown?

The best run had a maximum drawdown of 28,613 USD at the tested position size, against a net result of 131,514 USD.

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

Stochastic Crossover Long With Bracket

Best run on the same market, EUR/USD.

1.75 PF · 5,666 trades

RSI Reversal Asymmetric Exit

Also a mean reversion strategy.

3.60 PF · 2,265 trades

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

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