The strategy buys when the MACD line crosses above its 9 period signal line while below zero and RSI is under 50. It closes the long when the MACD line crosses below its signal while above zero.
Best run of 22. Nikkei 225, 5 min, spread 10, from run sweeps:2026-10-11-NIKKEI-5m-opt.tsv:33.
| Period | Up to 2026-10-11 |
| Instrument | Nikkei 225, 5 minutes |
| Spread | 10 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 |
|---|---|---|---|---|---|---|
| Nikkei 225Best run | 5 min | n/a | 1,394 | 58.82 | 15,114 USD | -9,579 |
| Nikkei 225 | 1 hour | n/a | 703 | 62.45 | 31,746 USD | -9,862 |
| Dow Jones | Daily | n/a | 87 | 78.16 | 27,556 EUR | -5,719 |
| Nikkei 225 | 4 hours | n/a | 181 | 67.40 | 23,080 USD | -10,935 |
| Nikkei 225 | Daily | n/a | 76 | 71.05 | 20,786 USD | -14,815 |
| Dow Jones | 1 hour | n/a | 298 | 63.09 | 18,911 EUR | -8,400 |
| Silver | Daily | n/a | 109 | 58.72 | 15,861 USD | -10,142 |
| Dow Jones | 30 min | n/a | 552 | 60.87 | 14,952 EUR | -8,380 |
| Nasdaq 100 | Daily | n/a | 63 | 73.02 | 14,156 EUR | -4,159 |
| Nasdaq 100 | 1 hour | n/a | 865 | 61.39 | 12,714 EUR | -4,378 |
| Nasdaq 100 | 4 hours | n/a | 210 | 67.14 | 11,872 EUR | -4,521 |
| Nasdaq 100 | 30 min | n/a | 1,298 | 58.78 | 10,852 EUR | -4,325 |
| Nikkei 225 | 30 min | n/a | 1,372 | 57.51 | 10,542 USD | -10,124 |
| DAX 40 | 1 hour | n/a | 811 | 65.47 | 9,339 EUR | -5,325 |
| DAX 40 | 4 hours | n/a | 201 | 60.20 | 8,646 EUR | -4,583 |
| DAX 40 | Daily | n/a | 91 | 68.13 | 8,560 EUR | -4,246 |
| FTSE 100 | Daily | n/a | 79 | 69.62 | 6,834 EUR | -2,647 |
| FTSE 100 | 4 hours | n/a | 200 | 66.00 | 3,996 EUR | -2,253 |
| S&P 500 | 1 hour | n/a | 864 | 66.09 | 3,599 EUR | -1,062 |
| S&P 500 | 30 min | n/a | 1,314 | 59.51 | 3,334 EUR | -1,155 |
| S&P 500 | Daily | n/a | 90 | 75.56 | 3,243 EUR | -880 |
| S&P 500 | 4 hours | n/a | 206 | 67.48 | 2,451 EUR | -1,180 |
Charts
Top 10 of 22 runs. The full list is in the table above.
The code
// ============================================================== // MACD RSI Pullback Long // ProRealAlgos Strategy Library | prorealalgos.com // Type: Mean reversion // Direction: Long only // Timeframe tested: 5 minutes // ============================================================== DEFPARAM CumulateOrders = false myMacd = MACDline[12,26,9](close) signal = ExponentialAverage[9](myMacd) myRsi = RSI[14](close)
10 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 22 market and timeframe combinations. The best run by trade count was Nikkei 225, 5 minutes, with 1,394 trades.
The best run had a maximum drawdown of 9,579 USD at the tested position size, against a net result of 15,114 USD.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.