Buys when the MACD line crosses above its 9-period signal line while the Supertrend direction value is 1, which marks a downtrend. Closes the long when MACD crosses below the signal while the direction value is -1.
Best run of 19. Dow Jones, Daily, spread 3, from run pf:2026-10-12-DOW30-D.tsv:23.
| 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 | 2.68 | 155 | 68.39 | 23,431 EUR | -5,719 |
| Nikkei 225 | 4 hours | n/a | 288 | 64.93 | 30,829 USD | -10,959 |
| Nikkei 225 | 1 hour | n/a | 1,036 | 58.78 | 27,880 USD | -11,270 |
| Nasdaq 100 | 1 hour | n/a | 1,236 | 60.76 | 15,728 EUR | -4,728 |
| Dow Jones | 1 hour | n/a | 406 | 60.84 | 14,445 EUR | -11,914 |
| DAX 40 | 1 hour | n/a | 1,183 | 61.28 | 14,360 EUR | -4,825 |
| Nasdaq 100 | 4 hours | n/a | 348 | 66.95 | 12,786 EUR | -6,349 |
| Nasdaq 100 | Daily | n/a | 131 | 64.89 | 11,833 EUR | -4,404 |
| DAX 40 | Daily | n/a | 143 | 67.83 | 11,467 EUR | -5,567 |
| Dow Jones | 30 min | n/a | 706 | 60.06 | 9,323 EUR | -7,982 |
| FTSE 100 | Daily | n/a | 135 | 68.89 | 8,141 EUR | -3,037 |
| Brent Crude | 4 hours | n/a | 208 | 59.13 | 5,153 EUR | -3,234 |
| FTSE 100 | 1 hour | n/a | 1,161 | 59.00 | 3,720 EUR | -2,307 |
| FTSE 100 | 4 hours | n/a | 331 | 58.31 | 3,662 EUR | -2,032 |
| S&P 500 | 1 hour | n/a | 1,253 | 60.97 | 3,434 EUR | -1,402 |
| S&P 500 | 4 hours | n/a | 333 | 68.17 | 2,414 EUR | -1,400 |
| S&P 500 | Daily | n/a | 163 | 58.90 | 2,133 EUR | -1,238 |
| Gold | Daily | n/a | 152 | 59.87 | 1,756 EUR | -1,534 |
| S&P 500 | 30 min | n/a | 1,859 | 58.15 | 1,401 EUR | -1,325 |
Charts
Top 10 of 19 runs. The full list is in the table above.
The code
// ============================================================== // Supertrend Filtered MACD Crossover // ProRealAlgos Strategy Library | prorealalgos.com // Type: Momentum // Direction: Long only // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ONCE up = 0 ONCE dn = 0 ONCE st = 0 ONCE dir = 1 myAtr = AverageTrueRange[10](close) basicup = MedianPrice + 3 * myAtr basicdn = MedianPrice - 3 * myAtr prevup = up prevdn = dn prevst = st
47 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 19 market and timeframe combinations. The best run was Dow Jones, Daily, with a profit factor of 2.68 over 155 trades.
The best run had a maximum drawdown of 5,719 EUR at the tested position size, against a net result of 23,431 EUR.
It only takes long trades.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.