Join waitlist
Strategies / Trend / EMA 8 21 RSI Filtered Bracket

EMA 8 21 RSI Filtered Bracket

Buys when the 8-period EMA crosses over the 21-period EMA with RSI(14) below 70, and sells short on the opposite cross with RSI(14) above 30. Each trade has a 1% stop loss and a 1% profit target measured from the fill price.

TrendLong & shortSwingUSD/JPY1 hour
1.09Profit factor
1,051,760Net profit USD
29.92%Win rate
6,194Trades
-201,760Max drawdown
170Avg trade

Best run of 4. USD/JPY, 1 hour, spread 1, from run pf:2026-10-13-USDJPY-1h.tsv:1.

Entry rules, long

  1. RSI(14) is below 70

Entry rules, short

  1. RSI(14) is above 30

Exit rules

  1. An opposite signal closes the trade and reverses it

Test conditions

PeriodUp to 2026-10-13
InstrumentUSD/JPY, 1 hour
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-13

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
USD/JPYBest run1 hour1.09 6,19429.921,051,760 USD-201,760
EUR/USDDailyn/a 58749.5732,076 USD-14,272
Dow Jones4 hoursn/a 46445.9111,738 EUR-5,404
Dow JonesDailyn/a 68146.116,785 EUR-4,741

Charts

Results by run

Net profitMax drawdown

The code

ProBuilder code, as tested

// ==============================================================
// EMA 8 21 RSI Filtered Bracket
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Trend
// Direction: Long & short
// Timeframe tested: 1 hour
// ==============================================================

DEFPARAM CumulateOrders = false

emaf = ExponentialAverage[8](close)
emas = ExponentialAverage[21](close)
myRsi = RSI[14](close)

13 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

EMARSI
Read this firstKnown weaknesses2 points
  • A profit factor of 1.09 leaves little room for costs beyond the spread.
  • Results include the spread only. Commissions and overnight financing are not included.

Questions

About this strategy

Can I run EMA 8 21 RSI Filtered Bracket 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 4 market and timeframe combinations. The best run was USD/JPY, 1 hour, with a profit factor of 1.09 over 6,194 trades.

How large was the drawdown?

The best run had a maximum drawdown of 201,760 USD at the tested position size, against a net result of 1,051,760 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

KDJ J Line Momentum Long

Best run on the same market, USD/JPY.

4.17 PF · 6,135 trades

EMA Crossover 1% Bracket

Also a trend strategy.

1.10 PF · 6,019 trades

Get the full rules, the complete code and the ProRealAlgos portfolio as a member.

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