The strategy measures price against its 300 bar high, then buys when the MACD of that ratio is above its 10 period signal line. It sells when the histogram turns negative, with an 8% stop loss from entry.
Best run of 17. USD/JPY, 1 hour, spread 1, from run sweeps:2026-10-11-USDJPY-1h-opt.tsv:81.
| Period | Up to 2026-10-11 |
| Instrument | USD/JPY, 1 hour |
| 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 | 1 hour | n/a | 4,985 | 37.45 | 450,920 USD | -229,630 |
| Silver | 4 hours | n/a | 1,078 | 38.22 | 44,831 USD | -11,712 |
| Dow Jones | Daily | n/a | 567 | 40.39 | 24,121 EUR | -6,756 |
| Silver | Daily | n/a | 466 | 34.76 | 23,507 USD | -15,519 |
| Nikkei 225 | Daily | n/a | 431 | 38.28 | 20,859 USD | -10,983 |
| Nikkei 225 | 4 hours | n/a | 930 | 38.82 | 20,002 USD | -9,200 |
| Nasdaq 100 | 4 hours | n/a | 1,180 | 40.25 | 12,240 EUR | -4,345 |
| DAX 40 | 1 hour | n/a | 3,992 | 37.30 | 11,565 EUR | -4,546 |
| DAX 40 | 4 hours | n/a | 1,109 | 40.49 | 9,939 EUR | -4,701 |
| DAX 40 | Daily | n/a | 555 | 42.16 | 9,428 EUR | -3,690 |
| Dow Jones | 4 hours | n/a | 369 | 40.11 | 8,860 EUR | -7,357 |
| Brent Crude | 4 hours | n/a | 623 | 42.70 | 6,650 EUR | -4,313 |
| Gold | 4 hours | n/a | 1,115 | 41.35 | 2,992 EUR | -764 |
| S&P 500 | Daily | n/a | 569 | 39.37 | 2,324 EUR | -768 |
| S&P 500 | 4 hours | n/a | 1,193 | 40.40 | 1,830 EUR | -1,237 |
| Gold | Daily | n/a | 518 | 38.61 | 1,803 EUR | -904 |
| Gold | 1 hour | n/a | 4,337 | 35.35 | 1,511 EUR | -929 |
Charts
Top 10 of 17 runs. The full list is in the table above.
The code
// ============================================================== // Relative Strength MACD Long // ProRealAlgos Strategy Library | prorealalgos.com // Type: Momentum // Direction: Long only // Timeframe tested: 1 hour // ============================================================== DEFPARAM CumulateOrders = false rs = close / highest[300](high) fast = ExponentialAverage[14](rs) slow = ExponentialAverage[26](rs) myMacd = fast - slow signal = ExponentialAverage[10](myMacd) hist = myMacd - signal
11 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 17 market and timeframe combinations. The best run by trade count was USD/JPY, 1 hour, with 4,985 trades.
The best run had a maximum drawdown of 229,630 USD at the tested position size, against a net result of 450,920 USD.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.