The strategy buys when the high is above EMA(50) and EMA(14) while RSI(10) is rising, and sells short when the low is below both while RSI(10) is falling. Positions close when RSI(10) turns against them.
Best run of 3. USD/JPY, Daily, spread 1, from run sweeps:2026-10-11-USDJPY-D-opt.tsv:103.
| Period | Up to 2026-10-11 |
| 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-11 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| USD/JPYBest run | Daily | n/a | 4,051 | 35.57 | 1,567,630 USD | -631,750 |
| EUR/USD | 2 min | n/a | 214 | 42.99 | 565,574 USD | -203,801 |
| EUR/USD | 5 min | n/a | 600 | 33.83 | 307,736 USD | -257,118 |
Charts
The code
// ============================================================== // EMA and RSI Momentum Scalp // ProRealAlgos Strategy Library | prorealalgos.com // Type: Momentum // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false maslow = ExponentialAverage[50](close) mafast = ExponentialAverage[14](close) sig = RSI[10](close) chg = sig - sig[1] volat = AverageTrueRange[14](close) / close
17 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 by trade count was USD/JPY, Daily, with 4,051 trades.
The best run had a maximum drawdown of 631,750 USD at the tested position size, against a net result of 1,567,630 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.