The system buys when RSI rises above 70 and sells short when RSI falls below 30, provided volatility is not contracting. Positions close when price crosses back through the 50-period average.
Best run of 13. USD/JPY, Daily, spread 1, from run pf:2026-10-12-USDJPY-D.tsv:60.
| Period | Up to 2026-10-13 |
| 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-13 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| USD/JPYBest run | Daily | 1.78 | 167 | 44.31 | 2,016,800 USD | -481,100 |
| USD/JPY | 30 min | 1.13 | 2,516 | 38.08 | 629,680 USD | -151,605 |
| EUR/USD | Daily | n/a | 153 | 46.41 | 88,605 USD | -52,555 |
| Silver | 4 hours | n/a | 426 | 41.31 | 40,064 USD | -10,366 |
| Nikkei 225 | Daily | n/a | 142 | 44.37 | 34,421 USD | -11,739 |
| Silver | 30 min | n/a | 2,396 | 35.52 | 20,115 USD | -18,113 |
| GBP/USD | Daily | n/a | 161 | 36.02 | 14,424 USD | -5,312 |
| Nikkei 225 | 2 min | n/a | 2,413 | 33.86 | 9,940 USD | -7,561 |
| Nikkei 225 | 3 min | n/a | 2,462 | 34.16 | 9,521 USD | -9,231 |
| Nasdaq 100 | Daily | n/a | 141 | 34.04 | 5,770 EUR | -4,623 |
| Gold | Daily | n/a | 176 | 34.66 | 1,912 EUR | -850 |
| Gold | 30 min | n/a | 2,481 | 37.48 | 1,858 EUR | -704 |
| Gold | 1 hour | n/a | 1,640 | 39.39 | 1,390 EUR | -1,214 |
Charts
Top 10 of 13 runs. The full list is in the table above.
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // RSI Momentum with Moving Average Exit // ProRealAlgos Strategy Library | prorealalgos.com // Type: Momentum // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false myRsi = RSI[14](close) ma = Average[50](close) sd = STD[20](close)
22 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 13 market and timeframe combinations. The best run was USD/JPY, Daily, with a profit factor of 1.78 over 167 trades.
The best run had a maximum drawdown of 481,100 USD at the tested position size, against a net result of 2,016,800 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.