Buys when the average of two rolling VWAP lead lines rises, the close is above its upper Bollinger band, and a volume-based trend line confirms. Exits when both lead lines fall.
Best run of 22. Gold, 1 hour, spread 0.6, from run pf:2026-10-12-GOLD-1h.tsv:6.
| 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.32 | 2,150 | 37.91 | 3,663 EUR | -510 |
| USD/JPY | 1 hour | 1.15 | 2,504 | 38.46 | 771,400 USD | -188,320 |
| USD/JPY | 30 min | n/a | 3,587 | 36.52 | 465,970 USD | -165,040 |
| USD/JPY | Daily | n/a | 80 | 43.75 | 462,280 USD | -215,500 |
| Nikkei 225 | Daily | n/a | 58 | 44.83 | 35,090 USD | -8,986 |
| Nikkei 225 | 1 hour | n/a | 1,096 | 38.69 | 16,759 USD | -10,976 |
| Nasdaq 100 | Daily | n/a | 52 | 51.92 | 16,265 EUR | -3,345 |
| Nikkei 225 | 4 hours | n/a | 299 | 38.80 | 15,393 USD | -11,972 |
| Nasdaq 100 | 4 hours | n/a | 289 | 44.29 | 14,375 EUR | -3,615 |
| Dow Jones | Daily | n/a | 40 | 55.00 | 11,607 EUR | -3,734 |
| DAX 40 | 30 min | n/a | 1,523 | 41.30 | 9,347 EUR | -2,683 |
| Brent Crude | Daily | n/a | 50 | 52.00 | 8,297 EUR | -6,792 |
| Nasdaq 100 | 30 min | n/a | 2,348 | 37.61 | 6,720 EUR | -4,244 |
| DAX 40 | 1 hour | n/a | 665 | 39.40 | 6,585 EUR | -2,668 |
| Nasdaq 100 | 1 hour | n/a | 1,171 | 40.91 | 6,511 EUR | -5,338 |
| DAX 40 | Daily | n/a | 61 | 47.54 | 3,958 EUR | -3,928 |
| S&P 500 | Daily | n/a | 47 | 57.45 | 3,645 EUR | -620 |
| Gold | 4 hours | n/a | 555 | 40.00 | 2,550 EUR | -1,126 |
| S&P 500 | 4 hours | n/a | 300 | 45.00 | 2,217 EUR | -839 |
| FTSE 100 | Daily | n/a | 56 | 51.79 | 2,178 EUR | -1,693 |
| Gold | Daily | n/a | 83 | 36.14 | 1,876 EUR | -997 |
| Gold | 30 min | n/a | 3,785 | 34.56 | 1,775 EUR | -1,161 |
Charts
Top 10 of 22 runs. The full list is in the table above.
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // VWAP Lead Line Breakout Long // ProRealAlgos Strategy Library | prorealalgos.com // Type: Breakout // Direction: Long only // Timeframe tested: 1 hour // ============================================================== DEFPARAM CumulateOrders = false tpv = TypicalPrice * Volume vol = summation[9](Volume)
49 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 22 market and timeframe combinations. The best run was Gold, 1 hour, with a profit factor of 1.32 over 2,150 trades.
The best run had a maximum drawdown of 510 EUR at the tested position size, against a net result of 3,663 EUR.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.