Join waitlist
Strategies / Trend / Stacked EMA Trend With StochRSI

Stacked EMA Trend With StochRSI

It buys when the 7, 30, 50, 100, 121 and 200-period EMAs are stacked from fastest to slowest and the Stochastic RSI is below 0.82. It exits when the 121-period EMA is above the 7-period EMA and the Stochastic RSI is above 0.2.

TrendLong onlyIntradaySilver3 min
n/aProfit factor
19,761Net profit USD
30.42%Win rate
891Trades
-7,187Max drawdown
22.18Avg trade

Best run of 50. Silver, 3 min, spread 2, from run sweeps:2026-10-04-SILVER-3m-opt.tsv:8.

Entry rules, long

  1. The unsmoothed Stochastic RSI over 14 periods is below 0.82
  2. No long position is currently open

Exit rules

  1. The long closes at market when both conditions hold

Test conditions

PeriodUp to 2026-10-04
InstrumentSilver, 3 minutes
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-04

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
SilverBest run3 minn/a 89130.4219,761 USD-7,187
USD/JPYDailyn/a 4047.501,081,660 USD-430,600
USD/JPY1 hourn/a 56132.62469,340 USD-169,710
USD/JPY30 minn/a 82132.64447,440 USD-188,930
USD/JPY4 hoursn/a 16033.12355,200 USD-297,970
USD/JPY15 minn/a 80935.35299,550 USD-202,130
USD/JPY10 minn/a 86136.12286,230 USD-176,270
EUR/USDDailyn/a 4440.9175,970 USD-31,886
EUR/USD5 minn/a 78029.3650,524 USD-27,455
Nikkei 225Dailyn/a 4934.6939,089 USD-11,854
Silver30 minn/a 80430.7228,673 USD-8,455
Nikkei 22515 minn/a 83532.8119,012 USD-8,583
Nikkei 22530 minn/a 84033.6919,006 USD-9,398
Dow JonesDailyn/a 8239.0218,150 EUR-6,454
Nikkei 2251 hourn/a 45933.9917,573 USD-8,922
Nikkei 2254 hoursn/a 12733.0717,506 USD-9,556
Nasdaq 100Dailyn/a 6150.8216,856 EUR-3,864
Silver2 minn/a 86529.9415,264 USD-8,413
Silver15 minn/a 85029.1814,441 USD-12,674
Nikkei 22510 minn/a 80034.2512,876 USD-9,447
Nikkei 2255 minn/a 84931.4512,578 USD-10,646
Nasdaq 1004 hoursn/a 16643.3711,511 EUR-3,799
Dow Jones15 minn/a 65632.6211,372 EUR-5,630
Nasdaq 1001 hourn/a 57036.499,026 EUR-3,911
Nikkei 2252 minn/a 83433.458,863 USD-7,568
DAX 40Dailyn/a 7545.338,415 EUR-5,033
Nasdaq 10015 minn/a 81837.538,331 EUR-5,527
Nasdaq 10030 minn/a 85535.327,772 EUR-3,476
Dow Jones1 hourn/a 18535.687,371 EUR-5,463
Nasdaq 1005 minn/a 84333.937,297 EUR-4,315
Nikkei 2251 minn/a 80832.557,057 USD-6,442
DAX 4030 minn/a 86033.266,762 EUR-3,251
Brent Crude30 minn/a 53934.885,611 EUR-4,399
S&P 500Dailyn/a 7643.425,191 EUR-573
DAX 4015 minn/a 86732.184,128 EUR-3,792
US Crude Oil4 hoursn/a 9736.084,074 EUR-3,945
Brent Crude15 minn/a 87133.873,920 EUR-3,812
Brent Crude2 minn/a 80730.863,410 EUR-1,972
GoldDailyn/a 6048.333,397 EUR-1,072
Gold30 minn/a 78635.623,084 EUR-842
Gold1 hourn/a 49333.872,488 EUR-794
Gold15 minn/a 81431.572,367 EUR-658
S&P 5004 hoursn/a 15940.882,126 EUR-707
Gold10 minn/a 82830.191,706 EUR-488
Gold4 hoursn/a 14337.061,701 EUR-1,096
Gold3 minn/a 85229.931,469 EUR-508
S&P 5001 hourn/a 57937.311,425 EUR-1,136
Gold5 minn/a 86030.001,317 EUR-607
S&P 50030 minn/a 88935.881,205 EUR-869
Gold2 minn/a 84131.51765 EUR-503

Charts

Results by run

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

Net profitMax drawdown

The code

ProBuilder code, as tested

// ==============================================================
// Stacked EMA Trend With StochRSI
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Trend
// Direction: Long only
// Timeframe tested: 3 minutes
// ==============================================================

DEFPARAM CumulateOrders = false

emaa = ExponentialAverage[7](close)
emab = ExponentialAverage[30](close)
emac = ExponentialAverage[50](close)
emad = ExponentialAverage[100](close)
emae = ExponentialAverage[121](close)
emaf = ExponentialAverage[200](close)
myRsi = RSI[14](close)
rsihi = Highest[14](myRsi)
rsilo = Lowest[14](myRsi)
myRange = rsihi - rsilo

11 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

EMARSIStochastic
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 Stacked EMA Trend With StochRSI 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 50 market and timeframe combinations. The best run by trade count was Silver, 3 minutes, with 891 trades.

How large was the drawdown?

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

ADX Filtered EMA Cross

Also a trend strategy.

1.15 PF · 607 trades

Put your name on the ProRealAlgos waitlist to trade a tested portfolio instead of single strategies.

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