A volatility index based on the 22-bar high close and low spikes above its 20-bar average plus 2 standard deviations. The system buys when a spike holds and the candle turns bullish, and sells short when it turns bearish.
Best run of 3. S&P 500, 4 hours, spread 1, from run sweeps:2026-10-03-USA500-4h-opt.tsv:29.
| Period | Up to 2026-10-03 |
| Instrument | S&P 500, 4 hours |
| Spread | 1 points |
| Starting capital | 1,000,000 |
| Costs | Spread only. Commissions and overnight financing are not included. |
| Bars | Up to 200,000 bars, fewer where the instrument has less history |
| Last tested | 2026-10-03 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| S&P 500Best run | 4 hours | n/a | 522 | 38.89 | 820 EUR | -506 |
| Nasdaq 100 | 4 hours | n/a | 483 | 36.85 | 3,420 EUR | -3,112 |
| S&P 500 | Daily | n/a | 281 | 39.86 | 924 EUR | -577 |
Charts
The code
// ============================================================== // Volatility Spike Candle Switch // ProRealAlgos Strategy Library | prorealalgos.com // Type: Volatility // Direction: Long & short // Timeframe tested: 4 hours // ============================================================== DEFPARAM CumulateOrders = false highc = highest[22](close) vi = (highc - low) / highc * 100 viupper = Average[20](vi) + 2.0 * STD[20](vi)
31 more lines: the entry and exit rules.
Setup
Questions
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.
It was tested on 3 market and timeframe combinations. The best run by trade count was S&P 500, 4 hours, with 522 trades.
The best run had a maximum drawdown of 506 EUR at the tested position size, against a net result of 820 EUR.
It trades both long and short.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.