Buys when the MACD histogram crosses above a small negative threshold or RSI(15) crosses above 31, with smoothed stochastic RSI below 61. Closes the long when the histogram crosses below 0, or price crosses under its average while the smoothed stochastic RSI is above 61.
Best run of 13. Dow Jones, Daily, spread 3, from run pf:2026-10-13-DOW30-D.tsv:4.
| Period | Up to 2026-10-13 |
| 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-13 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| Dow JonesBest run | Daily | 1.58 | 581 | 43.20 | 28,068 EUR | -5,769 |
| EUR/USD | 5 min | n/a | 1,770 | 37.91 | 60,723 USD | -55,510 |
| Silver | Daily | n/a | 458 | 39.30 | 41,786 USD | -12,580 |
| Dow Jones | 4 hours | n/a | 383 | 48.56 | 16,334 EUR | -7,856 |
| Nasdaq 100 | 4 hours | n/a | 1,207 | 46.64 | 14,293 EUR | -5,665 |
| Nikkei 225 | 4 hours | n/a | 945 | 42.33 | 12,225 USD | -7,719 |
| DAX 40 | 4 hours | n/a | 1,133 | 45.45 | 11,269 EUR | -4,342 |
| Brent Crude | Daily | n/a | 201 | 39.80 | 7,104 EUR | -3,515 |
| Nasdaq 100 | Daily | n/a | 446 | 40.36 | 5,013 EUR | -4,998 |
| US Crude Oil | 4 hours | n/a | 900 | 40.89 | 4,404 EUR | -3,162 |
| Gold | 4 hours | n/a | 1,100 | 42.09 | 2,169 EUR | -1,049 |
| S&P 500 | 4 hours | n/a | 1,188 | 45.20 | 1,721 EUR | -1,217 |
| S&P 500 | Daily | n/a | 623 | 38.36 | 1,146 EUR | -1,034 |
Charts
Top 10 of 13 runs. The full list is in the table above.
The code
// ============================================================== // MACD Momentum Long With Stochastic RSI // ProRealAlgos Strategy Library | prorealalgos.com // Type: Momentum // Direction: Long only // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ONCE sincebad = 1000 myMacd = ExponentialAverage[11](close) - ExponentialAverage[18](close) amacd = ExponentialAverage[6](myMacd) delta = myMacd - amacd mthr = -0.02 / 100 * close rs = RSI[15](close) rlo = lowest[9](rs) rhi = highest[9](rs)
27 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 13 market and timeframe combinations. The best run was Dow Jones, Daily, with a profit factor of 1.58 over 581 trades.
The best run had a maximum drawdown of 5,769 EUR at the tested position size, against a net result of 28,068 EUR.
It only takes long trades.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.