The strategy buys when a smoothed MACD histogram crosses above its own signal line while the histogram is below zero. It sells when the histogram crosses back below that signal line.
Best run of 12. Dow Jones, Daily, spread 3, from run pf:2026-10-10-DOW30-D.tsv:8.
| Period | Up to 2026-10-10 |
| Instrument | Dow Jones, Daily |
| Spread | 3 points |
| Starting capital | 1,000,000 |
| Costs | Spread only. Commissions and overnight financing are not included. |
| Bars | Up to 200,000 bars, fewer where the instrument has less history |
| Last tested | 2026-10-10 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| Dow JonesBest run | Daily | 1.51 | 580 | 46.72 | 31,502 EUR | -6,077 |
| Gold | 4 hours | 1.26 | 1,143 | 43.66 | 2,370 EUR | -520 |
| USD/JPY | 4 hours | n/a | 1,395 | 42.58 | 443,740 USD | -297,500 |
| Silver | 4 hours | n/a | 1,126 | 41.12 | 22,615 USD | -12,112 |
| Silver | Daily | n/a | 417 | 43.88 | 14,412 USD | -14,348 |
| Nikkei 225 | 4 hours | n/a | 996 | 43.17 | 13,269 USD | -9,975 |
| Dow Jones | 4 hours | n/a | 398 | 44.47 | 11,752 EUR | -6,241 |
| DAX 40 | Daily | n/a | 580 | 42.59 | 10,474 EUR | -3,173 |
| Nasdaq 100 | Daily | n/a | 470 | 41.28 | 7,431 EUR | -4,039 |
| Nasdaq 100 | 4 hours | n/a | 1,247 | 42.18 | 5,458 EUR | -3,975 |
| FTSE 100 | Daily | n/a | 488 | 43.85 | 4,190 EUR | -3,013 |
| S&P 500 | Daily | n/a | 620 | 40.65 | 1,608 EUR | -1,347 |
Charts
Top 10 of 12 runs. The full list is in the table above.
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // MACD Histogram Signal Crossover (long only) // ProRealAlgos Strategy Library | prorealalgos.com // Type: Momentum // Direction: Long only // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false myMacd = ExponentialAverage[12](close) - ExponentialAverage[26](close) sig = ExponentialAverage[9](myMacd) asp = myMacd - sig aspsig = ExponentialAverage[9](asp)
10 more lines: the entry and exit rules.
Setup
Dow Jones had no history beyond the standard run, so both runs used 14,000 bars.
| Bars available | 14,000 |
| Net, standard 200,000-bar run | 31,502.20 EUR |
| Net, long run | 31,502.20 EUR |
| Net on the older data alone | 0.00 EUR |
Questions
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.
It was tested on 12 market and timeframe combinations. The best run was Dow Jones, Daily, with a profit factor of 1.51 over 580 trades.
The best run had a maximum drawdown of 6,077 EUR at the tested position size, against a net result of 31,502 EUR.
It only takes long trades.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.