Join waitlist
Strategies / Mean reversion / Rolling VWAP Reversion Long

Rolling VWAP Reversion Long

Buys when a 2-period rolling VWAP crosses under 0.97 times a 5-period rolling VWAP while the 5-period EMA of RSI(2) is below 30. Sells when the 2-period VWAP crosses over the 5-period VWAP.

Mean reversionLong onlySwingUS Crude OilDaily
n/aProfit factor
4,707Net profit EUR
74.29%Win rate
35Trades
-1,195Max drawdown
134Avg trade

Best run of 32. US Crude Oil, Daily, spread 3, from run sweeps:2026-10-11-CRUDE-D-opt.tsv:39.

Entry rules, long

  1. The 5-period EMA of RSI(2) is below 30.
  2. Each rolling VWAP is the volume-weighted typical price over its number of bars.

Exit rules

  1. The 2-period rolling VWAP crosses over the 5-period rolling VWAP, and the position is sold at market for 1 contract.

Test conditions

PeriodUp to 2026-10-11
InstrumentUS Crude Oil, Daily
Spread3 points
Starting capital1,000,000
CostsSpread only. Commissions and overnight financing are not included.
BarsUp to 200,000 bars, fewer where the instrument has less history
Last tested2026-10-11

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
US Crude OilBest runDailyn/a 3574.294,707 EUR-1,195
Silver10 minn/a 3100.005,175 USD-1,590
Silver1 hourn/a 1656.254,541 USD-3,788
Silver15 minn/a 3100.004,178 USD-1,945
Silver5 minn/a 2100.002,392 USD-1,709
Nasdaq 100Dailyn/a 1050.001,981 EUR-1,731
Dow Jones4 hoursn/a 475.001,845 EUR-1,463
Brent Crude4 hoursn/a 1968.421,693 EUR-788
Nasdaq 1004 hoursn/a 683.331,658 EUR-490
Nikkei 2254 hoursn/a 2100.001,020 USD-180
Brent Crude1 hourn/a 1172.73995 EUR-360
Nikkei 22530 minn/a 2100.00985 USD-27.50
Dow Jones1 hourn/a 2100.00612 EUR-103
Nasdaq 1001 hourn/a 3100.00514 EUR-228
Brent Crude30 minn/a 666.67464 EUR-312
US Crude Oil5 minn/a 1100.00403 EUR-4.50
Brent Crude5 minn/a 1100.00381 EUR-130
Nikkei 2251 hourn/a 1100.00363 USD-62.40
Dow Jones30 minn/a 366.67356 EUR-3.60
S&P 5004 hoursn/a 771.43349 EUR-159
Brent Crude1 minn/a 1100.00280 EUR-1.20
US Crude Oil2 minn/a 1100.00200 EUR-3.30
Gold30 minn/a 1100.00180 EUR-25.50
Gold15 minn/a 1100.00167 EUR-1.10
US Crude Oil1 minn/a 1100.00162 EUR-0.00
GBP/USD1 hourn/a 1100.00155 USD-75.90
Brent Crude15 minn/a 1100.00124 EUR-82.50
Nasdaq 10030 minn/a 2100.00104 EUR-46.80
US Crude Oil10 minn/a 1100.0098.70 EUR-41.20
Gold1 hourn/a 2100.0055.50 EUR-33.50
DAX 401 hourn/a 1100.0051.50 EUR-1.30
S&P 50030 minn/a 2100.0019.00 EUR-17.50

Charts

Results by run

Top 10 of 32 runs. The full list is in the table above.

Net profitMax drawdown

The code

ProBuilder code, as tested

// ==============================================================
// Rolling VWAP Reversion Long
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Mean reversion
// Direction: Long only
// Timeframe tested: Daily
// ==============================================================

DEFPARAM CumulateOrders = false

ONCE smallvwap = 0
ONCE bigvwap = 0

tpv = TypicalPrice * volume
vols = summation[2](volume)
volb = summation[5](volume)

18 more lines: the entry and exit rules.

Setup

How to load it

  1. Copy the code with the copy button on the code block.
  2. In ProRealTime, open a chart of the instrument and timeframe you want to test, then open ProOrder > New trading system and choose "Create with programming".
  3. Paste the code, give the system a name and save it.
  4. Click "Backtest", set your own spread and position size, and run it before you consider trading it live.

Indicators used

VWAPEMARSIVolume
Read this firstKnown weaknesses3 points
  • No profit factor is available, because only sweep results exist for this strategy.
  • The best run has only 35 trades, which is a small sample to judge it on.
  • The code sets no stop loss, so a losing trade stays open until an exit signal arrives.

Questions

About this strategy

Can I run Rolling VWAP Reversion Long in ProOrder?

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.

Which markets was it tested on?

It was tested on 32 market and timeframe combinations. The best run by trade count was US Crude Oil, Daily, with 35 trades.

How large was the drawdown?

The best run had a maximum drawdown of 1,194 EUR at the tested position size, against a net result of 4,707 EUR.

Does it trade long, short or both?

It only takes long trades.

Related

Strategies like this one

Trend Surfer

Uses the same indicator.

1.04 PF · 10,813 trades

Short Term RSI Pullback Long Short

Best run on the same market, US Crude Oil.

1.33 PF · 493 trades

ATR Band

Also a mean reversion strategy.

10.31 PF · 53 trades

Get the full rules, the complete code and the ProRealAlgos portfolio as a member.

The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.

Past backtest results do not guarantee future results. This is not financial advice. Curated and maintained by ProRealAlgos. ProRealTime™ is a trademark of ProRealTime SAS. prorealalgos.comStatsDocs