Join waitlist
Strategies / Trend / RSI Trend Filter Trailing Stop

RSI Trend Filter Trailing Stop

Buys one contract when RSI(14) is above 50 and the 9-period SMA is above the 100-period SMA. The position is exited only by a 5% trailing stop.

TrendLong onlySwingSilver4 hours
14.47Profit factor
1,183,018Net profit USD
40.22%Win rate
363Trades
-11,268Max drawdown
3,259Avg trade

Best run of 78. Silver, 4 hours, spread 2, from run pf:2026-10-12-SILVER-4h.tsv:3.

Entry rules, long

  1. Entries are checked only after bar 100, and only when no long is open.

Exit rules

  1. No other exit condition is set.

Test conditions

PeriodUp to 2026-10-12
InstrumentSilver, 4 hours
Spread2 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
SilverBest run4 hours14.47 36340.221,183,018 USD-11,268
Silver1 hour10.58 49239.021,679,381 USD-52,903
EUR/USD3 min2.84 10141.58485,207 USD-46,951
S&P 5004 hours1.97 11745.304,472 EUR-958
SilverDaily1.47 52138.2041,144 USD-9,077
USD/JPYDailyn/a 10043.001,254,230 USD-632,580
USD/JPY30 minn/a 5246.15642,500 USD-260,240
USD/JPY10 minn/a 2060.00481,590 USD-249,520
USD/JPY15 minn/a 2650.00437,070 USD-244,340
EUR/USD5 minn/a 7339.73271,918 USD-57,597
EUR/USD2 minn/a 7738.96263,811 USD-66,518
EUR/USD10 minn/a 5736.84162,475 USD-66,115
EUR/USD15 minn/a 4139.02104,076 USD-60,221
EUR/USD30 minn/a 5633.9370,155 USD-44,301
EUR/USDDailyn/a 9637.5054,505 USD-43,099
Nikkei 225Dailyn/a 22038.6435,522 USD-14,864
Nikkei 2251 hourn/a 19440.7234,782 USD-18,516
Nikkei 22510 minn/a 9242.3934,387 USD-13,023
Nikkei 2254 hoursn/a 13547.4133,435 USD-11,838
Nikkei 22530 minn/a 22242.3431,009 USD-17,317
Nikkei 2253 minn/a 4443.1827,328 USD-13,500
Nikkei 22515 minn/a 13339.1025,049 USD-15,268
Nikkei 2255 minn/a 6448.4424,971 USD-14,705
Silver15 minn/a 26738.2024,524 USD-22,762
Silver30 minn/a 44137.1923,959 USD-21,481
Nikkei 2252 minn/a 3243.7523,955 USD-12,822
Dow Jones15 minn/a 7343.8419,154 EUR-9,906
Dow Jones10 minn/a 4240.4819,149 EUR-8,245
Dow Jones4 hoursn/a 3844.7417,934 EUR-9,287
Dow Jones1 hourn/a 5848.2817,670 EUR-8,413
Dow JonesDailyn/a 23439.3216,472 EUR-6,457
Nasdaq 1004 hoursn/a 15940.8816,464 EUR-5,734
Nikkei 2251 minn/a 1838.8916,290 USD-13,178
Nasdaq 10015 minn/a 14638.3615,777 EUR-7,343
Nasdaq 1001 hourn/a 23937.6615,301 EUR-6,741
Nasdaq 10010 minn/a 9337.6314,395 EUR-7,843
Dow Jones30 minn/a 6642.4214,028 EUR-10,019
Dow Jones5 minn/a 1855.5613,783 EUR-7,907
Nasdaq 10030 minn/a 21639.3513,101 EUR-7,377
Nasdaq 1005 minn/a 3847.3712,855 EUR-5,023
US Crude OilDailyn/a 57141.1611,710 EUR-5,716
DAX 401 hourn/a 22638.9411,312 EUR-5,403
Brent CrudeDailyn/a 22341.2611,180 EUR-5,093
DAX 4030 minn/a 19439.6910,733 EUR-5,341
DAX 4015 minn/a 10641.5110,416 EUR-5,205
Nasdaq 1003 minn/a 2835.719,567 EUR-4,364
Nasdaq 100Dailyn/a 31841.198,790 EUR-6,432
DAX 405 minn/a 3053.337,297 EUR-3,880
DAX 4010 minn/a 6041.677,294 EUR-4,845
Nasdaq 1002 minn/a 1643.756,843 EUR-3,954
Nasdaq 1001 minn/a 944.446,779 EUR-3,793
Dow Jones2 minn/a 650.005,973 EUR-5,741
Dow Jones1 minn/a 250.005,316 EUR-4,224
S&P 50030 minn/a 13941.734,047 EUR-1,617
FTSE 10030 minn/a 13443.284,006 EUR-1,684
S&P 5001 hourn/a 17841.013,733 EUR-1,595
S&P 50015 minn/a 9439.363,480 EUR-1,486
FTSE 10010 minn/a 3348.483,459 EUR-1,217
Gold30 minn/a 15045.333,389 EUR-1,255
Gold1 hourn/a 19042.113,206 EUR-1,433
FTSE 1005 minn/a 1457.143,099 EUR-1,250
FTSE 1001 hourn/a 16341.723,073 EUR-2,828
Gold15 minn/a 8047.503,030 EUR-1,457
S&P 500Dailyn/a 22339.913,030 EUR-965
S&P 50010 minn/a 5343.402,970 EUR-1,687
S&P 5005 minn/a 2152.382,910 EUR-1,115
Gold10 minn/a 6046.672,813 EUR-1,257
GoldDailyn/a 30939.812,700 EUR-987
FTSE 10015 minn/a 7441.892,689 EUR-1,716
Gold5 minn/a 4156.102,637 EUR-1,307
Gold4 hoursn/a 15540.652,589 EUR-1,205
DAX 401 minn/a 683.332,067 EUR-1,797
FTSE 1003 minn/a 1145.451,944 EUR-1,289
Gold3 minn/a 3545.711,849 EUR-1,208
S&P 5003 minn/a 1643.751,806 EUR-1,151
FTSE 1002 minn/a 771.431,418 EUR-1,211
S&P 5002 minn/a 666.671,280 EUR-632
S&P 5001 minn/a 2100.001,204 EUR-405

Charts

Results by run

Top 10 of 78 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 Trend Filter Trailing Stop
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Trend
// Direction: Long only
// Timeframe tested: 4 hours
// ==============================================================

DEFPARAM CumulateOrders = false

myRsi = RSI[14](close)
smafast = Average[9](close)
smaslow = Average[100](close)
buyma = close / smafast

8 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

RSISMA
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 Trend Filter Trailing 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 78 market and timeframe combinations. The best run was Silver, 4 hours, with a profit factor of 14.47 over 363 trades.

How large was the drawdown?

The best run had a maximum drawdown of 11,268 USD at the tested position size, against a net result of 1,183,018 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

SMA Crossover With RSI Exit

Best run on the same market, Silver.

2.13 PF · 8,999 trades

Fast EMA Crossover With Stop

Also a trend strategy.

12.33 PF · 1,009 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