Join waitlist
Strategies / Momentum / MACD And RSI Momentum

MACD And RSI Momentum

Buys when MACD is above zero and above its signal line, the upper 12-bar Bollinger band is rising, and RSI(7) is above 70. Sells when RSI(7) is above 80, with a 25% stop and 1% target on each trade.

MomentumLong onlyIntradayUSD/JPY30 min
n/aProfit factor
557,210Net profit USD
70.91%Win rate
5,006Trades
-224,100Max drawdown
111Avg trade

Best run of 17. USD/JPY, 30 min, spread 1, from run sweeps:2026-10-04-USDJPY-30m-opt.tsv:53.

Entry rules, long

  1. The MACD(12, 26, 9) line is above zero.
  2. The MACD line is above its 9-bar EMA signal line.
  3. The upper 12-bar Bollinger band, 2 standard deviations, is higher than on the prior bar.

Exit rules

  1. A 1% profit target and 25% stop loss are set on entry.

Test conditions

PeriodUp to 2026-10-04
InstrumentUSD/JPY, 30 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-04

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
USD/JPYBest run30 minn/a 5,00670.91557,210 USD-224,100
Dow JonesDailyn/a 90184.9133,422 EUR-8,598
Nikkei 2254 hoursn/a 1,05474.8628,324 USD-16,993
Dow Jones4 hoursn/a 45680.7021,925 EUR-8,499
Dow Jones15 minn/a 3,95171.6316,571 EUR-13,053
Nasdaq 1004 hoursn/a 1,60367.6214,883 EUR-5,762
Dow Jones1 hourn/a 1,28672.5512,300 EUR-9,209
Nasdaq 100Dailyn/a 83678.1111,771 EUR-6,074
Dow Jones10 minn/a 4,59369.989,373 EUR-8,090
DAX 404 hoursn/a 1,29574.837,610 EUR-5,374
FTSE 100Dailyn/a 59881.106,972 EUR-4,185
DAX 40Dailyn/a 89376.605,690 EUR-5,300
S&P 500Dailyn/a 84675.414,559 EUR-1,280
S&P 5004 hoursn/a 1,31869.652,834 EUR-1,566
Gold4 hoursn/a 1,39775.452,456 EUR-1,232
Gold1 hourn/a 3,61267.552,265 EUR-1,520
GoldDailyn/a 84979.741,394 EUR-1,360

Charts

Results by run

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

Net profitMax drawdown

The code

ProBuilder code, as tested

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

DEFPARAM CumulateOrders = false

myMacd = MACDLine[12,26,9](close)
signal = ExponentialAverage[9](myMacd)
myRsi = RSI[7](close)
mid = Average[12](close)
sd = STD[12](close) * SQRT(12 / 11)
upper = mid + 2 * sd

11 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

MACDEMABollinger BandsRSI
Read this firstKnown weaknesses2 points
  • No profit factor is available, because only sweep results exist for this strategy.
  • Results include the spread only. Commissions and overnight financing are not included.

Questions

About this strategy

Can I run MACD And RSI Momentum 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 17 market and timeframe combinations. The best run by trade count was USD/JPY, 30 minutes, with 5,006 trades.

How large was the drawdown?

The best run had a maximum drawdown of 224,100 USD at the tested position size, against a net result of 557,210 USD.

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

EMA 8 21 RSI Filtered Bracket

Best run on the same market, USD/JPY.

1.09 PF · 6,194 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