Join waitlist
Strategies / Trend / MACD RSI Trend Filter

MACD RSI Trend Filter

Buys when the close is above the 200 period EMA, the MACD line crosses above its signal line and RSI is between 50 and 65. Sells short on the mirror setup, with RSI between 35 and 50.

TrendLong & shortSwingUSD/JPYDaily
1.64Profit factor
1,675,130Net profit USD
37.43%Win rate
334Trades
-327,250Max drawdown
5,015Avg trade

Best run of 19. USD/JPY, Daily, spread 1, from run pf:2026-10-05-USDJPY-D.tsv:18.

Entry rules, long

  1. The close is above the 200 period EMA.
  2. RSI(14) is above 50 and below 65.

Entry rules, short

  1. The close is below the 200 period EMA.
  2. RSI(14) is above 35 and below 50.

Exit rules

  1. A short closes when RSI(14) falls below 25 or the MACD line crosses over its signal line.

Test conditions

PeriodUp to 2026-10-05
InstrumentUSD/JPY, Daily
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
USD/JPYBest runDaily1.64 33437.431,675,130 USD-327,250
Gold4 hours1.44 65738.201,943 EUR-322
US Crude Oil1 hour1.16 1,89736.279,633 EUR-2,382
USD/JPY1 hourn/a 3,19233.33257,260 USD-166,110
USD/JPY4 hoursn/a 83035.90255,010 USD-147,120
EUR/USDDailyn/a 34437.5083,261 USD-32,320
EUR/USD1 hourn/a 3,84533.6065,404 USD-61,534
Nikkei 225Dailyn/a 26937.9225,884 USD-11,892
SilverDailyn/a 34233.6320,044 USD-8,524
DAX 404 hoursn/a 74437.777,000 EUR-3,211
Nasdaq 1004 hoursn/a 69837.396,046 EUR-2,329
US Crude Oil4 hoursn/a 57937.825,895 EUR-3,812
Brent Crude4 hoursn/a 44536.635,800 EUR-3,132
Dow JonesDailyn/a 37641.495,206 EUR-4,979
GBP/USDDailyn/a 35839.665,098 USD-3,261
Dow Jones4 hoursn/a 23038.705,080 EUR-3,135
DAX 40Dailyn/a 38739.024,632 EUR-2,736
GBP/USD4 hoursn/a 1,06736.183,475 USD-2,559
S&P 500Dailyn/a 38337.341,065 EUR-848

Charts

Results by run

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

// ==============================================================
// MACD RSI Trend Filter
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Trend
// Direction: Long & short
// Timeframe tested: Daily
// ==============================================================

DEFPARAM CumulateOrders = false

ema = ExponentialAverage[200](close)
myMacd = MACDLine[12,26,9](close)
sig = ExponentialAverage[9](myMacd)
myRsi = RSI[14](close)

21 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

MACDEMARSI
Longer historyRe-run on up to 1,000,000 barsUSD/JPY · Daily · older data 0.00 USD

USD/JPY had no history beyond the standard run, so both runs used 12,000 bars.

USD/JPY · Daily

Bars available12,000
Net, standard 200,000-bar run1,675,130.00 USD
Net, long run1,675,130.00 USD
Net on the older data alone0.00 USD
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 MACD RSI Trend 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 19 market and timeframe combinations. The best run was USD/JPY, Daily, with a profit factor of 1.64 over 334 trades.

How large was the drawdown?

The best run had a maximum drawdown of 327,250 USD at the tested position size, against a net result of 1,675,130 USD.

Does it trade long, short or both?

It trades both long and short.

Related

Strategies like this one

Trend Surfer

Uses the same indicator.

1.04 PF · 10,813 trades

EMA 8 21 RSI Filtered Bracket

Best run on the same market, USD/JPY.

1.09 PF · 6,194 trades

Ichimoku Cloud Chikou Touch

Also a trend strategy.

1.64 PF · 503 trades

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

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