Buys when the MACD line, using 12 and 26 periods, crosses above zero and sells when it crosses back below zero. This long only strategy has no stop or target.
Best run of 24. Nasdaq 100, Daily, spread 3, from run pf:2026-10-10-NAS100-D.tsv:1.
| Period | Up to 2026-10-10 |
| Instrument | Nasdaq 100, 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-11 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| Nasdaq 100Best run | Daily | 2.46 | 186 | 43.01 | 20,995 EUR | -3,422 |
| Gold | Daily | 2.31 | 240 | 31.67 | 3,747 EUR | -809 |
| S&P 500 | Daily | 1.97 | 260 | 35.38 | 4,069 EUR | -735 |
| Dow Jones | Daily | 1.93 | 255 | 36.08 | 28,389 EUR | -6,165 |
| DAX 40 | Daily | 1.63 | 240 | 37.92 | 14,859 EUR | -3,429 |
| USD/JPY | 30 min | 1.14 | 3,342 | 30.22 | 695,470 USD | -171,200 |
| USD/JPY | Daily | n/a | 218 | 36.70 | 1,249,310 USD | -485,700 |
| USD/JPY | 1 hour | n/a | 2,342 | 31.21 | 635,650 USD | -217,260 |
| USD/JPY | 10 min | n/a | 3,531 | 29.11 | 186,980 USD | -154,010 |
| EUR/USD | Daily | n/a | 202 | 36.63 | 92,076 USD | -47,880 |
| Nikkei 225 | Daily | n/a | 196 | 34.18 | 38,984 USD | -13,365 |
| Nikkei 225 | 4 hours | n/a | 467 | 32.98 | 23,128 USD | -15,009 |
| Dow Jones | 4 hours | n/a | 181 | 35.91 | 13,682 EUR | -4,750 |
| US Crude Oil | Daily | n/a | 195 | 38.46 | 11,018 EUR | -7,512 |
| Nasdaq 100 | 1 hour | n/a | 2,011 | 32.17 | 10,970 EUR | -3,846 |
| Nasdaq 100 | 30 min | n/a | 3,373 | 32.29 | 10,830 EUR | -3,615 |
| Nasdaq 100 | 4 hours | n/a | 573 | 35.78 | 9,894 EUR | -5,336 |
| DAX 40 | 30 min | n/a | 3,423 | 30.18 | 8,828 EUR | -4,179 |
| DAX 40 | 1 hour | n/a | 1,920 | 31.82 | 7,561 EUR | -4,219 |
| Gold | 4 hours | n/a | 508 | 35.04 | 3,264 EUR | -1,051 |
| Gold | 1 hour | n/a | 1,997 | 30.45 | 3,015 EUR | -921 |
| S&P 500 | 4 hours | n/a | 547 | 37.66 | 3,007 EUR | -801 |
| Gold | 30 min | n/a | 3,436 | 29.25 | 1,932 EUR | -913 |
| Gold | 5 min | n/a | 3,519 | 28.67 | 652 EUR | -557 |
Charts
Top 10 of 24 runs. The full list is in the table above.
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // MACD Zero Line Cross // ProRealAlgos Strategy Library | prorealalgos.com // Type: Momentum // Direction: Long only // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false myMacd = MACDLine[12,26,9](close)
10 more lines: the entry and exit rules.
Setup
Nasdaq 100 had no history beyond the standard run, so both runs used 10,000 bars.
| Bars available | 10,000 |
| Net, standard 200,000-bar run | 20,994.60 EUR |
| Net, long run | 20,994.60 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 24 market and timeframe combinations. The best run was Nasdaq 100, Daily, with a profit factor of 2.46 over 186 trades.
The best run had a maximum drawdown of 3,422 EUR at the tested position size, against a net result of 20,995 EUR.
It only takes long trades.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.