Join waitlist
Strategies / Pattern / Stochastic Reversal With Relative Momentum

Stochastic Reversal With Relative Momentum

It goes long after two consecutive higher closes while stochastic %K is above 50 and below its 3-bar average, and shorts the mirror setup. Longs also need the relative momentum index below 40, and shorts need it above 70.

PatternLong & shortSwingSilver1 hour
5.96Profit factor
577,155Net profit USD
44.46%Win rate
830Trades
-12,573Max drawdown
695Avg trade

Best run of 21. Silver, 1 hour, spread 2, from run pf:2026-10-12-SILVER-1h.tsv:15.

Entry rules, long

  1. The relative momentum index, built from 20-bar momentum, is below 40.
  2. Both states must be +1 to buy 1 contract at market.

Entry rules, short

  1. The relative momentum index, built from 20-bar momentum, is above 70.
  2. Both states must be -1 to sell 1 contract short at market.

Exit rules

  1. No stop loss or profit target is set.

Test conditions

PeriodUp to 2026-10-12
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-12

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
SilverBest run1 hour5.96 83044.46577,155 USD-12,573
USD/JPY30 minn/a 1,45043.17316,460 USD-171,190
USD/JPY10 minn/a 1,44941.96180,980 USD-129,320
Dow Jones4 hoursn/a 8058.7525,617 EUR-6,675
Nikkei 225Dailyn/a 7943.0422,199 USD-14,220
Dow JonesDailyn/a 9954.5521,076 EUR-9,474
DAX 4030 minn/a 1,52945.4512,993 EUR-4,830
Nasdaq 10030 minn/a 1,45244.158,653 EUR-4,023
DAX 404 hoursn/a 21743.788,443 EUR-5,362
DAX 40Dailyn/a 8552.947,681 EUR-7,528
Nasdaq 100Dailyn/a 8153.096,857 EUR-5,632
US Crude Oil15 minn/a 1,55844.096,595 EUR-3,914
Brent CrudeDailyn/a 3545.716,096 EUR-5,285
GBP/USD4 hoursn/a 29348.125,762 USD-3,647
FTSE 1004 hoursn/a 20948.805,621 EUR-2,097
US Crude Oil30 minn/a 1,39344.015,093 EUR-4,535
GBP/USD1 hourn/a 1,31946.104,773 USD-2,894
S&P 500Dailyn/a 10246.084,118 EUR-1,273
S&P 5001 hourn/a 92945.642,453 EUR-988
S&P 5004 hoursn/a 21250.471,957 EUR-963
Gold30 minn/a 1,45942.151,606 EUR-837

Charts

Results by run

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

Net profitMax drawdown

The code

ProBuilder code, as tested

// ==============================================================
// Stochastic Reversal With Relative Momentum
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Pattern
// Direction: Long & short
// Timeframe tested: 1 hour
// ==============================================================

DEFPARAM CumulateOrders = false

ONCE posrev = 0
ONCE sincebad = 1000
ONCE postwo = 0
ONCE xmu = 1
ONCE xmd = 0

ll = lowest[14](low)
hh = highest[14](high)

60 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

StochasticSMAMomentum
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 Stochastic Reversal With Relative Momentum 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 Silver, 1 hour, with a profit factor of 5.96 over 830 trades.

How large was the drawdown?

The best run had a maximum drawdown of 12,573 USD at the tested position size, against a net result of 577,154 USD.

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

SMA Crossover With RSI Exit

Best run on the same market, Silver.

2.13 PF · 8,999 trades

Turn Of The Month

Also a pattern strategy.

4.86 PF · 47 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