Anchorline Anchored VWAP
- Indicatori
- Versione: 1.0
- Attivazioni: 10
Anchored VWAP from structure, time and your own click.
Anchorline Anchored VWAP draws up to eight volume weighted average price lines at the same time. Each line starts at a point you choose: the last swing high or low, the last BOS or CHoCH, the start of the day, week or month, the London or New York session start, or a candle you click. Standard deviation bands (+/-1 and +/-2) show how far price has moved away from each average. A compact panel lists every anchor with the distance from price in points and in ATR.
It is an analysis tool. It does not open trades and it does not give buy or sell signals.
What you see
- Up to 8 anchored VWAP lines at once, each with its own colour. A small dot marks the anchor candle, a label at the right edge shows the anchor type and the price. Labels move apart so they do not cover each other.
- Bands at +/-1 and +/-2 standard deviations (+/-1 by default). The anchor closest to price gets a soft fill between +/-1, so the chart stays calm; you can fill all anchors. Bands can be switched on or off for every anchor.
- Automatic anchors: last, 2nd and 3rd last swing high and low, last BOS, last CHoCH, day start, week start, month start, London session start, New York session start, or the newer of the last swing high and low.
- Manual anchors: press "+ Set anchor" in the panel (or the key A) and click a candle. Manual anchors are stored per symbol and are still there after a restart. Remove one with the x button in the panel.
- Panel: every anchor with its VWAP, over / under status, the distance in points and in ATR(14), and buttons for bands and visibility. Drag it, collapse it, choose 90 to 150 % size. Light or dark colours follow your chart.
- Alerts (popup, sound, push, e-mail): price crosses a VWAP, price touches a band, price returns to the VWAP after being at least one deviation away. Closed candles only by default, with a pause between alerts of one type.
How it is calculated
VWAP: the sum of price times volume divided by the sum of volume, from the anchor candle up to the current candle. The price is (High + Low + Close) / 3 by default; (Open + High + Low + Close) / 4, (High + Low) / 2 and Close can be chosen. Volume is tick volume by default. Real volume can be chosen; candles without real volume then use tick volume. On forex and CFD symbols tick volume describes activity, it is not exchange volume.
Bands: the volume weighted standard deviation of the price around the VWAP, drawn at +/-1 and +/-2.
Swing point: a candle whose high (low) is higher (lower) than the N candles before it and not exceeded by the N candles after it (N = strength, default 10). It is confirmed when those N candles have closed.
BOS / CHoCH: a candle closes beyond the last unbroken swing high or low. In the direction of the current structure it is a Break of Structure, against it a Change of Character. The anchor starts at the break candle or at the broken swing candle (your choice).
Sessions: start times are entered in broker server time (defaults 10:00 for London and 16:30 for New York). Adjust them to your broker. On higher timeframes an anchor snaps to the candle that contains it.
No repaint
Each closed candle is added to the running sums exactly once, in time order. The VWAP and band values of a closed candle are never recalculated afterwards (unless the broker changes its price history). Swing, BOS and CHoCH anchors come from closed candles only and appear when they are confirmed, a swing N candles after the swing. By default the line then starts at the swing candle itself; you can let it start at the confirmation candle instead. Day, week and month anchors always show the current period and start again when a new period begins. Only the right end of each line and the distances in the panel follow the live candle.
Quick start
Attach it to any chart. The defaults show day, week and month VWAP, the last swing high and low, the last BOS and CHoCH and one manual slot, from M1 to D1 on forex, metals, indices and crypto. Change the eight anchor slots in the inputs to the anchors you use. Fewer lines: set a slot to Off or hide it in the panel. Less detail in the bands: choose +/-1 only.
Editions
Anchorline One is the single-anchor edition at no cost: one anchor (day, week, month or last swing), a +/-1 band and the panel. This Pro edition adds up to 8 anchors, structure and session anchors, manual anchors by click, the +/-2 bands, per-anchor switches in the panel and alerts.
FAQ
Why does a swing anchor appear a few candles late? A swing is only confirmed when the next N candles have closed. A smaller strength gives faster swings.
Why did my day VWAP restart? Day, week and month anchors always show the current period and begin again with the new one.
Can I use it in the Strategy Tester? It is built for the visual mode of the tester; manual anchors by click are not available there.
Resources: only new closed candles are added to the sums, 3,000 candles are loaded by default (day, week and month anchors load the history they need, up to 60,000 candles). No DLL, no web requests.
Important
An analysis tool, not a signal service. An average price line and its bands describe past price movement and do not predict it. No result is promised. Trading leveraged products carries a high risk of loss.
Input parameters
General: language, candles to load (3000), colour theme, label font size (8), price used (HLC3), volume used (tick). Anchors: eight slots, each set to one anchor type. Automatic anchors: swing strength (10), swing anchors start at (swing candle or confirmation candle), BOS / CHoCH anchors start at (break candle or broken swing), London and New York session start (server time). Bands: off, +/-1 or +/-1 and +/-2 as the start value, fill on / off, fill opacity (40 %), fill all anchors (off), line width (2), labels on / off. Panel: on / off, start position X / Y, size. Alerts: price crosses a VWAP, price touches a band, return to the VWAP, closed candles only, popup, sound and sound file, push, e-mail, pause in seconds (30). Colours: one colour per anchor type (day, week, month, session, swing high, swing low, BOS, CHoCH, manual).

