The strategy trades extreme RSI readings only when the custom ADX shows a weak trend below 20. It buys when RSI(7) is above 80, sells short when it is below 20, and exits when ADX rises above 20.
Best run of 14. USD/JPY, Daily, spread 1, from run pf:2026-10-12-USDJPY-D.tsv:26.
| 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.77 | 127 | 51.18 | 2,157,810 USD | -495,900 |
| Gold | 4 hours | 1.40 | 343 | 42.27 | 2,874 EUR | -703 |
| EUR/USD | Daily | n/a | 116 | 42.24 | 128,972 USD | -76,374 |
| Nikkei 225 | Daily | n/a | 95 | 45.26 | 87,474 USD | -11,780 |
| Silver | 4 hours | n/a | 346 | 43.64 | 35,679 USD | -19,623 |
| Nikkei 225 | 1 hour | n/a | 1,092 | 39.38 | 21,487 USD | -14,788 |
| Nikkei 225 | 2 min | n/a | 1,902 | 37.70 | 15,600 USD | -10,371 |
| US Crude Oil | 30 min | n/a | 1,840 | 41.36 | 13,747 EUR | -6,530 |
| Brent Crude | 1 hour | n/a | 692 | 40.03 | 10,197 EUR | -6,347 |
| Nasdaq 100 | Daily | n/a | 93 | 40.86 | 9,642 EUR | -8,281 |
| Nasdaq 100 | 10 min | n/a | 2,047 | 38.15 | 7,476 EUR | -5,120 |
| Gold | 30 min | n/a | 1,915 | 38.02 | 2,410 EUR | -797 |
| Gold | Daily | n/a | 132 | 40.15 | 1,945 EUR | -944 |
| Gold | 15 min | n/a | 1,932 | 36.96 | 1,136 EUR | -1,026 |
Charts
Top 10 of 14 runs. The full list is in the table above.
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // ADX Filtered RSI Reversal // ProRealAlgos Strategy Library | prorealalgos.com // Type: Mean reversion // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ONCE plus = 0 ONCE minus = 0 myRsi = RSI[7](close) upm = high - high[1] downm = -(low - low[1])
40 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 14 market and timeframe combinations. The best run was USD/JPY, Daily, with a profit factor of 1.77 over 127 trades.
The best run had a maximum drawdown of 495,900 USD at the tested position size, against a net result of 2,157,810 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.