Buys when the 14 period RSI crosses above its own 14 period simple average and closes the long when it crosses below. The strategy trades long only, with no stop or target.
Best run of 12. USD/JPY, 4 hours, spread 1, from run sweeps:2026-10-11-USDJPY-4h-opt.tsv:59.
| Period | Up to 2026-10-11 |
| Instrument | USD/JPY, 4 hours |
| 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 | 4 hours | n/a | 2,894 | 31.62 | 600,980 USD | -318,220 |
| Silver | Daily | n/a | 1,003 | 32.30 | 25,446 USD | -20,191 |
| Dow Jones | Daily | n/a | 1,195 | 33.89 | 21,568 EUR | -9,525 |
| DAX 40 | 4 hours | n/a | 2,515 | 33.12 | 11,164 EUR | -4,538 |
| Brent Crude | 4 hours | n/a | 1,392 | 34.20 | 9,137 EUR | -3,594 |
| US Crude Oil | 4 hours | n/a | 1,796 | 32.91 | 9,134 EUR | -3,862 |
| DAX 40 | Daily | n/a | 1,215 | 33.33 | 8,917 EUR | -5,138 |
| Nasdaq 100 | 4 hours | n/a | 2,534 | 32.28 | 6,380 EUR | -4,610 |
| Nasdaq 100 | Daily | n/a | 927 | 33.87 | 5,101 EUR | -4,672 |
| Gold | 4 hours | n/a | 2,449 | 32.63 | 3,272 EUR | -873 |
| Gold | Daily | n/a | 1,147 | 31.65 | 2,793 EUR | -1,175 |
| S&P 500 | Daily | n/a | 1,250 | 31.76 | 1,722 EUR | -1,485 |
Charts
Top 10 of 12 runs. The full list is in the table above.
The code
// ============================================================== // RSI Crosses Its Average // ProRealAlgos Strategy Library | prorealalgos.com // Type: Momentum // Direction: Long only // Timeframe tested: 4 hours // ============================================================== DEFPARAM CumulateOrders = false myRsi = RSI[14](close) rsima = Average[14](myRsi)
9 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 12 market and timeframe combinations. The best run by trade count was USD/JPY, 4 hours, with 2,894 trades.
The best run had a maximum drawdown of 318,220 USD at the tested position size, against a net result of 600,980 USD.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.