Join waitlist
Strategies / Momentum / MACD Histogram Long With RSI

MACD Histogram Long With RSI

The system buys when the MACD histogram crosses above zero or RSI(14) crosses below 30. It closes the long when RSI(14) crosses above 70, or when ADX(14) crosses below 25, the histogram crosses below zero and close crosses below the upper Bollinger Band on the same bar.

MomentumLong onlySwingDow JonesDaily
6.06Profit factor
54,545Net profit EUR
84.21%Win rate
152Trades
-11,142Max drawdown
359Avg trade

Best run of 35. Dow Jones, Daily, spread 3, from run pf:2026-10-12-DOW30-D.tsv:35.

Entry rules, long

  1. RSI(14) crosses below 30.

Exit rules

  1. On the same bar, ADX(14) crosses below 25, the histogram crosses below 0 and close crosses below the upper Bollinger Band.

Test conditions

PeriodUp to 2026-10-12
InstrumentDow Jones, Daily
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-13

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
Dow JonesBest runDaily6.06 15284.2154,545 EUR-11,142
S&P 500Daily3.43 17485.635,040 EUR-1,238
S&P 50030 min1.28 1,77873.904,564 EUR-1,036
USD/JPY1 hourn/a 1,29572.28329,940 USD-295,830
USD/JPY10 minn/a 1,75274.32207,820 USD-163,830
Nikkei 2254 hoursn/a 27378.0247,248 USD-11,960
Nikkei 22530 minn/a 1,85571.0533,832 USD-13,189
Nikkei 2251 hourn/a 97370.9130,868 USD-11,163
Nikkei 22510 minn/a 1,81971.8522,746 USD-10,714
Dow Jones15 minn/a 1,43974.5022,716 EUR-10,109
Nikkei 22515 minn/a 1,81070.9922,213 USD-12,944
Nasdaq 1004 hoursn/a 39577.2221,396 EUR-6,210
Dow Jones10 minn/a 1,71773.1519,606 EUR-7,943
Dow Jones30 minn/a 75474.5419,202 EUR-8,382
Nasdaq 100Dailyn/a 14683.5619,026 EUR-5,520
Dow Jones4 hoursn/a 11978.1516,409 EUR-11,316
DAX 404 hoursn/a 32676.9915,851 EUR-5,875
Nasdaq 10030 minn/a 1,81372.1513,953 EUR-6,793
DAX 40Dailyn/a 17780.7912,425 EUR-5,808
DAX 401 hourn/a 1,11274.0111,768 EUR-5,669
FTSE 100Dailyn/a 11484.2110,093 EUR-3,590
Nasdaq 1001 hourn/a 1,31572.629,628 EUR-6,527
Nasdaq 10015 minn/a 1,85273.658,876 EUR-7,475
Nasdaq 10010 minn/a 1,79673.668,359 EUR-4,979
FTSE 1004 hoursn/a 28274.476,015 EUR-3,099
DAX 4015 minn/a 1,78772.415,297 EUR-5,221
FTSE 1001 hourn/a 1,00972.354,920 EUR-3,070
DAX 4010 minn/a 1,67771.914,556 EUR-4,402
S&P 5004 hoursn/a 35377.624,242 EUR-1,298
FTSE 10030 minn/a 1,68770.183,821 EUR-3,180
S&P 5001 hourn/a 1,29374.632,984 EUR-1,801
S&P 50015 minn/a 1,82175.012,859 EUR-1,267
S&P 50010 minn/a 1,76071.701,751 EUR-1,364
GoldDailyn/a 14176.601,603 EUR-1,408
FTSE 10010 minn/a 1,63069.941,345 EUR-1,335

Charts

Results by run

Top 10 of 35 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 Histogram Long With RSI
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Momentum
// Direction: Long only
// Timeframe tested: Daily
// ==============================================================

DEFPARAM CumulateOrders = false

myRsi = RSI[14](close)
myAdx = ADX[14]
myMacd = ExponentialAverage[12](close) - ExponentialAverage[26](close)
delta = myMacd - ExponentialAverage[9](myMacd)
upper = Average[20](close) + 2 * STD[20](close)

12 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

MACDRSIADXBollinger Bands
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 Histogram Long With RSI 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 35 market and timeframe combinations. The best run was Dow Jones, Daily, with a profit factor of 6.06 over 152 trades.

How large was the drawdown?

The best run had a maximum drawdown of 11,142 EUR at the tested position size, against a net result of 54,545 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

Turtle Trade

Best run on the same market, Dow Jones.

2.42 PF · 6,324 trades

MACD Threshold Long Signal

Also a momentum strategy.

5.57 PF · 706 trades

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

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