Buys when RSI(14) crosses above its 9-period EMA and sells short when it crosses below. Each entry uses a stop at the low of the most recent red candle for longs or the high of the most recent green candle for shorts.
Best run of 3. USD/JPY, Daily, spread 1, from run pf:2026-10-12-USDJPY-D.tsv:7.
| 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 | 6.89 | 3,044 | 2.46 | 2,638,450 USD | -174,090 |
| Silver | Daily | n/a | 2,682 | 25.50 | 25,169 USD | -20,437 |
| Gold | Daily | n/a | 3,022 | 26.54 | 1,308 EUR | -1,263 |
Charts
The code
// ============================================================== // RSI EMA Cross With Candle Stop // ProRealAlgos Strategy Library | prorealalgos.com // Type: Momentum // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ONCE redlow = 0 ONCE greenhigh = 0
25 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 3 market and timeframe combinations. The best run was USD/JPY, Daily, with a profit factor of 6.89 over 3,044 trades.
The best run had a maximum drawdown of 174,090 USD at the tested position size, against a net result of 2,638,450 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.