Join waitlist
Strategies / Mean reversion / Volatility Spike Entry Stochastic Exit

Volatility Spike Entry Stochastic Exit

A long-only mean reversion system that buys after a volatility spike when price rises above the prior bar's high. It exits when the %K line crosses above %D with %K above 80.

Mean reversionLong onlySwingNasdaq 1004 hours
1.99Profit factor
16,912Net profit EUR
73.09%Win rate
275Trades
-3,268Max drawdown
61.50Avg trade

Best run of 25. Nasdaq 100, 4 hours, spread 3, from run pf:2026-10-12-NAS100-4h.tsv:3.

Entry rules, long

  1. Filtered entry: the current measure is below both of those levels.
  2. Filtered entry: the current low is above the prior low, the close is above the prior high, and the close is above the close 3 bars ago.
  3. Aggressive entry: the prior bar was a spike, the current bar still is, and the close is above the prior close and open.

Exit rules

  1. The exit needs at least 5 bars with a valid 14-bar stochastic range.

Test conditions

PeriodUp to 2026-10-12
InstrumentNasdaq 100, 4 hours
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 run4 hours1.99 27573.0916,912 EUR-3,268
S&P 5004 hours1.95 29275.004,610 EUR-1,064
USD/JPY4 hoursn/a 28368.55529,800 USD-375,740
Nikkei 2254 hoursn/a 20673.7943,107 USD-11,561
Nikkei 2251 hourn/a 75864.5130,310 USD-10,766
Dow JonesDailyn/a 14078.5728,007 EUR-8,615
Dow Jones1 hourn/a 30069.3317,946 EUR-9,388
Nasdaq 1001 hourn/a 93767.5617,358 EUR-5,955
DAX 401 hourn/a 87565.7116,115 EUR-4,375
Dow Jones30 minn/a 61065.0815,786 EUR-6,049
Nikkei 22515 minn/a 1,53263.2515,506 USD-9,450
DAX 404 hoursn/a 23866.3913,466 EUR-5,434
Dow Jones10 minn/a 1,47064.9013,361 EUR-6,500
SilverDailyn/a 9060.0012,931 USD-11,663
DAX 40Dailyn/a 13871.747,151 EUR-4,677
FTSE 100Dailyn/a 11676.726,869 EUR-2,651
Nasdaq 10010 minn/a 1,51664.975,890 EUR-4,829
DAX 4010 minn/a 1,48265.454,367 EUR-4,037
Nasdaq 100Dailyn/a 9366.673,735 EUR-3,611
S&P 5001 hourn/a 94867.623,357 EUR-1,278
S&P 50030 minn/a 1,56563.192,219 EUR-946
Gold4 hoursn/a 24569.802,130 EUR-714
S&P 50015 minn/a 1,55765.702,125 EUR-937
S&P 500Dailyn/a 13675.742,124 EUR-922
GoldDailyn/a 10072.001,558 EUR-856

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

// ==============================================================
// Volatility Spike Entry Stochastic Exit
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Mean reversion
// Direction: Long only
// Timeframe tested: 4 hours
// ==============================================================

DEFPARAM CumulateOrders = false

ONCE sincebad = 1000

hc = highest[22](close)
wvf = (hc - low) / hc * 100
sdev = 2 * STD[20](wvf)
mid = Average[20](wvf)
upper = mid + sdev
rangehigh = highest[50](wvf) * 0.85

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

26 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

Bollinger BandsStochasticSMAStandard Deviation
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 Volatility Spike Entry Stochastic Exit 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 Nasdaq 100, 4 hours, with a profit factor of 1.99 over 275 trades.

How large was the drawdown?

The best run had a maximum drawdown of 3,268 EUR at the tested position size, against a net result of 16,912 EUR.

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

Volatility Spike Regression Long

Best run on the same market, Nasdaq 100.

1.22 PF · 1,850 trades

RSI(2) Pullback MA Exit

Also a mean reversion strategy.

1.99 PF · 627 trades

Want strategies that are already part of a live portfolio? Join the ProRealAlgos waitlist.

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