Join waitlist
Strategies / Volatility / Stochastic Reversal With Statistical Volatility

Stochastic Reversal With Statistical 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 30-bar statistical volatility above 0.005, and shorts need it below 0.0016.

VolatilityLong & shortIntradayNasdaq 10030 min
1.22Profit factor
15,039Net profit EUR
45.07%Win rate
1,187Trades
-3,704Max drawdown
12.67Avg trade

Best run of 37. Nasdaq 100, 30 min, spread 3, from run pf:2026-10-12-NAS100-30m.tsv:2.

Entry rules, long

  1. The 30-bar extreme value volatility estimate, using highest and lowest closes and highs and lows, is above 0.005.
  2. Both states must be +1 to buy 1 contract at market.

Entry rules, short

  1. The 30-bar extreme value volatility estimate, using highest and lowest closes and highs and lows, is below 0.0016.
  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
InstrumentNasdaq 100, 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-12

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
Nasdaq 100Best run30 min1.22 1,18745.0715,039 EUR-3,704
USD/JPY30 minn/a 1,21241.25586,510 USD-242,400
USD/JPY10 minn/a 1,49943.36414,270 USD-105,490
USD/JPY15 minn/a 1,41443.14388,260 USD-189,320
Nikkei 225Dailyn/a 6744.7847,914 USD-10,546
Nikkei 2251 hourn/a 57644.4435,811 USD-9,318
Dow JonesDailyn/a 8554.1229,272 EUR-9,474
Nikkei 2254 hoursn/a 15944.0322,014 USD-9,005
Nikkei 22510 minn/a 1,21839.3318,257 USD-13,707
Dow Jones15 minn/a 1,13841.1217,746 EUR-10,198
Nikkei 22515 minn/a 1,14440.9117,551 USD-14,328
Dow Jones4 hoursn/a 6556.9216,215 EUR-8,205
DAX 4030 minn/a 1,27442.7816,081 EUR-4,939
Nasdaq 100Dailyn/a 7058.5715,931 EUR-5,632
DAX 40Dailyn/a 6953.6214,043 EUR-6,275
Nasdaq 1001 hourn/a 78245.2712,466 EUR-5,422
Dow Jones30 minn/a 55042.3612,444 EUR-9,741
Nasdaq 1004 hoursn/a 19448.9711,960 EUR-5,198
Nasdaq 10015 minn/a 1,28443.5411,573 EUR-4,279
Dow Jones1 hourn/a 29742.4210,770 EUR-7,549
DAX 401 hourn/a 78842.137,418 EUR-7,054
Brent CrudeDailyn/a 3240.627,289 EUR-6,949
DAX 404 hoursn/a 19043.167,185 EUR-5,385
Nasdaq 10010 minn/a 1,36340.946,169 EUR-5,612
DAX 4015 minn/a 1,26541.345,045 EUR-4,040
S&P 500Dailyn/a 8848.864,803 EUR-1,273
S&P 5001 hourn/a 79045.953,388 EUR-906
GoldDailyn/a 7143.662,831 EUR-1,387
FTSE 1004 hoursn/a 18545.412,647 EUR-2,550
Gold1 hourn/a 76041.842,495 EUR-1,324
Gold30 minn/a 1,17539.912,203 EUR-909
S&P 5004 hoursn/a 19349.222,152 EUR-997
Gold4 hoursn/a 18543.242,142 EUR-1,012
Gold10 minn/a 1,19339.901,768 EUR-1,263
Gold5 minn/a 1,29240.331,445 EUR-1,040
S&P 50030 minn/a 1,12344.881,328 EUR-1,237
S&P 5005 minn/a 1,58241.591,165 EUR-1,000

Charts

Results by run

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

Net profitMax drawdown

The code

ProBuilder code, as tested

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

DEFPARAM CumulateOrders = false

ONCE posrev = 0
ONCE possv = 0
ONCE vol = 0
ONCE nres = 0

hh = Highest[14](high)
ll = Lowest[14](low)

56 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

StochasticSMA
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 Statistical 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 37 market and timeframe combinations. The best run was Nasdaq 100, 30 minutes, with a profit factor of 1.22 over 1,187 trades.

How large was the drawdown?

The best run had a maximum drawdown of 3,704 EUR at the tested position size, against a net result of 15,039 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

Volatility Spike Regression Long

Best run on the same market, Nasdaq 100.

1.22 PF · 1,850 trades

ATR Volatility Stop Long

Also a volatility strategy.

1.23 PF · 2,204 trades

Get the full rules, the complete code and the ProRealAlgos portfolio as a member.

Copy trading on US indices is available to ProRealAlgos members as spots open.

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