Holds one long position at a time, entered either on a rolling VWAP dip or on a breakout above an upper Bollinger band. Each entry type closes only on its own exit condition.
Best run of 21. Gold, 1 hour, spread 0.6, from run pf:2026-10-12-GOLD-1h.tsv:5.
| Period | Up to 2026-10-12 |
| Instrument | Gold, 1 hour |
| Spread | 0.6 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 |
|---|---|---|---|---|---|---|
| GoldBest run | 1 hour | 1.30 | 1,999 | 38.77 | 3,350 EUR | -515 |
| USD/JPY | 1 hour | n/a | 2,323 | 39.04 | 694,850 USD | -202,380 |
| USD/JPY | Daily | n/a | 74 | 44.59 | 510,540 USD | -183,480 |
| USD/JPY | 30 min | n/a | 3,325 | 36.87 | 425,710 USD | -176,260 |
| Nikkei 225 | Daily | n/a | 59 | 44.07 | 34,797 USD | -8,986 |
| Nikkei 225 | 1 hour | n/a | 1,036 | 39.00 | 20,565 USD | -10,185 |
| Nikkei 225 | 4 hours | n/a | 286 | 39.16 | 19,180 USD | -10,355 |
| Nasdaq 100 | Daily | n/a | 51 | 52.94 | 16,591 EUR | -3,196 |
| Dow Jones | Daily | n/a | 40 | 57.50 | 14,371 EUR | -5,950 |
| Nasdaq 100 | 4 hours | n/a | 285 | 44.56 | 12,913 EUR | -4,275 |
| DAX 40 | 30 min | n/a | 1,508 | 42.90 | 8,685 EUR | -4,059 |
| US Crude Oil | Daily | n/a | 53 | 47.17 | 6,639 EUR | -4,665 |
| Brent Crude | Daily | n/a | 53 | 54.72 | 6,596 EUR | -5,987 |
| DAX 40 | 1 hour | n/a | 686 | 40.23 | 6,071 EUR | -2,495 |
| Nasdaq 100 | 1 hour | n/a | 1,127 | 41.26 | 5,558 EUR | -5,347 |
| Nasdaq 100 | 30 min | n/a | 2,211 | 38.08 | 5,231 EUR | -3,769 |
| S&P 500 | Daily | n/a | 47 | 59.57 | 3,989 EUR | -689 |
| FTSE 100 | Daily | n/a | 57 | 52.63 | 2,391 EUR | -1,807 |
| Gold | 4 hours | n/a | 528 | 40.34 | 2,295 EUR | -1,183 |
| Gold | Daily | n/a | 77 | 36.36 | 1,725 EUR | -950 |
| Gold | 30 min | n/a | 3,453 | 35.27 | 1,632 EUR | -1,025 |
Charts
Top 10 of 21 runs. The full list is in the table above.
The code
// ============================================================== // VWAP Reversion And Breakout // ProRealAlgos Strategy Library | prorealalgos.com // Type: Mean reversion // Direction: Long only // Timeframe tested: 1 hour // ============================================================== DEFPARAM CumulateOrders = false ONCE mode = 0 ONCE vidya = 0 tpv = TypicalPrice * Volume vol = summation[8](Volume)
95 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 21 market and timeframe combinations. The best run was Gold, 1 hour, with a profit factor of 1.30 over 1,999 trades.
The best run had a maximum drawdown of 515 EUR at the tested position size, against a net result of 3,350 EUR.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.