Join waitlist
Strategies / Momentum / EMA Stochastic RSI Long

EMA Stochastic RSI Long

The idea buys when the 5 period EMA crosses up through the 10 period EMA with RSI(14) above 50 and a rising stochastic below 80. It sells the long on the reverse cross with RSI(14) below 50 and a falling stochastic above 20.

MomentumLong onlyIntradayUSD/JPY30 min
n/aProfit factor
301,660Net profit USD
30.39%Win rate
5,950Trades
-283,420Max drawdown
50.70Avg trade

Best run of 23. USD/JPY, 30 min, spread 1, from run sweeps:2026-10-04-USDJPY-30m-opt.tsv:20.

Entry rules, long

  1. RSI(14) is above 50.
  2. Slow %K (14 bar range, smoothed over 3 bars) and %D (3 bar average) were both below 80 on the previous bar, and both are now higher.
  3. No long position is open.

Exit rules

  1. RSI(14) is below 50.
  2. Slow %K and %D were both above 20 on the previous bar, and neither has risen, closing the long.

Test conditions

PeriodUp to 2026-10-04
InstrumentUSD/JPY, 30 minutes
Spread1 points
Starting capital1,000,000
CostsSpread only. Commissions and overnight financing are not included.
BarsUp to 200,000 bars, fewer where the instrument has less history
Last tested2026-10-04

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
USD/JPYBest run30 minn/a 5,95030.39301,660 USD-283,420
USD/JPYDailyn/a 41734.29919,070 USD-444,150
USD/JPY1 hourn/a 4,11332.24537,740 USD-298,330
USD/JPY4 hoursn/a 1,03734.81531,520 USD-392,320
EUR/USDDailyn/a 38533.5164,975 USD-48,177
SilverDailyn/a 38132.2839,977 USD-20,693
Silver4 hoursn/a 92630.5637,805 USD-11,409
Nikkei 225Dailyn/a 35133.6234,873 USD-11,322
Nikkei 2254 hoursn/a 78234.4029,466 USD-10,780
Dow JonesDailyn/a 46439.4420,399 EUR-8,187
Nasdaq 1004 hoursn/a 92538.5913,404 EUR-5,246
Dow Jones1 hourn/a 1,10834.7512,938 EUR-10,357
DAX 40Dailyn/a 46937.3111,618 EUR-4,127
Nasdaq 100Dailyn/a 37737.6711,553 EUR-5,636
Brent CrudeDailyn/a 16538.1811,426 EUR-10,027
DAX 401 hourn/a 3,12632.349,344 EUR-4,316
DAX 404 hoursn/a 92735.608,050 EUR-4,075
Nasdaq 1001 hourn/a 3,36632.205,711 EUR-5,420
Gold4 hoursn/a 89636.383,027 EUR-834
GoldDailyn/a 43932.352,464 EUR-1,015
S&P 500Dailyn/a 49235.772,292 EUR-1,014
Gold1 hourn/a 3,37231.642,234 EUR-763
S&P 5004 hoursn/a 96836.471,323 EUR-1,161

Charts

Results by run

Top 10 of 23 runs. The full list is in the table above.

Net profitMax drawdown

The code

ProBuilder code, as tested

// ==============================================================
// EMA Stochastic RSI Long
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Momentum
// Direction: Long only
// Timeframe tested: 30 minutes
// ==============================================================

DEFPARAM CumulateOrders = false

hh = highest[14](high)
ll = lowest[14](low)
raw = 0

24 more lines: the entry and exit rules.

Setup

How to load it

  1. Copy the code with the copy button on the code block.
  2. In ProRealTime, open a chart of the instrument and timeframe you want to test, then open ProOrder > New trading system and choose "Create with programming".
  3. Paste the code, give the system a name and save it.
  4. Click "Backtest", set your own spread and position size, and run it before you consider trading it live.

Indicators used

EMAStochasticRSISMA
Read this firstKnown weaknesses3 points
  • No profit factor is available, because only sweep results exist for this strategy.
  • The maximum drawdown of 283,420 USD is large next to the net profit of 301,660 USD.
  • The code sets no stop loss, so a losing trade stays open until an exit signal arrives.

Questions

About this strategy

Can I run EMA Stochastic RSI Long in ProOrder?

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.

Which markets was it tested on?

It was tested on 23 market and timeframe combinations. The best run by trade count was USD/JPY, 30 minutes, with 5,950 trades.

How large was the drawdown?

The best run had a maximum drawdown of 283,420 USD at the tested position size, against a net result of 301,660 USD.

Does it trade long, short or both?

It only takes long trades.

Related

Strategies like this one

Trend Surfer

Uses the same indicator.

1.04 PF · 10,813 trades

EMA 8 21 RSI Filtered Bracket

Best run on the same market, USD/JPY.

1.09 PF · 6,194 trades

ATR Momentum

Also a momentum strategy.

n/a PF · 15,021 trades

Want strategies that are already part of a live portfolio? Join the ProRealAlgos waitlist.

The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.

Past backtest results do not guarantee future results. This is not financial advice. Curated and maintained by ProRealAlgos. ProRealTime™ is a trademark of ProRealTime SAS. prorealalgos.comStatsDocs