# VWAP Mean-reversion vs Trend Regimes

A Volume & Order Flow concept (VWAP family) in the LuxAlgo Library, with 1 indicator implementation.

## What are VWAP Mean-reversion vs Trend Regimes?

VWAP mean-reversion vs trend regimes is the observation that the same [session VWAP](https://www.luxalgo.com/library/concept/session-vwap/) supports two opposite playbooks depending on the day's condition. On balanced, rotational days price crosses VWAP repeatedly, and stretches toward the outer [VWAP bands](https://www.luxalgo.com/library/concept/vwap-bands/) tend to rotate back to the average, so fading deviation is the playbook that fits. On imbalanced, trending days price holds one side of VWAP for hours, pullbacks to the average get absorbed in the trend direction, and fading deviation is precisely the wrong trade.

That turns VWAP trading into a two-step decision: classify the regime first, then pick the rule set. Common classifiers include which side of VWAP price has held, VWAP slope, the count of crossings, band width, or a [z-score](https://www.luxalgo.com/library/concept/z-score/) of distance from the average. None is definitive, regimes flip mid-session, and misclassifying the day is the main way both playbooks lose.

The earliest and strongest tell is usually the open. A session that opens inside the prior day's [value area](https://www.luxalgo.com/library/concept/value-area/) and trades back across VWAP within the first rotations leans rotational; one that gaps beyond prior value on elevated [relative volume](https://www.luxalgo.com/library/concept/relative-volume/) and drives one-directionally from the bell leans trend, the classic gap-and-go anatomy. From there the evidence accumulates bar by bar: a flattening VWAP collecting crossings votes for balance, a sloped VWAP with shallow pullbacks that never reach the average votes for imbalance, and most classification schemes are just structured ways of counting those votes.

Tooling on the Library packages both halves: deviation-band fade engines like the Mean Reversion Signals study formalize the rotational playbook, while regime-aware systems like the Quant VWAP System combine a classifier, magnet levels and z-scored stretch into one framework. The auction-theory lens explains why the split exists at all, balanced days are two-sided auctions around accepted value while trend days are one-sided searches for it, which also predicts the cost structure: the reversion playbook bleeds badly on the minority of strong trend days, the trend playbook starves on the rotational majority, and the classifier is where the whole edge lives.

## How to identify the day's VWAP regime

Classification is evidence accumulation, heaviest at the open and revisited all session.

1. Read the open against prior value: opening inside yesterday's value area leans rotational, gapping beyond it on strong early volume leans trend.
2. Track the first hour's crossings: repeated trades across a flattening VWAP vote for balance, a one-sided hold of a sloping VWAP votes for imbalance.
3. Watch stretch behavior at the bands: tags that rotate back toward the average confirm rotation, tags that keep extending confirm initiative pressure.
4. Commit provisionally once the evidence converges, and choose the matching playbook rather than running both at once.
5. Keep auditing: a day that stops crossing VWAP and accepts one side, or a trend that starts rotating through the average, is announcing a regime flip that the playbook must follow.

## How it's calculated

Anchored VWAP with its volume-weighted deviation z-score, used to classify whether price is rotating around VWAP or trending away from it.

```
TP_i = (H_i + L_i + C_i) / 3
VWAP_t = Σ_(i=s..t) (TP_i × V_i) / Σ_(i=s..t) V_i
sigma_t = sqrt( Σ_(i=s..t) V_i × (TP_i - VWAP_t)^2 / Σ_(i=s..t) V_i )
Upper_t = VWAP_t + k × sigma_t
Lower_t = VWAP_t - k × sigma_t
z_t = (C_t - VWAP_t) / sigma_t
Mean-reversion regime: z_t flips sign repeatedly around a flat VWAP, and excursions to the outer bands rotate back through VWAP
Trend regime: z_t holds one sign for an extended run, VWAP slopes with price, and pullbacks hold near VWAP or the first band without rotating through it

  t: current bar index
  s: first bar of the anchor window (session open by default)
  i: bar index running from s to t
  H_i: high of bar i
  L_i: low of bar i
  C_i: close of bar i (C_t is the current close)
  V_i: volume of bar i
  TP_i: typical price of bar i
  VWAP_t: anchored volume-weighted average price at bar t
  sigma_t: volume-weighted standard deviation of TP around VWAP
  k: band width multiplier (commonly 1, 2, or 3)
  Upper_t: upper deviation band at bar t
  Lower_t: lower deviation band at bar t
  z_t: distance of the close from VWAP in sigma_t units
```

No canonical numeric cutoff separates the two regimes; the sign-flip and run-length reads above are the standard framing, with exact thresholds set per strategy.

VWAP, sigma_t, and the bands all reset at the anchor s; weekly, monthly, or event anchors use the same formulas.

Some platforms measure deviations from the close instead of typical price, which shifts sigma_t and z_t slightly.

## How traders use it

- Reversion playbook: on rotational days, fade tags of the outer deviation bands back toward VWAP, with stops beyond the band and the average itself as the primary target.
- Trend playbook: on one-sided days, treat VWAP or the first band as dynamic support or resistance and join pullbacks in the direction of the hold, skipping counter-trend fades entirely.
- Regime switching: monitor crossings, slope, and acceptance through the session; a day that stops crossing VWAP and starts holding one side gets reclassified from rotation to trend, and the active playbook changes with it.
- With auction-map confluence: rotation regimes typically coincide with trade held inside the prior [value area](https://www.luxalgo.com/library/concept/value-area/) while trend regimes coincide with acceptance beyond it, so the profile map and the VWAP classifier audit each other.
- Quantified: z-scored distance from VWAP turns both playbooks into thresholds, fade entries at stretched scores on rotational days, pullback entries near neutral scores on trend days, which makes the regime dependence explicit and testable.

## VWAP regimes vs related session frameworks

- **Session VWAP** (https://www.luxalgo.com/library/concept/session-vwap/): The session VWAP is the instrument; the regime framework is the decision about which way to play it. Nothing in the average itself says fade or follow, which is exactly why the same line anchors two opposite playbooks and why the classification step cannot be skipped.
- **Value Area** (https://www.luxalgo.com/library/concept/value-area/): Auction theory types the day by where price trades relative to prior value; the VWAP framework types it by behavior around the session average. They usually agree, balance inside value with rotation around VWAP, and their disagreements flag transitional days worth extra caution.
- **Anchored VWAP** (https://www.luxalgo.com/library/concept/anchored-vwap/): The regime logic generalizes to any anchor: an event-anchored VWAP also supports fade and follow readings depending on whether price rotates around it or accepts one side. Longer anchors flip regimes more slowly, making classification easier but staler.

## FAQ

### How do you know if it's a VWAP trend day or a mean-reversion day?

Common tells: trend days hold one side of VWAP with a persistent slope and few crossings, often after a gap or a catalyst; rotational days cross a flat VWAP repeatedly in both directions. Classification is probabilistic and provisional, so many traders wait for an hour or more of evidence before committing to either playbook.

### Why do VWAP band fades stop working on some days?

Band fades assume balance: two-sided trade rotating around an accepted average. On imbalanced days, initiative flow keeps pressing price along one side of VWAP, so every stretched reading stretches further. That is a regime problem, not an indicator flaw, which is why regime classification belongs before the entry rule, not after a string of losses.

### What fraction of sessions are trend days?

A minority in most liquid markets: rotational and mixed days dominate, with strongly one-sided trend days the exception rather than the rule. No fixed number survives across instruments and eras, and the ratio itself drifts with volatility regimes. The practical consequence is asymmetric: reversion playbooks get more opportunities but carry tail risk on the trend days, while trend playbooks wait longer between valid sessions.

### Which regime classifier works best?

None dominates alone, which is why working schemes combine two or three: opening context against prior value for the early lean, crossing counts and VWAP slope for accumulating evidence, stretch behavior at the bands for confirmation. Single-input classifiers fail in characteristic ways, slope lags, crossing counts stay ambiguous in the first hour, and the combination exists precisely to cover those blind spots.

### How are the deviation bands set?

The standard construction accumulates the variance of price around VWAP through the session and draws bands at one, two and sometimes three standard deviations, the z-score being the same measurement expressed as a number. Bands computed this way start unstable, widening from thin early data, which is another reason first-hour classifications stay provisional. Fixed-width and ATR-scaled variants exist and trade adaptivity for stability.

### Does the regime framework apply to anchored and higher-timeframe VWAPs?

Yes, with slower clocks. A weekly VWAP or an event-anchored average supports the same two readings, rotation around it versus acceptance one side of it, and the same classifiers translate: slope, crossing behavior, stretch persistence. Longer anchors accumulate more volume, so their regimes turn slowly and misclassification costs less per bar but persists longer; the session-scale version simply runs the loop at its fastest.

## Implementations in the Library

- VWAP Mean-reversion vs Trend Regimes (LuxAlgo): https://www.luxalgo.com/library/indicator/vwap-mean-reversion-vs-trend-regimes/

## Related concepts

- VWAP Bands: https://www.luxalgo.com/library/concept/vwap-bands/
- Anchored VWAP: https://www.luxalgo.com/library/concept/anchored-vwap/
- Session VWAP: https://www.luxalgo.com/library/concept/session-vwap/
- Periodic VWAPs: https://www.luxalgo.com/library/concept/periodic-vwaps/
- Rolling VWAP: https://www.luxalgo.com/library/concept/rolling-vwap/
- VWAP Pinch: https://www.luxalgo.com/library/concept/vwap-pinch/
- Midpoint/half-back of Session: https://www.luxalgo.com/library/concept/midpoint-half-back-of-session/

---

Source: https://www.luxalgo.com/library/concept/vwap-mean-reversion-vs-trend-regimes/ (LuxAlgo Library, the encyclopedia of trading & technical analysis). Free to use with attribution: https://www.luxalgo.com/library/license/