Goes long when MACD is above its signal line, smoothed stochastic %K is above 50 and RSI is above 50. Goes short on the mirror conditions, and an opposite signal reverses the position.
Best run of 7. USD/JPY, 1 hour, spread 1, from run sweeps:2026-10-12-USDJPY-1h-opt.tsv:33.
| Period | Up to 2026-10-12 |
| 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-12 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| USD/JPYBest run | 1 hour | n/a | 8,865 | 36.23 | 595,630 USD | -357,320 |
| USD/JPY | Daily | n/a | 889 | 36.33 | 2,165,810 USD | -583,130 |
| USD/JPY | 4 hours | n/a | 2,263 | 38.71 | 593,690 USD | -286,040 |
| Silver | Daily | n/a | 834 | 35.73 | 41,033 USD | -23,715 |
| GBP/USD | Daily | n/a | 927 | 39.70 | 13,013 USD | -7,072 |
| DAX 40 | 1 hour | n/a | 7,068 | 36.79 | 7,025 EUR | -4,562 |
| Gold | 4 hours | n/a | 2,019 | 38.04 | 2,128 EUR | -867 |
Charts
The code
// ============================================================== // MACD Stochastic RSI Reversal // ProRealAlgos Strategy Library | prorealalgos.com // Type: Momentum // Direction: Long & short // Timeframe tested: 1 hour // ============================================================== DEFPARAM CumulateOrders = false ONCE raw = 50 myMacd = ExponentialAverage[12](close) - ExponentialAverage[26](close) signal = ExponentialAverage[9](myMacd) ll = lowest[14](low) hh = highest[14](high)
24 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 7 market and timeframe combinations. The best run by trade count was USD/JPY, 1 hour, with 8,865 trades.
The best run had a maximum drawdown of 357,320 USD at the tested position size, against a net result of 595,630 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.