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
- 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.
- σ is the volume-weighted standard deviation of the price from VWAP, that is, the width of the VWAP bands.
- Deviation = (close − VWAP) / σ. The deviation always uses the close, whatever the VWAP source.
- 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
| Parameter | Description | Default |
|---|---|---|
| Anchor period | Since when VWAP is accumulated: Day, Week, Month or All bars. | Day |
| VWAP source | The bar price in VWAP: Close — the close, Median — (High + Low) / 2, Typical — (High + Low + Close) / 3. | Typical |
| Slope period | Over how many bars the VWAP slope is calculated, at least 1. | 10 |
Plots
| Parameter | Description | Default |
|---|---|---|
| Deviation | (Close − VWAP) / σ. | Orange, solid |
| Slope | The change of VWAP over the slope period, in σ. | Blue, solid |
Levels
| Parameter | Description | Default |
|---|---|---|
| Upper | The upper level in σ. | 2, purple |
| Lower | The 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.