Join waitlist
Strategies / Momentum / MACD Histogram Regression Long

MACD Histogram Regression Long

The strategy buys when a blended MACD histogram turns from negative to zero or above and rises, while the 11-bar linear regression candle is green and RSI(14) is below 55. It exits only at a 4% take-profit from the entry price.

MomentumLong onlySwingNasdaq 1001 hour
n/aProfit factor
27,710Net profit EUR
98.59%Win rate
71Trades
-6,161Max drawdown
390Avg trade

Best run of 72. Nasdaq 100, 1 hour, spread 3, from run sweeps:2026-10-11-NAS100-1h-opt.tsv:31.

Entry rules, long

  1. The histogram is rising compared with the prior bar.
  2. The 11-bar linear regression candle is green, with its open below its close.
  3. RSI(14) is below 55.
  4. Buys one contract at market when flat, after bar 300.

Exit rules

  1. No stop loss or other exit is used.

Test conditions

PeriodUp to 2026-10-11
InstrumentNasdaq 100, 1 hour
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-11

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
Nasdaq 100Best run1 hourn/a 7198.5927,710 EUR-6,161
USD/JPY30 minn/a 1794.12689,480 USD-255,740
USD/JPY1 hourn/a 11100.00517,790 USD-479,660
USD/JPY4 hoursn/a 1190.91517,060 USD-466,600
USD/JPY10 minn/a 1190.91484,600 USD-246,630
USD/JPY15 minn/a 1090.00454,920 USD-222,730
Nikkei 22530 minn/a 4797.8756,545 USD-11,079
Nikkei 2251 hourn/a 4297.6248,394 USD-10,734
Nikkei 22515 minn/a 2996.5546,204 USD-11,461
Nikkei 22510 minn/a 2195.2434,264 USD-12,992
Nikkei 2254 hoursn/a 32100.0032,869 USD-9,871
Dow Jones4 hoursn/a 2295.4531,138 EUR-7,818
Nikkei 2255 minn/a 1693.7527,715 USD-13,126
Nasdaq 10030 minn/a 67100.0027,269 EUR-6,277
Dow Jones15 minn/a 1994.7426,873 EUR-11,342
Dow Jones1 hourn/a 1994.7426,747 EUR-11,260
Nikkei 2253 minn/a 1593.3326,740 USD-13,081
Dow Jones30 minn/a 1894.4424,761 EUR-11,222
Nasdaq 10015 minn/a 3997.4423,744 EUR-6,288
Nikkei 2252 minn/a 1291.6721,295 USD-13,121
Silver1 hourn/a 3897.3719,152 USD-16,778
Dow Jones10 minn/a 1392.3118,940 EUR-8,394
DAX 4030 minn/a 3897.3718,244 EUR-5,810
Dow JonesDailyn/a 41100.0017,914 EUR-7,180
DAX 401 hourn/a 3497.0617,062 EUR-5,810
Nasdaq 1004 hoursn/a 53100.0016,912 EUR-5,975
DAX 404 hoursn/a 3196.7716,678 EUR-4,526
Nasdaq 10010 minn/a 21100.0016,526 EUR-6,298
Dow Jones5 minn/a 1090.0014,821 EUR-8,419
Nikkei 2251 minn/a 887.5014,604 USD-13,148
Nasdaq 1005 minn/a 15100.0012,940 EUR-5,875
DAX 40Dailyn/a 32100.0011,575 EUR-4,749
US Crude OilDailyn/a 61100.0011,509 EUR-8,068
DAX 4015 minn/a 1894.4411,248 EUR-5,814
DAX 4010 minn/a 1593.3310,223 EUR-4,474
SilverDailyn/a 2896.439,361 USD-8,526
Brent CrudeDailyn/a 29100.008,975 EUR-3,797
Brent Crude4 hoursn/a 27100.008,893 EUR-5,780
Nasdaq 1003 minn/a 9100.008,646 EUR-5,786
Dow Jones3 minn/a 683.338,425 EUR-7,876
Brent Crude30 minn/a 3396.978,335 EUR-6,563
DAX 405 minn/a 1291.677,822 EUR-4,463
S&P 5001 hourn/a 49100.007,040 EUR-1,306
Nasdaq 1001 minn/a 7100.006,961 EUR-3,760
Nasdaq 1002 minn/a 7100.006,910 EUR-3,756
S&P 50030 minn/a 49100.006,658 EUR-1,319
Nasdaq 100Dailyn/a 32100.006,307 EUR-5,855
FTSE 100Dailyn/a 35100.006,306 EUR-3,116
FTSE 1001 hourn/a 2295.455,737 EUR-3,326
FTSE 10030 minn/a 2095.005,601 EUR-3,080
S&P 5004 hoursn/a 41100.005,438 EUR-1,298
Dow Jones1 minn/a 580.005,373 EUR-4,166
S&P 50015 minn/a 27100.005,100 EUR-1,319
FTSE 1004 hoursn/a 1794.124,554 EUR-3,319
FTSE 10010 minn/a 1392.313,884 EUR-1,320
S&P 50010 minn/a 17100.003,689 EUR-1,323
FTSE 10015 minn/a 1090.003,211 EUR-2,949
S&P 5005 minn/a 14100.003,207 EUR-1,332
FTSE 1005 minn/a 1090.002,930 EUR-1,320
Gold1 hourn/a 4997.962,885 EUR-1,265
Gold15 minn/a 3396.972,614 EUR-1,278
Gold5 minn/a 2896.432,251 EUR-1,586
Gold10 minn/a 2996.552,193 EUR-1,490
DAX 401 minn/a 475.002,104 EUR-1,831
Gold30 minn/a 3697.222,081 EUR-1,477
Gold4 hoursn/a 3897.372,014 EUR-910
FTSE 1003 minn/a 683.331,798 EUR-1,372
S&P 5003 minn/a 7100.001,677 EUR-1,330
S&P 500Dailyn/a 34100.001,610 EUR-1,043
FTSE 1002 minn/a 580.001,379 EUR-1,265
S&P 5001 minn/a 5100.001,194 EUR-396
S&P 5002 minn/a 5100.001,173 EUR-699

