Buys when the close is above the 200 period EMA, the MACD line crosses above its signal line and RSI is between 50 and 65. Sells short on the mirror setup, with RSI between 35 and 50.
Best run of 19. USD/JPY, Daily, spread 1, from run pf:2026-10-05-USDJPY-D.tsv:18.
| Period | Up to 2026-10-05 |
| Instrument | USD/JPY, Daily |
| Spread | 1 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-05 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| USD/JPYBest run | Daily | 1.64 | 334 | 37.43 | 1,675,130 USD | -327,250 |
| Gold | 4 hours | 1.44 | 657 | 38.20 | 1,943 EUR | -322 |
| US Crude Oil | 1 hour | 1.16 | 1,897 | 36.27 | 9,633 EUR | -2,382 |
| USD/JPY | 1 hour | n/a | 3,192 | 33.33 | 257,260 USD | -166,110 |
| USD/JPY | 4 hours | n/a | 830 | 35.90 | 255,010 USD | -147,120 |
| EUR/USD | Daily | n/a | 344 | 37.50 | 83,261 USD | -32,320 |
| EUR/USD | 1 hour | n/a | 3,845 | 33.60 | 65,404 USD | -61,534 |
| Nikkei 225 | Daily | n/a | 269 | 37.92 | 25,884 USD | -11,892 |
| Silver | Daily | n/a | 342 | 33.63 | 20,044 USD | -8,524 |
| DAX 40 | 4 hours | n/a | 744 | 37.77 | 7,000 EUR | -3,211 |
| Nasdaq 100 | 4 hours | n/a | 698 | 37.39 | 6,046 EUR | -2,329 |
| US Crude Oil | 4 hours | n/a | 579 | 37.82 | 5,895 EUR | -3,812 |
| Brent Crude | 4 hours | n/a | 445 | 36.63 | 5,800 EUR | -3,132 |
| Dow Jones | Daily | n/a | 376 | 41.49 | 5,206 EUR | -4,979 |
| GBP/USD | Daily | n/a | 358 | 39.66 | 5,098 USD | -3,261 |
| Dow Jones | 4 hours | n/a | 230 | 38.70 | 5,080 EUR | -3,135 |
| DAX 40 | Daily | n/a | 387 | 39.02 | 4,632 EUR | -2,736 |
| GBP/USD | 4 hours | n/a | 1,067 | 36.18 | 3,475 USD | -2,559 |
| S&P 500 | Daily | n/a | 383 | 37.34 | 1,065 EUR | -848 |
Charts
Top 10 of 19 runs. The full list is in the table above.
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // MACD RSI Trend Filter // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ema = ExponentialAverage[200](close) myMacd = MACDLine[12,26,9](close) sig = ExponentialAverage[9](myMacd) myRsi = RSI[14](close)
21 more lines: the entry and exit rules.
Setup
USD/JPY had no history beyond the standard run, so both runs used 12,000 bars.
| Bars available | 12,000 |
| Net, standard 200,000-bar run | 1,675,130.00 USD |
| Net, long run | 1,675,130.00 USD |
| Net on the older data alone | 0.00 USD |
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 USD/JPY, Daily, with a profit factor of 1.64 over 334 trades.
The best run had a maximum drawdown of 327,250 USD at the tested position size, against a net result of 1,675,130 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.