Join waitlist
Strategies / Momentum / RSI Moving Average Crossover Filter

RSI Moving Average Crossover Filter

Buys when the short EMA of RSI(16) is above its 29-period average and the close is above the 8-period EMA. Closes the position when the RSI EMA falls back below its average.

MomentumLong onlySwingGold4 hours
1.38Profit factor
2,899Net profit EUR
40.55%Win rate
794Trades
-728Max drawdown
3.65Avg trade

Best run of 21. Gold, 4 hours, spread 0.6, from run pf:2026-10-12-GOLD-4h.tsv:3.

Entry rules, long

  1. The close is above the 8-period EMA of the close.
  2. A buy is taken only when no long position is open.

Exit rules

  1. The 12-period EMA of RSI(16) drops below the 29-period SMA of RSI(16).

Test conditions

PeriodUp to 2026-10-12
InstrumentGold, 4 hours
Spread0.6 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
GoldBest run4 hours1.38 79440.552,899 EUR-728
Gold1 hour1.34 2,86240.364,852 EUR-461
Nasdaq 1001 hour1.18 2,96839.9616,468 EUR-2,793
USD/JPY1 hour1.16 3,42739.771,029,260 USD-169,830
USD/JPYDailyn/a 33144.11800,420 USD-500,800
USD/JPY30 minn/a 4,94038.18311,600 USD-290,330
Silver4 hoursn/a 78239.1332,297 USD-12,245
Nikkei 2254 hoursn/a 66241.9929,325 USD-9,892
Nikkei 2251 hourn/a 2,39539.6727,714 USD-7,827
Dow JonesDailyn/a 39144.7626,938 EUR-7,752
DAX 401 hourn/a 2,70940.7216,707 EUR-5,044
Nikkei 225Dailyn/a 30243.3815,248 USD-14,706
Nasdaq 1004 hoursn/a 80741.7613,770 EUR-4,203
DAX 40Dailyn/a 37447.3312,616 EUR-4,387
Dow Jones1 hourn/a 99442.2511,422 EUR-10,108
DAX 404 hoursn/a 75942.429,281 EUR-4,306
Dow Jones4 hoursn/a 26842.169,090 EUR-7,910
S&P 500Dailyn/a 38443.232,889 EUR-1,304
GoldDailyn/a 34041.762,653 EUR-1,524
S&P 5004 hoursn/a 82943.181,904 EUR-1,230
S&P 5001 hourn/a 3,02040.231,529 EUR-911

Charts

Results by run

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

Above 1.0 made money, below 1.0 lost money.

The code

ProBuilder code, as tested

// ==============================================================
// RSI Moving Average Crossover Filter
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Momentum
// Direction: Long only
// Timeframe tested: 4 hours
// ==============================================================

DEFPARAM CumulateOrders = false

myRsi = RSI[16](close)
emav = ExponentialAverage[12](myRsi)
smav = Average[29](myRsi)
ema = ExponentialAverage[8](close)

10 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

RSIEMASMA
Read this firstKnown weaknesses2 points
  • The code sets no stop loss, so a losing trade stays open until an exit signal arrives.
  • Results include the spread only. Commissions and overnight financing are not included.

Questions

About this strategy

Can I run RSI Moving Average Crossover Filter 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 21 market and timeframe combinations. The best run was Gold, 4 hours, with a profit factor of 1.38 over 794 trades.

How large was the drawdown?

The best run had a maximum drawdown of 728 EUR at the tested position size, against a net result of 2,899 EUR.

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

CCI Breakout

Best run on the same market, Gold.

1.08 PF · 6,065 trades

MACD Histogram Zero Line Long

Also a momentum strategy.

1.39 PF · 637 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