Join waitlist
Strategies / Momentum / MACD Crossover With RSI Filter

MACD Crossover With RSI Filter

Buys when the MACD line crosses over its 9-period signal line after RSI(14) was at or below 30 within the last five prior bars. Closes the long on a MACD cross under the signal after RSI was at or above 70, with a 99% stop.

MomentumLong onlyIntradayDAX 4030 min
n/aProfit factor
7,897Net profit EUR
65.38%Win rate
520Trades
-5,407Max drawdown
15.19Avg trade

Best run of 37. DAX 40, 30 min, spread 3, from run sweeps:2026-10-04-DAX40-30m-opt.tsv:33.

Entry rules, long

  1. RSI(14) was at or below 30 on at least one of the five prior bars

Exit rules

  1. A stop loss 99% below the entry price

Test conditions

PeriodUp to 2026-10-04
InstrumentDAX 40, 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
DAX 40Best run30 minn/a 52065.387,897 EUR-5,407
USD/JPY4 hoursn/a 9370.97350,500 USD-313,510
USD/JPY15 minn/a 45666.45264,060 USD-227,470
Nikkei 22530 minn/a 50764.1035,864 USD-10,358
Nikkei 2251 hourn/a 27870.8627,465 USD-9,798
Silver4 hoursn/a 9263.0424,929 USD-10,196
Dow JonesDailyn/a 3278.1224,392 EUR-7,927
Nikkei 2254 hoursn/a 7072.8623,859 USD-9,991
Dow Jones4 hoursn/a 3372.7321,677 EUR-8,850
Nikkei 2255 minn/a 50866.1419,999 USD-7,865
DAX 404 hoursn/a 9472.3417,225 EUR-4,247
Nasdaq 1001 hourn/a 35970.1917,029 EUR-4,854
Nasdaq 10030 minn/a 50767.6515,591 EUR-5,770
Dow Jones30 minn/a 21566.9814,918 EUR-9,058
Nasdaq 1004 hoursn/a 10178.2213,540 EUR-4,101
Dow Jones15 minn/a 41764.7513,278 EUR-7,873
Nikkei 22515 minn/a 50560.5913,068 USD-12,758
Dow Jones10 minn/a 49762.3710,880 EUR-7,670
DAX 40Dailyn/a 3677.7810,141 EUR-4,661
Nasdaq 10010 minn/a 49761.579,359 EUR-5,437
Nasdaq 10015 minn/a 51862.369,159 EUR-4,633
US Crude OilDailyn/a 2965.528,320 EUR-7,501
Brent Crude30 minn/a 32366.876,811 EUR-4,695
Dow Jones1 minn/a 43865.536,767 EUR-3,379
Nasdaq 1003 minn/a 46365.445,284 EUR-4,260
S&P 5004 hoursn/a 9275.004,253 EUR-1,200
FTSE 100Dailyn/a 2281.823,449 EUR-3,381
S&P 5001 hourn/a 35370.252,351 EUR-1,299
FTSE 1005 minn/a 48764.482,213 EUR-1,287
S&P 50030 minn/a 48467.151,931 EUR-1,261
Gold1 hourn/a 31461.151,866 EUR-855
S&P 500Dailyn/a 3479.411,843 EUR-1,134
FTSE 10010 minn/a 47562.741,780 EUR-1,321
S&P 50010 minn/a 49462.961,455 EUR-971
Gold4 hoursn/a 9270.65955 EUR-800
S&P 5002 minn/a 41160.34614 EUR-452
S&P 5001 minn/a 37862.96550 EUR-392

Charts

Results by run

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

Net profitMax drawdown

The code

ProBuilder code, as tested

// ==============================================================
// MACD Crossover With RSI Filter
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Momentum
// Direction: Long only
// Timeframe tested: 30 minutes
// ==============================================================

DEFPARAM CumulateOrders = false

myMacd = ExponentialAverage[12](close) - ExponentialAverage[26](close)
signal = ExponentialAverage[9](myMacd)
myRsi = RSI[14](close)

wasdown = 0
wasup = 0
FOR myI = 1 TO 5 DO

20 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

MACDRSIEMA
Read this firstKnown weaknesses2 points
  • No profit factor is available, because only sweep results exist for this strategy.
  • The maximum drawdown of 5,407 EUR is large next to the net profit of 7,897 EUR.

Questions

About this strategy

Can I run MACD Crossover With RSI 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 37 market and timeframe combinations. The best run by trade count was DAX 40, 30 minutes, with 520 trades.

How large was the drawdown?

The best run had a maximum drawdown of 5,407 EUR at the tested position size, against a net result of 7,897 EUR.

Does it trade long, short or both?

It only takes long trades.

Related

Strategies like this one

Trend Surfer

Uses the same indicator.

1.04 PF · 10,813 trades

Heikin Ashi Color Flip

Best run on the same market, DAX 40.

1.12 PF · 3,692 trades

ATR Momentum

Also a momentum strategy.

n/a PF · 15,021 trades

Get the full rules, the complete code and the ProRealAlgos portfolio as a member.

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