The strategy buys when 20 bar historical volatility, annualized with 365 and multiplied by 100, rises above 20. It sells when it falls below 10 and stays out until volatility rises above 20 again.
Best run of 25. Brent Crude, 30 min, spread 3, from run sweeps:2026-10-12-BRENT-30m-opt.tsv:7.
| Period | Up to 2026-10-12 |
| Instrument | Brent Crude, 30 minutes |
| Spread | 3 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-12 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| Brent CrudeBest run | 30 min | n/a | 46 | 54.35 | 3,828 EUR | -3,116 |
| Nikkei 225 | Daily | n/a | 26 | 65.38 | 44,881 USD | -23,100 |
| Dow Jones | Daily | n/a | 36 | 88.89 | 30,967 EUR | -8,975 |
| Nasdaq 100 | Daily | n/a | 29 | 86.21 | 27,689 EUR | -5,914 |
| DAX 40 | Daily | n/a | 44 | 88.64 | 22,742 EUR | -5,862 |
| USD/JPY | 4 hours | n/a | 1 | 100.00 | 21,600 USD | -17,900 |
| Silver | 5 min | n/a | 10 | 80.00 | 11,988 USD | -7,585 |
| Nikkei 225 | 4 hours | n/a | 24 | 75.00 | 11,127 USD | -11,063 |
| Silver | 2 min | n/a | 7 | 85.71 | 8,420 USD | -4,282 |
| Silver | 3 min | n/a | 8 | 87.50 | 8,381 USD | -7,770 |
| FTSE 100 | Daily | n/a | 34 | 79.41 | 7,815 EUR | -3,731 |
| Nikkei 225 | 30 min | n/a | 9 | 66.67 | 5,735 USD | -2,110 |
| Nikkei 225 | 1 hour | n/a | 11 | 54.55 | 5,149 USD | -2,899 |
| Nasdaq 100 | 4 hours | n/a | 32 | 75.00 | 5,148 EUR | -2,386 |
| S&P 500 | Daily | n/a | 37 | 83.78 | 3,728 EUR | -1,222 |
| Nasdaq 100 | 30 min | n/a | 12 | 75.00 | 2,628 EUR | -993 |
| Gold | Daily | n/a | 41 | 46.34 | 2,618 EUR | -1,534 |
| Nasdaq 100 | 1 hour | n/a | 12 | 50.00 | 2,145 EUR | -1,727 |
| Nikkei 225 | 5 min | n/a | 4 | 75.00 | 1,655 USD | -1,154 |
| Nikkei 225 | 15 min | n/a | 5 | 80.00 | 1,493 USD | -1,481 |
| US Crude Oil | 3 min | n/a | 11 | 63.64 | 1,426 EUR | -754 |
| Brent Crude | 3 min | n/a | 11 | 72.73 | 1,338 EUR | -571 |
| Brent Crude | 2 min | n/a | 13 | 61.54 | 1,099 EUR | -623 |
| US Crude Oil | 2 min | n/a | 12 | 75.00 | 911 EUR | -740 |
| DAX 40 | 5 min | n/a | 1 | 100.00 | 129 EUR | -35.50 |
Charts
Top 10 of 25 runs. The full list is in the table above.
The code
// ============================================================== // Historical Volatility Threshold Long // ProRealAlgos Strategy Library | prorealalgos.com // Type: Volatility // Direction: Long only // Timeframe tested: 30 minutes // ============================================================== DEFPARAM CumulateOrders = false ONCE pos = 0 ret = LOG(close / close[1]) sd = STD[20](ret) hvol = sd * SQRT(365 / 1) * 100
15 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 25 market and timeframe combinations. The best run by trade count was Brent Crude, 30 minutes, with 46 trades.
The best run had a maximum drawdown of 3,116 EUR at the tested position size, against a net result of 3,828 EUR.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.