The system buys when the 5-period RSI is above 70 and the 14-period RSI above 50, and shorts when the 5-period RSI is below 40 and the 14-period RSI below 50. Longs exit below 55 and shorts exit above 45 on the 5-period RSI.
Best run of 5. USD/JPY, Daily, spread 1, from run pf:2026-10-12-USDJPY-D.tsv:18.
| Period | Up to 2026-10-12 |
| 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-12 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| USD/JPYBest run | Daily | 1.26 | 1,409 | 34.14 | 2,283,700 USD | -435,100 |
| USD/JPY | 4 hours | n/a | 3,703 | 33.14 | 283,380 USD | -233,620 |
| Brent Crude | Daily | n/a | 538 | 35.50 | 13,005 EUR | -8,248 |
| GBP/USD | Daily | n/a | 1,483 | 34.05 | 10,571 USD | -9,904 |
| Gold | 4 hours | n/a | 3,168 | 32.77 | 1,790 EUR | -881 |
Charts
The code
// ============================================================== // Dual RSI Momentum Trend // ProRealAlgos Strategy Library | prorealalgos.com // Type: Momentum // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false rsifast = RSI[5](close) rsislow = RSI[14](close)
17 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 5 market and timeframe combinations. The best run was USD/JPY, Daily, with a profit factor of 1.26 over 1,409 trades.
The best run had a maximum drawdown of 435,100 USD at the tested position size, against a net result of 2,283,700 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.