Join waitlist
Strategies / Trend / SMA Cross With RSI Filter

SMA Cross With RSI Filter

Buys when a 21-period simple average crosses above a 120-period simple average with RSI at or above 60, and sells short on the mirror cross with RSI at or below 40. Any opposite cross closes the open trade.

TrendLong & shortIntradayGold2 min
n/aProfit factor
1,162Net profit EUR
33.41%Win rate
1,350Trades
-516Max drawdown
0.86Avg trade

Best run of 14. Gold, 2 min, spread 0.6, from run sweeps:2026-10-12-GOLD-2m-opt.tsv:9.

Entry rules, long

  1. The 14-period RSI is at or above 60.
  2. Signals are only checked after 125 bars.

Entry rules, short

  1. The 14-period RSI is at or below 40.

Exit rules

  1. If RSI is at or below 40 on that cross, the position reverses into a short.
  2. A short is closed at market on any cross of the 21-period simple average over the 120-period simple average.
  3. If RSI is at or above 60 on that cross, the position reverses into a long.

Test conditions

PeriodUp to 2026-10-12
InstrumentGold, 2 minutes
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 run2 minn/a 1,35033.411,162 EUR-516
Silver1 hourn/a 83032.1727,121 USD-20,911
Silver3 minn/a 1,24733.1216,839 USD-10,773
Dow Jones1 hourn/a 28938.7515,355 EUR-8,563
Nikkei 2252 minn/a 1,27834.0411,951 USD-10,052
Nasdaq 100Dailyn/a 6845.5911,264 EUR-5,115
US Crude OilDailyn/a 8641.8611,049 EUR-6,760
Brent CrudeDailyn/a 3545.719,254 EUR-6,013
DAX 4010 minn/a 1,29135.864,652 EUR-4,443
S&P 500Dailyn/a 9939.392,566 EUR-1,431
GoldDailyn/a 9032.222,162 EUR-1,315
Gold30 minn/a 1,29535.682,091 EUR-1,351
Gold1 hourn/a 81836.311,999 EUR-825
Gold4 hoursn/a 23535.741,715 EUR-1,024

Charts

Results by run

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

Net profitMax drawdown

The code

ProBuilder code, as tested

// ==============================================================
// SMA Cross With RSI Filter
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Trend
// Direction: Long & short
// Timeframe tested: 2 minutes
// ==============================================================

DEFPARAM CumulateOrders = false

tenkan = Average[21](close)
kijun = Average[120](close)
myRsi = RSI[14](close)

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

SMARSI
Read this firstKnown weaknesses2 points
  • No profit factor is available, because only sweep results exist for this strategy.
  • The code sets no stop loss, so a losing trade stays open until an exit signal arrives.

Questions

About this strategy

Can I run SMA Cross With RSI 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 14 market and timeframe combinations. The best run by trade count was Gold, 2 minutes, with 1,350 trades.

How large was the drawdown?

The best run had a maximum drawdown of 516 EUR at the tested position size, against a net result of 1,162 EUR.

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

CCI Breakout

Best run on the same market, Gold.

1.08 PF · 6,065 trades

ADX Filtered EMA Cross

Also a trend strategy.

1.15 PF · 607 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