Join waitlist
Strategies / Pattern / Stochastic Reversal With Relative Volatility

Stochastic Reversal With Relative Volatility

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 volatility index above 70, and shorts need it below 30.

PatternLong & shortIntradayDAX 4030 min
n/aProfit factor
7,914Net profit EUR
38.52%Win rate
1,833Trades
-5,436Max drawdown
4.32Avg trade

Best run of 12. DAX 40, 30 min, spread 3, from run sweeps:2026-10-11-DAX40-30m-opt.tsv:40.

Entry rules, long

  1. The relative volatility index, using 10-bar standard deviation smoothed over 14 bars, is above 70.
  2. Both states must be +1 to buy 1 contract at market.

Entry rules, short

  1. The relative volatility index, using 10-bar standard deviation smoothed over 14 bars, is below 30.
  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-11
InstrumentDAX 40, 30 minutes
Spread3 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-11

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
DAX 40Best run30 minn/a 1,83338.527,914 EUR-5,436
USD/JPYDailyn/a 10645.282,365,530 USD-659,900
USD/JPY30 minn/a 1,66438.46466,600 USD-227,180
USD/JPY10 minn/a 1,73639.80412,310 USD-165,270
Nikkei 225Dailyn/a 8944.9437,762 USD-13,443
Silver4 hoursn/a 26439.7723,652 USD-16,316
Dow Jones15 minn/a 1,51939.3715,546 EUR-9,134
Brent CrudeDailyn/a 4136.599,549 EUR-5,893
Nasdaq 100Dailyn/a 9442.558,292 EUR-8,193
GoldDailyn/a 9641.672,280 EUR-1,346
Gold1 hourn/a 1,08039.352,258 EUR-1,296
Gold30 minn/a 1,64240.191,776 EUR-753

Charts

Results by run

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

Net profitMax drawdown

The code

ProBuilder code, as tested

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

DEFPARAM CumulateOrders = false

ONCE posrev = 0
ONCE sincebad = 1000
ONCE postwo = 0
ONCE nu = 0
ONCE nd = 0

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

62 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

StochasticSMAStandard DeviationWilder Average
Read this firstKnown weaknesses2 points
  • No profit factor is available, because only sweep results exist for this strategy.
  • The maximum drawdown of 5,436 EUR is large next to the net profit of 7,914 EUR.

Questions

About this strategy

Can I run Stochastic Reversal With Relative Volatility 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 12 market and timeframe combinations. The best run by trade count was DAX 40, 30 minutes, with 1,833 trades.

How large was the drawdown?

The best run had a maximum drawdown of 5,436 EUR at the tested position size, against a net result of 7,914 EUR.

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

Heikin Ashi Color Flip

Best run on the same market, DAX 40.

1.12 PF · 3,692 trades

Breakout Reversal

Also a pattern strategy.

n/a PF · 459 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