Join waitlist
Strategies / Momentum / Reversal Pattern With Smoothed Stochastic

Reversal Pattern With Smoothed Stochastic

The system buys when a stochastic-based close reversal agrees with a double smoothed stochastic trigger line above 80 and above its main line, and sells short on the mirror condition below 20. Positions close when the states disagree.

MomentumLong & shortIntradayGold30 min
n/aProfit factor
1,776Net profit EUR
38.31%Win rate
4,007Trades
-1,289Max drawdown
0.44Avg trade

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

Entry rules, long

  1. The close is above the prior close, and the prior close was below the close 2 bars earlier.
  2. The Stochastic %K (14 periods) is below its 3-period SMA and above 50 on the same bar.
  3. When both states are bullish and no long is open, the system buys 1 contract at market.

Entry rules, short

  1. The close is below the prior close, and the prior close was above the close 2 bars earlier.
  2. The Stochastic %K (14 periods) is above its 3-period SMA and below 50 on the same bar.
  3. When both states are bearish and no short is open, the system sells 1 contract short at market.

Exit rules

  1. When they no longer agree, an open short is bought back at market.

Test conditions

PeriodUp to 2026-10-12
InstrumentGold, 30 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 run30 minn/a 4,00738.311,776 EUR-1,289
USD/JPYDailyn/a 25442.131,288,390 USD-533,800
USD/JPY30 minn/a 3,99442.06388,220 USD-309,000
USD/JPY1 hourn/a 2,84942.75292,530 USD-251,500
Silver1 hourn/a 2,34938.2729,739 USD-11,809
Nikkei 225Dailyn/a 21338.9723,266 USD-14,976
Brent CrudeDailyn/a 9943.4320,011 EUR-5,088
US Crude OilDailyn/a 20545.8519,117 EUR-5,989
GBP/USD1 hourn/a 3,55841.609,163 USD-2,696
Gold1 hourn/a 2,47739.692,056 EUR-881

Charts

Results by run

Net profitMax drawdown

The code

ProBuilder code, as tested

// ==============================================================
// Reversal Pattern With Smoothed Stochastic
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Momentum
// Direction: Long & short
// Timeframe tested: 30 minutes
// ==============================================================

DEFPARAM CumulateOrders = false

ONCE posrev = 0
ONCE sincebad = 1000
ONCE postwo = 0
ONCE rawk = 50
ONCE stochb = 50

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

59 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

EMAStochastic
Read this firstKnown weaknesses3 points
  • No profit factor is available, because only sweep results exist for this strategy.
  • The maximum drawdown of 1,289 EUR is large next to the net profit of 1,776 EUR.
  • The code sets no stop loss, so a losing trade stays open until an exit signal arrives.

Questions

About this strategy

Can I run Reversal Pattern With Smoothed Stochastic 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 10 market and timeframe combinations. The best run by trade count was Gold, 30 minutes, with 4,007 trades.

How large was the drawdown?

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

Does it trade long, short or both?

It trades both long and short.

Related

Strategies like this one

Reversal Pattern With Chaikin Volatility

Uses the same indicator.

2.26 PF · 6,872 trades

CCI Breakout

Best run on the same market, Gold.

1.08 PF · 6,065 trades

ATR Momentum

Also a momentum strategy.

n/a PF · 15,021 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