The system computes a 20-bar volume-weighted mean and a volume-weighted standard deviation of the close. It buys when a low touches 2 deviations below the mean and sells short when a high touches 2 deviations above it, with a 3.11% stop and 7.5% target.
Best run of 8. EUR/USD, 1 hour, spread 1, from run sweeps:2026-10-11-EURUSD-1h-opt.tsv:10.
| Period | Up to 2026-10-11 |
| Instrument | EUR/USD, 1 hour |
| 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-11 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| EUR/USDBest run | 1 hour | n/a | 7,556 | 64.19 | 75,258 USD | -55,941 |
| EUR/USD | 4 hours | n/a | 1,801 | 63.85 | 72,873 USD | -32,926 |
| EUR/USD | 5 min | n/a | 7,057 | 61.53 | 26,682 USD | -19,457 |
| DAX 40 | 4 hours | n/a | 777 | 62.81 | 14,480 EUR | -5,515 |
| DAX 40 | Daily | n/a | 208 | 51.92 | 6,929 EUR | -6,139 |
| FTSE 100 | Daily | n/a | 192 | 59.38 | 4,349 EUR | -1,832 |
| GBP/USD | Daily | n/a | 207 | 64.73 | 3,889 USD | -3,542 |
| S&P 500 | 4 hours | n/a | 704 | 62.07 | 1,614 EUR | -1,168 |
Charts
The code
// ============================================================== // Volume Weighted Band Reversion // ProRealAlgos Strategy Library | prorealalgos.com // Type: Mean reversion // Direction: Long & short // Timeframe tested: 1 hour // ============================================================== DEFPARAM CumulateOrders = false myN = 20 sumw = summation[20](volume) sumxw = summation[20](close * volume) valid = 0 myM = close myD = 0
35 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 8 market and timeframe combinations. The best run by trade count was EUR/USD, 1 hour, with 7,556 trades.
The best run had a maximum drawdown of 55,941 USD at the tested position size, against a net result of 75,258 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.