Join waitlist
Strategies / Momentum / RSI EMA Cross With Candle Stop

RSI EMA Cross With Candle Stop

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.

MomentumLong & shortSwingUSD/JPYDaily
6.89Profit factor
2,638,450Net profit USD
2.46%Win rate
3,044Trades
-174,090Max drawdown
867Avg trade

Best run of 3. USD/JPY, Daily, spread 1, from run pf:2026-10-12-USDJPY-D.tsv:7.

Entry rules, long

  1. The stop sits at the low of the most recent red candle, set at entry.
  2. A buy is taken only when no long position is open.

Entry rules, short

  1. The stop sits at the high of the most recent green candle, set at entry.

Exit rules

  1. The stop loss closes the position if price reaches it.

Test conditions

PeriodUp to 2026-10-12
InstrumentUSD/JPY, Daily
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-12

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
USD/JPYBest runDaily6.89 3,0442.462,638,450 USD-174,090
SilverDailyn/a 2,68225.5025,169 USD-20,437
GoldDailyn/a 3,02226.541,308 EUR-1,263

Charts

Results by run

Net profitMax drawdown

The code

ProBuilder code, as tested

// ==============================================================
// 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

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

RSIEMA
Read this firstKnown weaknesses2 points
  • Results include the spread only. Commissions and overnight financing are not included.
  • The code is published as it was backtested and has not been compiled again since.

Questions

About this strategy

Can I run RSI EMA Cross With Candle Stop 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 3 market and timeframe combinations. The best run was USD/JPY, Daily, with a profit factor of 6.89 over 3,044 trades.

How large was the drawdown?

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.

Does it trade long, short or both?

It trades both long and short.

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

MACD Histogram Long With RSI

Also a momentum strategy.

6.06 PF · 152 trades

See how ProRealAlgos combines strategies like this into one automated portfolio.

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