This idea buys when the MACD line crosses above a small negative level relative to price. It closes the long when the MACD line crosses above a small positive level, with a stop 0.05% below entry.
Best run of 6. Dow Jones, Daily, spread 3, from run pf:2026-10-12-DOW30-D.tsv:17.
| Period | Up to 2026-10-12 |
| 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-12 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| Dow JonesBest run | Daily | 4.70 | 246 | 2.44 | 5,215 EUR | -1,270 |
| EUR/USD | 3 min | n/a | 1,806 | 36.27 | 131,688 USD | -38,021 |
| EUR/USD | 2 min | n/a | 1,158 | 36.44 | 64,794 USD | -41,809 |
| EUR/USD | 10 min | n/a | 2,886 | 31.36 | 41,276 USD | -34,736 |
| Nikkei 225 | Daily | n/a | 199 | 2.01 | 4,606 USD | -3,672 |
| Dow Jones | 4 hours | n/a | 176 | 9.66 | 2,566 EUR | -2,098 |
Charts
The code
// ============================================================== // MACD Level Cross Long // ProRealAlgos Strategy Library | prorealalgos.com // Type: Momentum // Direction: Long only // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false myMacd = ExponentialAverage[12](close) - ExponentialAverage[26](close) linebuy = close * (-0.017391) / 100 linesell = close * 0.008696 / 100
11 more lines: the entry and exit rules.
Setup
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 6 market and timeframe combinations. The best run was Dow Jones, Daily, with a profit factor of 4.70 over 246 trades.
The best run had a maximum drawdown of 1,270 EUR at the tested position size, against a net result of 5,215 EUR.
It only takes long trades.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.