Charts

Results by run

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

Net profitMax drawdown

The code

ProBuilder code, as tested

// ==============================================================
// MACD Histogram Regression Long
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Momentum
// Direction: Long only
// Timeframe tested: 1 hour
// ==============================================================

DEFPARAM CumulateOrders = false

myRsi = RSI[14](close)
ma = ExponentialAverage[5](close) - ExponentialAverage[8](close)
mb = ExponentialAverage[13](close) - ExponentialAverage[21](close)
mc = ExponentialAverage[34](close) - ExponentialAverage[144](close)
sa = ExponentialAverage[9](ma)
sb = ExponentialAverage[9](mb)
sc = ExponentialAverage[9](mc)
hist = (ma + mb + 2 * mc) / 4 - (sa + sb + 2 * sc) / 4

27 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

EMALinear RegressionMACDRSI
Read this firstKnown weaknesses2 points
  • No profit factor is available, because only sweep results exist for this strategy.
  • The best run has only 71 trades, which is a small sample to judge it on.

Questions

About this strategy

Can I run MACD Histogram Regression 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 72 market and timeframe combinations. The best run by trade count was Nasdaq 100, 1 hour, with 71 trades.

How large was the drawdown?

The best run had a maximum drawdown of 6,161 EUR at the tested position size, against a net result of 27,710 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

Volatility Spike Regression Long

Best run on the same market, Nasdaq 100.

1.22 PF · 1,850 trades

ATR Momentum

Also a momentum strategy.

n/a PF · 15,021 trades

See how ProRealAlgos combines strategies like this into one automated portfolio.

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