AnchoredVwap
AnchoredVwap draws VWAP not from the start of the day but from automatic anchors — significant events: a volume spike, a channel breakout or a confirmed swing. Several last anchors give several lines — fair price levels from these events.
The indicator is drawn over the price chart.
How to read it
The line is the average price of everyone who entered the market after the event. If the price is above the line, the participants since the event are in profit and the line acts as support; if below, as resistance. A return to the line after moving away from it is a test of the level.
How it is calculated
From the anchor bar, VWAP of the typical price (High + Low + Close) / 3 accumulates. The anchor is chosen with Anchor:
- Volume spike — the bar volume is greater than Volume factor × the average volume of the Lookback past bars;
- Channel breakout — the first close above the high or below the low of the Lookback past bars (a Donchian channel); further closes in a row beyond the same edge of the channel do not create new anchors;
- Swing — a high strictly above Swing bars bars on the left and not below as many bars on the right (a low — the other way round). Such a swing becomes known only Swing bars bars after the top.
The indicator keeps as many last anchors as set in Lines; a new anchor takes the place of the oldest one, and the line in that place breaks.
A line is drawn from the bar after the anchor became known. For a swing, this is the confirmation bar: the stretch from the top to the confirmation is not drawn afterwards, although these bars are included in the line’s calculation.
A volume spike or a breakout on the forming bar can appear and disappear before the bar closes. The lines are not taken into account by the chart’s automatic vertical scaling.
Parameters
| Parameter | Description | Default |
|---|---|---|
| Anchor | What VWAP is built from: Volume spike, Channel breakout or Swing. | Volume spike |
| Lookback | How many past bars are taken for the average volume or for the breakout channel, at least 1. Shown for the Volume spike and Channel breakout anchors. | 20 |
| Volume factor | A spike is a bar volume greater than this many average volumes of the window, 1 to 100 in steps of 0.5. Shown for the Volume spike anchor. | 3 |
| Swing bars | A swing top is above (below) this many bars on the left and on the right, 1 to 50. Shown for the Swing anchor. | 5 |
| Lines | How many last anchors to keep, 1 to 3. | 2 |
Plots
| Parameter | Description | Default |
|---|---|---|
| AVWAP | The VWAP lines from the anchors. | Purple, solid |
Style
The line has the Plot (show the line), Label (show the last value on the right scale), Color, Width (1–5) and Style (Solid, Dashes, Dots) fields.
How to add an indicator to the chart is described in Adding an indicator; parameters are changed in the indicator manager.