Skip to Content
ChartIndicatorsVwapDeviation

VwapDeviation

VwapDeviation shows where the bar’s close is relative to the VWAP bands, in VWAP standard deviations, and the VWAP slope in the same units. It tells you whether the day is trending or the price is moving around VWAP.

The indicator is drawn in a separate area below the chart.

How to read it

  • Deviation 1 and 2 are the first and second VWAP bands. Beyond the ±2 levels, the price is far from the day’s fair price.
  • Slope near zero — a mean-reversion day: deviations trade back to VWAP.
  • Slope far from zero — a trend day: deviations in the direction of the trend do not come back.

How it is calculated

  1. VWAP is the volume-weighted average price since the start of the period set in Anchor period; the bar price in VWAP is set by VWAP source.
  2. σ is the volume-weighted standard deviation of the price from VWAP, that is, the width of the VWAP bands.
  3. Deviation = (close − VWAP) / σ. The deviation always uses the close, whatever the VWAP source.
  4. Slope = (VWAP − VWAP Slope period bars ago) / σ.

At the start of a session σ is small and the deviation jumps, so the first Slope period bars of each period have no values. If σ is zero, the lines break. The lines also break at the start of a new period.

The day starts at midnight by the chart’s time scale, the week on Monday.

Parameters

ParameterDescriptionDefault
Anchor periodSince when VWAP is accumulated: Day, Week, Month or All bars.Day
VWAP sourceThe bar price in VWAP: Close — the close, Median — (High + Low) / 2, Typical — (High + Low + Close) / 3.Typical
Slope periodOver how many bars the VWAP slope is calculated, at least 1.10

Plots

ParameterDescriptionDefault
Deviation(Close − VWAP) / σ.Orange, solid
SlopeThe change of VWAP over the slope period, in σ.Blue, solid

Levels

ParameterDescriptionDefault
UpperThe upper level in σ.2, purple
LowerThe lower level in σ.−2, purple

Style

The lines have the Plot (show the line), Label (show the last value on the right scale), Color, Width (1–5) and Style (Solid, Dashes, Dots) fields.

Each level has the Show, Value, Color, Width and Style fields.

How to add an indicator to the chart is described in Adding an indicator; parameters are changed in the indicator manager.

Last updated on