Goes long when the MACD(12,26) line is above its 9-period EMA signal with RSI(14) above 50, the close above the 200-period EMA, and above-average volume. Goes short on the mirror conditions and closes on RSI crossing 50.
Best run of 8. USD/JPY, 30 min, spread 1, from run sweeps:2026-10-11-USDJPY-30m-opt.tsv:83.
| Period | Up to 2026-10-11 |
| Instrument | USD/JPY, 30 minutes |
| 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-11 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| USD/JPYBest run | 30 min | n/a | 7,391 | 28.03 | 210,930 USD | -191,570 |
| USD/JPY | 1 hour | n/a | 3,687 | 31.16 | 751,200 USD | -195,850 |
| USD/JPY | Daily | n/a | 197 | 27.92 | 390,960 USD | -301,590 |
| Nasdaq 100 | Daily | n/a | 112 | 39.29 | 8,877 EUR | -5,277 |
| Nasdaq 100 | 4 hours | n/a | 542 | 35.42 | 6,567 EUR | -5,561 |
| Gold | 4 hours | n/a | 1,209 | 30.60 | 1,864 EUR | -839 |
| S&P 500 | Daily | n/a | 112 | 34.82 | 1,502 EUR | -1,245 |
| Gold | 1 hour | n/a | 3,486 | 29.12 | 1,140 EUR | -811 |
Charts
The code
// ============================================================== // MACD Trend Filter With Volume // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long & short // Timeframe tested: 30 minutes // ============================================================== DEFPARAM CumulateOrders = false myMacd = MACDline[12,26,9](close) signal = ExponentialAverage[9](myMacd) myRsi = RSI[14](close) ema = ExponentialAverage[200](close) volavg = Average[20](volume)
16 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 8 market and timeframe combinations. The best run by trade count was USD/JPY, 30 minutes, with 7,391 trades.
The best run had a maximum drawdown of 191,570 USD at the tested position size, against a net result of 210,930 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.