Join waitlist
Strategies / Mean reversion / SMA Pullback Cross In Uptrend

SMA Pullback Cross In Uptrend

The idea buys when the close dips below the 9-period SMA during an uptrend where the 50-period SMA is above the 100-period SMA and RSI(14) is above 50. It exits when RSI(14) falls below 30 or rises above 70.

Mean reversionLong onlySwingSilver1 hour
4.37Profit factor
563,696Net profit USD
62.14%Win rate
1,429Trades
-20,423Max drawdown
394Avg trade

Best run of 25. Silver, 1 hour, spread 2, from run pf:2026-10-13-SILVER-1h.tsv:3.

Entry rules, long

  1. Buys 1 contract at market when no long position is open

Exit rules

  1. RSI[14] falls below 30 or rises above 70, closing 1 contract at market

Test conditions

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

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
SilverBest run1 hour4.37 1,42962.14563,696 USD-20,423
S&P 500Daily2.36 23575.744,973 EUR-830
S&P 5004 hours1.36 44869.202,711 EUR-586
USD/JPYDailyn/a 14966.44947,480 USD-499,150
USD/JPY30 minn/a 2,28563.89302,930 USD-117,000
USD/JPY10 minn/a 2,21763.78178,390 USD-99,050
EUR/USDDailyn/a 11865.2586,714 USD-40,195
Nikkei 225Dailyn/a 15673.0858,251 USD-9,867
Silver4 hoursn/a 39268.1135,059 USD-9,120
Nasdaq 100Dailyn/a 18977.2517,173 EUR-4,597
Dow Jones4 hoursn/a 14671.2316,416 EUR-5,474
Dow Jones30 minn/a 98962.999,389 EUR-6,937
Nasdaq 1004 hoursn/a 51269.538,263 EUR-3,781
Dow Jones1 hourn/a 54264.026,999 EUR-5,839
Dow Jones15 minn/a 1,82561.926,814 EUR-6,515
Dow Jones10 minn/a 2,16461.656,743 EUR-6,284
DAX 4015 minn/a 2,27363.095,791 EUR-3,098
FTSE 100Dailyn/a 14770.755,697 EUR-2,534
Dow Jones5 minn/a 2,03761.124,607 EUR-4,301
Nasdaq 10015 minn/a 2,47763.183,145 EUR-2,685
Nasdaq 1002 minn/a 2,02062.032,084 EUR-1,726
GoldDailyn/a 15069.331,576 EUR-900
Gold4 hoursn/a 44669.281,441 EUR-545
Gold10 minn/a 2,10161.64975 EUR-552
Gold15 minn/a 2,14261.58912 EUR-629

Charts

Results by run

Top 10 of 25 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

// ==============================================================
// SMA Pullback Cross In Uptrend
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Mean reversion
// Direction: Long only
// Timeframe tested: 1 hour
// ==============================================================

DEFPARAM CumulateOrders = false

smaf = Average[9](close)
smam = Average[50](close)
smas = Average[100](close)
myRsi = RSI[14](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

SMARSI
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 SMA Pullback Cross In Uptrend 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 25 market and timeframe combinations. The best run was Silver, 1 hour, with a profit factor of 4.37 over 1,429 trades.

How large was the drawdown?

The best run had a maximum drawdown of 20,423 USD at the tested position size, against a net result of 563,696 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

Slow Stochastic Crossover Long

Also a mean reversion strategy.

4.42 PF · 149 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