Buys once stochastic %D has fallen below 20, then MACD crosses above its signal line and RSI(14) rises above 50, with no reading above 80 in between. The stop sits 0.25% below the 14-bar low, with a target 1.5 times the stop distance.
Best run of 36. DAX 40, 4 hours, spread 3, from run pf:2026-10-10-DAX40-4h.tsv:1.
| Period | Up to 2026-10-10 |
| Instrument | DAX 40, 4 hours |
| 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 |
|---|---|---|---|---|---|---|
| DAX 40Best run | 4 hours | 1.29 | 301 | 43.52 | 13,217 EUR | -3,309 |
| DAX 40 | 30 min | 1.14 | 1,402 | 42.01 | 14,002 EUR | -3,031 |
| Nikkei 225 | 4 hours | n/a | 234 | 46.15 | 30,038 USD | -10,387 |
| Dow Jones | Daily | n/a | 154 | 46.10 | 26,664 EUR | -9,692 |
| Nikkei 225 | Daily | n/a | 90 | 44.44 | 24,981 USD | -16,951 |
| Nikkei 225 | 10 min | n/a | 1,376 | 40.26 | 20,904 USD | -7,809 |
| Nikkei 225 | 15 min | n/a | 1,407 | 39.59 | 18,190 USD | -10,532 |
| Nikkei 225 | 3 min | n/a | 981 | 41.18 | 17,860 USD | -9,477 |
| Nikkei 225 | 5 min | n/a | 1,178 | 40.32 | 16,010 USD | -11,399 |
| Dow Jones | 4 hours | n/a | 97 | 45.36 | 13,864 EUR | -6,204 |
| Nikkei 225 | 2 min | n/a | 901 | 40.73 | 12,456 USD | -8,413 |
| Nasdaq 100 | 4 hours | n/a | 317 | 44.16 | 11,206 EUR | -6,590 |
| Nasdaq 100 | Daily | n/a | 108 | 55.56 | 10,511 EUR | -5,524 |
| Dow Jones | 1 hour | n/a | 323 | 42.41 | 10,456 EUR | -7,814 |
| DAX 40 | 10 min | n/a | 1,178 | 42.36 | 10,123 EUR | -3,057 |
| DAX 40 | 15 min | n/a | 1,333 | 40.96 | 9,120 EUR | -2,912 |
| Dow Jones | 5 min | n/a | 705 | 41.70 | 8,687 EUR | -6,834 |
| Nasdaq 100 | 1 hour | n/a | 980 | 41.73 | 7,461 EUR | -3,742 |
| Nasdaq 100 | 5 min | n/a | 935 | 41.18 | 6,912 EUR | -3,788 |
| Brent Crude | Daily | n/a | 52 | 46.15 | 6,775 EUR | -6,270 |
| Dow Jones | 1 min | n/a | 320 | 44.69 | 6,437 EUR | -2,553 |
| DAX 40 | 5 min | n/a | 892 | 43.83 | 6,164 EUR | -2,549 |
| Nasdaq 100 | 30 min | n/a | 1,380 | 40.29 | 5,993 EUR | -5,820 |
| Nasdaq 100 | 15 min | n/a | 1,391 | 40.26 | 5,978 EUR | -4,649 |
| DAX 40 | Daily | n/a | 164 | 45.12 | 5,531 EUR | -5,335 |
| DAX 40 | 1 hour | n/a | 942 | 41.40 | 4,714 EUR | -4,089 |
| FTSE 100 | Daily | n/a | 105 | 51.43 | 4,521 EUR | -2,600 |
| S&P 500 | Daily | n/a | 156 | 42.95 | 2,051 EUR | -947 |
| S&P 500 | 4 hours | n/a | 293 | 44.03 | 1,910 EUR | -1,367 |
| S&P 500 | 1 hour | n/a | 985 | 41.52 | 1,793 EUR | -1,088 |
| S&P 500 | 30 min | n/a | 1,272 | 41.27 | 1,544 EUR | -1,264 |
| Gold | 4 hours | n/a | 286 | 45.80 | 1,409 EUR | -1,228 |
| Gold | 30 min | n/a | 1,418 | 39.92 | 1,287 EUR | -830 |
| Gold | 15 min | n/a | 1,293 | 40.29 | 1,231 EUR | -736 |
| S&P 500 | 10 min | n/a | 1,073 | 40.17 | 930 EUR | -915 |
| Gold | Daily | n/a | 158 | 44.94 | 912 EUR | -850 |
Charts
Top 10 of 36 runs. The full list is in the table above.
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // Stochastic MACD RSI Sequence // ProRealAlgos Strategy Library | prorealalgos.com // Type: Momentum // Direction: Long only // Timeframe tested: 4 hours // ============================================================== DEFPARAM CumulateOrders = false ONCE stepa = 0 ONCE stepb = 0 ONCE stepc = 0 ONCE resumed = 0 hh = highest[14](high) ll = lowest[14](low)
51 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 36 market and timeframe combinations. The best run was DAX 40, 4 hours, with a profit factor of 1.29 over 301 trades.
The best run had a maximum drawdown of 3,309 EUR at the tested position size, against a net result of 13,217 EUR.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.