Anchored VWAP

In this chapter

The volume-weighted average price from the bar you click to the last bar on the chart: each bar’s price, weighted by its volume, averaged over every bar since the anchor.

Key Placing it CLI
Alt + W Click the bar it starts from avwap, vwap
SPY 1h with an amber anchored VWAP from 20 October, its first band shaded and its second dashed, and a blue one from the 27 October open
Two anchored VWAPs: configuration 4 from 20 October with its first two bands, the 1σ shaded and the 1.5σ dashed, and configuration 3 from the open of 27 October.

It is what a buyer since that bar has paid on average, so it is anchored where something happened (an earnings gap, a swing low, the first bar of a breakout) and read as support or resistance from there. Unlike the VWAP study it never resets. On daily bars it follows weeks of trading from one bar.

It has no end. As new bars arrive the line runs on to them, worked out again from the anchor. A click past the last bar anchors it on the last bar, and one before the first on the first. On a bar with no volume, an index’s, each bar counts once.

Selected, it glows in its own colour, as a selected VWAP study does, and has one grip, at the anchor. Drag the grip to another bar and the line is worked out from there. It cannot be moved whole or nudged with the arrow keys; a press on the line that drags pans the chart. It takes no text. On a chart of another resolution it is worked out from that chart’s bars, from the same moment. A pasted copy lands a few bars to the right of the original.

Properties

Alt + Enter or a double-click on the line opens them. They are the VWAP study’s, in the same groups and order, with the same defaults: a line, and three bands at 1, 1.5 and 2 standard deviations, all off. The deviation is weighted by volume, as the average is. Defaults are those of a configuration as shipped.

Parameters

Property What it does Default
Source The price each bar adds to the average: Typical (HLC/3), (high + low + close) / 3, the study’s; Median (HL/2); Average (OHLC/4); or Close Typical (HLC/3)

Line

Property What it does Default
Colour The line’s colour, and every band’s that has none of its own: one of the nine presets, which change with the theme, or Custom… for a hex colour. Its Opacity is how solid the line is drawn The configuration’s, at 100%
Thickness No line, 1, 1.5, 2.5 or 4 px, picked from drawn samples. No line leaves only the bands 1.5 px
Line style Solid, Dashed or Dotted, picked from drawn samples Solid

Band 1, Band 2, Band 3

Each band is a pair of lines, one above the average and one below, at the same distance.

Property What it does Default
Show Draws the band Off
Standard deviations How far from the line the band sits, 0.1 to 6, in tenths 1, 1.5 and 2
Shaded Fills the area between the band’s two lines, under the candles On for band 1, off for the others
Shading opacity % How solid that fill is, 0 to 100% 16%
Colour The band’s own colour. Default, first in its palette, goes back to the line’s, which the band then follows. Its Opacity is how solid the band’s two lines are drawn The line’s, at 100%
Thickness The band’s two lines: no line, 1, 1.5, 2.5 or 4 px. No line leaves a shaded band with no outline No line for band 1, 1 px for bands 2 and 3
Line style Solid, Dashed or Dotted Dashed for band 2, solid for bands 1 and 3

Configurations

Every configuration is its colour at 1.5 px, solid, from the typical price, with no bands. Every property is part of the configuration: Save as… keeps the bands with the rest, and a drawing on that configuration draws them (Configurations).

See also