Buys when the smoothed RSI index first rises above 60 while the 20-period EMA is rising and the close is above the 50-period SMA. Sells short on the mirrored conditions, and any position closes when the EMA direction changes.
Best run of 6. USD/JPY, Daily, spread 1, from run pf:2026-10-12-USDJPY-D.tsv:47.
| 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.38 | 707 | 32.39 | 2,439,190 USD | -462,920 |
| USD/JPY | 1 hour | n/a | 7,113 | 31.15 | 613,280 USD | -256,790 |
| EUR/USD | Daily | n/a | 674 | 35.01 | 108,072 USD | -55,647 |
| GBP/USD | Daily | n/a | 743 | 34.32 | 11,848 USD | -10,875 |
| Gold | 4 hours | n/a | 1,584 | 33.46 | 1,931 EUR | -911 |
| Gold | Daily | n/a | 730 | 31.51 | 1,441 EUR | -874 |
Charts
The code
// ============================================================== // RSI Index EMA Direction // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false myRsi = RSI[6](close) rsindex = ExponentialAverage[3](myRsi) mamed = ExponentialAverage[20](close) maslow = Average[50](close) dir = 0
27 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 6 market and timeframe combinations. The best run was USD/JPY, Daily, with a profit factor of 1.38 over 707 trades.
The best run had a maximum drawdown of 462,920 USD at the tested position size, against a net result of 2,439,190 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.