Anchored VWAP Engine [Quantum Algo]Anchored VWAP Engine
====================================================
🔶 OVERVIEW
Anchored VWAP Engine is a multi-stream anchored Volume Weighted Average Price indicator that removes the hardest part of trading with anchored VWAP: choosing the anchor. The engine runs up to seven independently anchored VWAP streams that place and reset their own anchors automatically — the week open (the default stream), session open, month open, confirmed swing highs and swing lows, the highest-volume bar in a lookback, and a liquidity-sweep anchor that re-anchors from the exact bar where a stop run occurred. On top of the streams it adds volume-weighted deviation bands, automatic confluence cluster zones where multiple streams converge, band-rejection signals, and a stability metric that names which VWAP the market is currently respecting most.
Out of the box the chart shows a single clean line: the week-anchored Volume Weighted Average Price with its deviation bands. Every additional stream is one checkbox away.
🔶 WHAT IS AN ANCHORED VWAP?
The Volume Weighted Average Price is the average price of an instrument weighted by traded volume — the closest public approximation of the average position price of everyone who transacted since a chosen starting point. An anchored VWAP starts that calculation from a meaningful event rather than an arbitrary date: a weekly open, a swing low, a high-volume climax bar. Price above an anchored VWAP means the average participant since that event is in profit; price returning to it often behaves as a decision level, because it is where the average position breaks even. The power of the tool depends entirely on where it is anchored — which is exactly what this engine automates.
🔶 WHY THIS SCRIPT IS ORIGINAL
1. Automatic multi-anchor engine. Seven streams anchor and re-anchor themselves from objectively defined events — no manual anchor placement, no stale anchors, no guessing.
2. The liquidity-sweep anchor. When a swing level is wicked through and rejected — a stop run — the sweep stream re-anchors from that exact bar and colors itself by implication: the accumulation tone after a sell-side sweep, the distribution tone after a buy-side raid. Averaging from the stop-run bar tracks the entry basis of the participants who engineered it. To our knowledge this anchor type has not been published before.
3. Exact swing anchoring. Swing-anchored streams rebuild their sums retroactively from the true pivot bar once the pivot confirms, so the calculation is mathematically identical to a VWAP hand-anchored on the swing itself — not started late at the confirmation bar.
4. Confluence clusters. When two or more active streams converge within an Average True Range tolerance, the engine draws a cluster zone and labels its strength. Multiple independent volume-weighted averages agreeing on one price is the strongest form of VWAP confluence, detected automatically.
5. The In Control metric. An exponentially decayed crossing-rate measures how cleanly price is respecting each stream; the dashboard names the stream currently in control. Users learn which anchor matters today instead of watching all of them equally.
6. True volume-weighted deviation bands. The bands are built from the volume-weighted variance of the primary stream — not a simple price standard deviation — at two configurable widths, with band-rejection signals printed as a single σ character whose full context lives in the hover tooltip, protected by a signal cooldown.
7. Quiet by default. One stream, one set of bands, capped signals, and a compact dashboard. The engine detects everything; the chart shows only what is asked of it.
🔶 HOW IT WORKS
Streams: Each stream maintains volume-weighted price and variance sums that reset on its anchor event — new week, new session, new month, a confirmed swing, a lookback volume record, or a qualified liquidity sweep. Between events the sums accumulate bar by bar, producing the stream's live anchored VWAP.
Sweep detection: A sweep qualifies when price wicks through the last confirmed swing level but closes back inside it, with per-level memory so the same level cannot re-trigger. The sweep stream then re-anchors from that bar.
Deviation bands: The primary stream (selectable; week open by default) carries inner and outer bands at configurable sigma multiples computed from its own volume-weighted variance, with softly tinted zones between them.
Signals: A wick beyond the outer band with a close back inside, on the correct side of the VWAP, prints the σ rejection signal — reversion bias toward the average — evaluated on closed bars only and rate-limited by the cooldown.
Clusters: On the live bar the engine groups all active stream values within the tolerance and draws a labeled zone for each group of two or more.
Dashboard: A fully themeable panel lists every stream with its live distance from price in Average True Range units and side, plus the In Control stream, active cluster count, and the current band width.
Non-repainting: Anchors use confirmed events, sweeps and signals are evaluated at bar close, and swing streams rebuild exactly rather than approximately.
🔶 HOW TO USE IT
1. Works on any market with reliable volume — cryptocurrency, stocks, indices, futures. On the default settings, read the week-anchored VWAP as the institutional benchmark: above it with rising distance means the average weekly participant is in profit.
2. Treat the VWAP itself as the decision level and the outer bands as stretch: σ rejections at the outer band carry a reversion bias back toward the average.
3. Enable the swing and sweep anchors to study reactions: price returning to a sweep-anchored VWAP is returning to the average entry of the stop-run — a level worth watching.
4. Cluster zones are the highest-value levels the engine produces: several independent volume-weighted averages agreeing on one price. Watch how price behaves on first touch.
5. Use the In Control row to pick which stream deserves your attention today, and the distance column to see what is nearby before it is hit.
6. Intraday traders can switch the primary stream to Session Open; swing traders can promote Month Open.
🔶 SETTINGS
- Anchors: independent toggles for all seven streams, swing pivot length, highest-volume lookback. Default: Week Open only.
- Primary stream selection with inner and outer band multiples.
- Cluster detection with Average True Range tolerance.
- Signals: toggle, cooldown, and signals to keep.
- Individual colors for every stream plus accent and neutral colors.
- Themeable dashboard: position, four text sizes, title band, background, frame, grid, and three text colors.
🔶 ALERTS
- Bullish / Bearish Band Rejection — price rejected the outer deviation band of the primary stream.
- Price Crossed Above / Below Primary VWAP.
- VWAP Cluster Formed — two or more streams converged into a confluence zone.
- Sweep Anchor Reset — a liquidity sweep occurred and the sweep stream re-anchored from the stop-run bar.
🔶 FREQUENTLY ASKED QUESTIONS
Does the indicator repaint? No. Anchor events are confirmed before they act, swing streams rebuild exactly from the confirmed pivot bar, and signals are evaluated on closed bars. Swing confirmation carries its standard pivot lag by design.
Why do I only see one line? By default only the week-anchored stream is enabled for a clean first chart. Every other anchor is a checkbox in settings.
What makes the sweep anchor special? It averages price and volume from the exact bar where stops were run — the basis of the participants who engineered the move — rather than from a calendar date or swing alone.
Why is there no cluster or In Control reading? Both features compare multiple streams; enable two or more anchors and they activate.
Which markets should avoid it? Any Volume Weighted Average Price tool is only as good as the volume feed. On symbols with unreliable or synthetic volume reporting, treat every stream with caution.
🔶 CREDITS
The Volume Weighted Average Price was introduced by Stephen Berkowitz, Dennis Logue and Eugene Noser (1988), and the anchored application was popularized by Brian Shannon, whose work established anchoring from meaningful events as a discipline. This script gratefully acknowledges both. The multi-stream auto-anchoring engine, the liquidity-sweep anchor, the exact retroactive swing rebuild, confluence clustering, the In Control stability metric, and all code in this script are original work — no third-party or open-source script code was reused.
🔶 LIMITATIONS
Volume quality determines VWAP quality; symbols with unreliable volume produce unreliable averages. Deviation bands need bars to mature after each re-anchor. Cluster detection reports convergence, not a guarantee of reaction. The In Control metric measures recent respect, not future behavior. No indicator replaces independent analysis.
🔶 DISCLAIMER
This script is provided strictly for educational and informational purposes. It is not financial advice, an investment recommendation, or a solicitation to buy or sell any financial instrument. Past behavior of any average, band, or cluster does not guarantee future results. Trading involves substantial risk. Always do your own research and manage risk independently. インジケーター

VWAP Suite I EonMetricsVWAP Suite
VWAP Suite plots three independently anchored Volume-Weighted Average Price lines — Session, Weekly and Monthly — with volume-weighted deviation bands and the previous period's VWAP close kept on the chart as a reference level. Everything is computed from first principles at each anchor, so every line resets exactly where its period starts.
🔶 WHAT VWAP IS
VWAP is the average price of the period weighted by how much volume traded at each price. It answers one question: "what is the fair average price actually paid since the anchor?" That is why institutional execution desks benchmark fills against it, and why price so often reacts when it returns there — it is the level where the average participant in the period is at break-even. Above the VWAP the average buyer of the period is in profit; below it, under water.
🔶 WHAT IT DOES
Three anchors — Session (resets each trading day), Weekly and Monthly VWAP, each with its own toggle and color. Intraday traders typically work with Session, swing traders add Weekly, and Monthly serves as the higher-timeframe fair-value reference. Anchors that make no sense on the current chart timeframe (e.g. a Session VWAP on a daily chart) hide themselves automatically.
Deviation bands — ±1σ, ±2σ and optional ±3σ around ONE chosen anchor. The deviation is volume-weighted and anchored to the same period as the VWAP it wraps — not a rolling standard deviation — which is the statistically consistent way to band a VWAP (the same math TradingView's built-in VWAP bands use). ±2σ is the classic stretched-price reference; the optional gradient fill keeps the zones readable without clutter.
Previous VWAP Close — the exact level where the Session (or Weekly) VWAP finished its previous period, drawn flat through the current one. The same idea as previous day high/low, but volume-based: yesterday's fair price is a natural magnet and reaction level for today. Few VWAP tools carry this level forward — it is the reason this suite exists.
🔶 HOW IT IS CALCULATED
From each anchor the script accumulates three sums bar by bar: volume × price, volume, and volume × price². VWAP = Σ(volume × price) / Σ(volume). The band deviation comes from the volume-weighted variance Σ(volume × price²)/Σ(volume) − VWAP². At every period rollover the previous VWAP value is captured first, then the sums reset to zero. Values only update on confirmed data — there is no repainting logic anywhere in the script.
🔶 ALERTS
Seven alert conditions: price crossing each of the three VWAPs, price touching the +2σ or −2σ band, and price crossing the previous Session or previous Week VWAP close.
🔶 HOW TO USE
1. Pick your anchors — Session for intraday, add Weekly for swing context.
2. Choose which anchor carries the deviation bands (Bands Around).
3. Keep Previous Session VWAP on — reactions at yesterday's fair price are the cleanest thing this tool shows.
4. Set alerts on the crossings you actually trade around.
🔶 SETTINGS
Source (price input, hlc3 default) · Anchors (Session / Weekly / Monthly, each with color) · Deviation Bands (anchor selector, ±1σ/±2σ/±3σ toggles, gradient fill) · Previous VWAP Close (Session / Weekly levels).
🔶 HONEST LIMITATIONS
On CFDs and spot forex the data feed reports TICK volume (number of price updates), not true traded volume. VWAP built on tick volume is still the standard practice on those markets and tracks the real one closely on liquid symbols, but you should know what feeds the math. On symbols with no volume data at all the script deliberately shows nothing rather than fake a line. VWAP is a descriptive average, not a prediction — this tool draws levels, it does not generate signals.
Part of the EonMetrics toolset.
インジケーター

Anchored Volume Profile Confluence ANCHORED VOLUME PROFILE CONFLUENCE — POC, Value Area, HVN/LVN & Value Migration
OVERVIEW
This is an anchored volume-at-price framework. From a chosen anchor — the session, a swing pivot, or a bar you click — it builds a volume profile and reads where trade actually happened: the POC (the most-traded price), the value area, and the high- and low-volume nodes. It overlays the anchored VWAP (the mean) on the same anchor, maintains a second time-decayed profile whose value migrates against the sticky POC, and calibrates its stretch signals against the symbol's own past. Everything is built from one idea — volume distributed across price — so the layers describe the same auction from different angles rather than competing for screen space.
WHY THESE COMPONENTS ARE COMBINED (and how they work together)
Price tells you where the market is; volume-at-price tells you where it agreed value was. A profile alone is a static picture, a VWAP alone is a single line, and neither tells you whether what you are seeing is reliable. Each layer here answers a different question, and they are meant to be read together as one object:
- VOLUME PROFILE (POC / VALUE AREA / HVN-LVN) is the distribution of volume across price since the anchor. The POC is the price with the most acceptance. The value area is the price range containing the chosen percentage of volume (default 70%). High-volume nodes (HVN) are acceptance shelves where price tends to stall and rotate; low-volume nodes (LVN) are rejection gaps price tends to move through quickly. This is the structural map.
- ANCHORED VWAP (MEAN) is the volume-weighted average price over the same anchor. The POC is the MODE of value (where most trade occurred) and the VWAP is the MEAN (the volume-weighted centre). Their relationship is information in itself: when VWAP sits above the POC the distribution is top-heavy, below it bottom-heavy. Showing both, anchored to the same event, is what turns a profile into a read on skew.
- VOLUME-WEIGHTED SIGMA measures dispersion around the mean, computed from the running second moment (sigma = square root of E - (E )^2), so "stretched" means the same thing on any instrument. This is what makes the stretch signal comparable across assets and calibratable.
- VALUE MIGRATION is the original layer. A second profile is maintained with an exponential half-life applied to its volume, so it weights recent trade more heavily. Its value (the decayed POC or value-area midpoint) reacts to what is happening now, while the anchored POC stays sticky. When the fast value crosses the anchored POC, acceptance is shifting — buyers or sellers are building value away from the established centre. Because both are derived from the same volume data, this is a coherent structural signal, not two unrelated indicators stacked together.
- REGIME and CALIBRATION are the quality layer. An efficiency-ratio and ADX read labels the market trending, mixed or choppy for context. Separately, the script tracks — past-only — how often a stretch beyond the bands actually reverted toward value, reported as a percentage with a confidence interval. This is what separates a measured framework from a drawing: the signal is scored against the instrument's own history.
Read together: the profile shows the structure (where value is, where the shelves and gaps are), the POC-versus-VWAP skew shows how that value is distributed, the sigma bands show how far price has stretched from it, the migration shows whether acceptance is moving, the regime tells you whether to trust a signal, and the calibration shows how the stretch has behaved here before.
HOW TO USE IT
1. Pick an anchor mode in settings — Session, Pivot High, Pivot Low, Pivot High/Low (auto), or Manual (click a bar). The profile and VWAP rebuild from that point.
2. Read the histogram for structure: trade toward HVN shelves (acceptance) and expect quick travel through LVN gaps (rejection). The POC is the gravity centre.
3. Use the value area (VAH/VAL) as the fair-value range; price outside it is out of value and either trending or stretched.
4. Watch the VWAP-versus-POC skew for whether value is top- or bottom-heavy, and the sigma stretch rails for extension.
5. Watch the fast value crossing the POC (triangles) as a sign acceptance is migrating; the table and exports quantify the migration.
6. Treat a stretch (circles) into an LVN as more reversion-prone and a stretch into an HVN as a potential trap; the table's verdict and past-only reversion rate summarise this.
WHAT MAKES IT ORIGINAL
It is not a static volume profile. It pairs an anchored profile with the anchored VWAP so you read the mode and the mean together; it adds a decayed-profile value-migration signal against the sticky POC; it uses robust percentile-based HVN/LVN thresholds that self-scale instead of a fixed percentage of the POC; it refines the profile with lower-timeframe intrabar data where available; and it calibrates its stretch signal per symbol. The migration read and the per-symbol calibration in particular are not part of a standard volume profile.
WORKS ON ANY ASSET (universal)
The price SOURCE for the mean is selectable in the settings, so the engine runs on any market — futures, indices, FX, crypto, or stocks. The profile is built from each bar's true high-low range (and from lower-timeframe bars where available, for accuracy). Volume-at-price requires volume; on symbols that report none, you can borrow volume from a reference symbol. All thresholds are ATR- and sigma-relative, so nothing is tied to one instrument's price scale. A data-health row tells you whether volume is native, borrowed, or refined by lower-timeframe data.
SETTINGS SUMMARY
- Data Source: price source (default HLC3) and an optional volume-borrow symbol for no-volume instruments.
- Anchor: anchor mode, pivot left/right lengths, and a manual anchor time.
- Profile: resolution (rows per ATR), value-area percentage, lower-timeframe refinement and its resolution, robust percentile node thresholds, HVN/LVN levels, histogram width, and what to draw.
- Value Migration: enable the decayed profile, its half-life, and the fast-line definition (value-area midpoint or raw POC).
- Signals & Regime: stretch threshold in sigma.
- Calibration: enable tracking, evaluation horizon, and minimum reversion in ATR.
- Visuals: Auto/Dark/Light theme, colours, line glow, on-chart labels, legend, table and their positions, and a data-health row.
The script also prints its name, the symbol and the timeframe on the chart, and an on-chart legend names every plotted level, so it is always clear what is being viewed.
LIMITATIONS (please read)
- Pivot anchors confirm only after the right-pivot length in bars; the profile is seeded back to the true pivot bar, but a new pivot anchor appears with that delay.
- Lower-timeframe refinement depends on available intrabar history and is disabled when volume is borrowed; older bars fall back to bar-range distribution.
- The decayed profile re-weights every bin each bar, so it is heavier than a static profile on long anchors.
- Calibration is descriptive of past behaviour only and is not a forecast.
- Everything here is probabilistic context, not a prediction or a guarantee.
DISCLAIMER
This is a study / indicator for chart analysis and education only. It is NOT a strategy, NOT a recommendation, and NOT financial advice. It places no orders and guarantees no outcome. Trading involves risk. Do your own research and manage your own risk.
インジケーター

Anchored VWAP Confluence Volume-Weighted Bands & MTF LevelsANCHORED VWAP CONFLUENCE — Decayed Line, Volume-Weighted Bands & MTF Levels
OVERVIEW
This is an anchored-VWAP framework that turns a single VWAP line into a complete fair-value workspace. It plots an anchored VWAP, a faster "decayed" VWAP, a rolling VWAP, proper volume-weighted standard-deviation bands, higher-timeframe VWAP levels that act as support and resistance, and a regime read — and it calibrates its own signals against the symbol's own past so you can see how often they actually followed through. Everything is derived from one idea (volume-weighted price) so the components reinforce each other rather than competing for screen space.
WHY THESE COMPONENTS ARE COMBINED (and how they work together)
A plain VWAP tells you fair value but nothing about momentum, dispersion, higher-timeframe structure, or reliability. Each component here answers a different one of those questions, and they are meant to be read together as one picture:
- ANCHORED VWAP is the reference: fair value accumulated since a chosen event (the session, a swing pivot, or a manual click). Every other element is measured relative to this line, which is why it sits at the centre of the engine rather than being one more overlay.
- DECAYED FAST VWAP is the same VWAP with an exponential half-life applied to its volume weights, so it responds faster to recent flow. On its own a fast line is just noise; paired with the anchored line it becomes a momentum signal — when the fast line crosses the slow line, near-term flow has shifted relative to fair value. This is a fast/slow pair built from a single construct, not two unrelated indicators.
- VOLUME-WEIGHTED SIGMA BANDS measure dispersion around fair value. They are computed from the running second moment (sigma = square root of E - (E )^2), volume-weighted and reset-aware, not a price-only standard deviation slapped onto the VWAP. Because the bands scale with volume-weighted dispersion, "stretched" means the same thing on any instrument and in any regime — which is what lets the cross and stretch signals be compared and calibrated across assets.
- ROLLING VWAP provides a second, independent cross of the anchored line, so a shift confirmed by both the decayed and the rolling line carries more weight than either alone.
- MULTI-TIMEFRAME VWAP LEVELS are the rolling VWAP computed at 3x, 5x and 15x the chart timeframe and drawn as horizontal levels. Higher-timeframe fair value is where larger participants transact, so these levels frequently act as support and resistance. They are coloured by role — green when a level sits below price (support), red when above (resistance) — and weighted by horizon, so the longer-timeframe level is visually the heaviest.
- REGIME + CALIBRATION are the quality layer. An efficiency-ratio and ADX read classifies the market as trending, mixed or choppy, and (optionally) filters the cross signals so they are not taken in chop. Separately, the script tracks, past-only, how often a cross was followed by a move and how often a stretch reverted toward fair value, reporting each as a percentage with a confidence interval. This is what separates a measured framework from a drawing tool: the signals are scored against the instrument's own history.
Read together: the anchored VWAP gives you fair value, the bands tell you how stretched price is, the decayed/rolling crosses tell you when flow shifts, the higher-timeframe levels tell you the structure price is moving inside, the regime tells you whether to trust a signal, and the calibration tells you how those signals have behaved here before.
HOW TO USE IT
1. Pick an anchor mode in settings — Session, Pivot High, Pivot Low, or Manual (click a bar). The anchored VWAP and its bands rebuild from that point.
2. Use the trend-coloured anchored VWAP as fair value. Price above it is in the upper half of value, below it the lower half.
3. Watch the decayed line crossing the anchored line (triangles) as a momentum-shift cue, and treat crosses that occur in a non-choppy regime as higher quality (the regime filter does this for you when enabled).
4. Treat the +/- sigma stretches (circles) as extension — price is far from fair value and historically prone to revert; the table shows how often that has happened on this symbol.
5. Use the 3x/5x/15x VWAP levels as support/resistance targets and invalidation references; alignment of price above or below all three is shown compactly in the table.
6. Read the table for direction, extension (as a z-score), regime, higher-timeframe alignment, and the past-only follow-through rates.
WHAT MAKES IT ORIGINAL
It is not a single-line VWAP or a generic band script. The combination is the point: a decayed fast/slow VWAP pair, a correct volume-weighted sigma from the running second moment, multi-timeframe VWAP support/resistance, regime-gated signals, and a per-symbol calibration of both the cross and the stretch. The calibration in particular — measuring the script's own signals against the symbol's own past rather than assuming they work — is not something a standard VWAP provides.
WORKS ON ANY ASSET (universal)
The price SOURCE is selectable in the settings, so the engine runs on any market — futures, indices, FX, crypto, or stocks. VWAP requires volume; on symbols that report none, you can borrow volume from a reference symbol so the script still functions. All thresholds are sigma- and ATR-relative, so nothing is tied to one instrument's price scale.
SETTINGS SUMMARY
- Data Source: price source (default HLC3) and an optional volume-borrow symbol for no-volume instruments.
- Anchor & Lines: anchor mode, pivot length, manual anchor time, decay half-life, rolling window, slope smoothing.
- Signals & Regime: stretch threshold (in sigma), and an option to show crosses only in a non-choppy regime.
- Higher-Timeframe VWAP: show the 3x/5x/15x bias, and draw them as support/resistance levels.
- Calibration: enable tracking, evaluation horizon, and minimum follow-through in ATR.
- Visuals: Auto/Dark/Light theme, bull/bear colours, gradient fill, line glow, table, and table position.
The script also prints its name, the symbol and the timeframe on the chart so it is always clear what is being viewed.
LIMITATIONS (please read)
- Pivot anchors confirm only after the pivot length in bars, so a new pivot anchor appears with that delay (it is always drawn at its true historical bar).
- The higher-timeframe levels are live VWAPs and firm up as their higher-timeframe bar closes.
- Calibration is descriptive of past behaviour only and is not a forecast.
- Everything here is probabilistic context, not a prediction or a guarantee.
DISCLAIMER
This is a study / indicator for chart analysis and education only. It is NOT a strategy, NOT a recommendation, and NOT financial advice. It places no orders and guarantees no outcome. Trading involves risk. Do your own research and manage your own risk.
インジケーター

インジケーター

Multi Timeframe ProMulti Timeframe Pro — HTF Levels + Anchored VWAP
Two indicators in one clean overlay: previous-candle ranges from up to 3 timeframes, plus a fully customizable anchored VWAP with bands.
▌ Features
• Boxes for the LAST CLOSED candle of up to 3 timeframes (High, Low, dashed Mid)
• Anchored VWAP with 2 standard-deviation bands — no background fills
• Live countdown table — see when the next candle of each TF closes
• Per-TF in-indicator alerts (line crossing / bar closes outside)
• Clean line labels — e.g. "1D High", "4h Low"
• Auto-warning if a non-standard chart (Heikin Ashi, Renko, …) is used
▌ Defaults
TF 1 1D yellow
TF 2 4H aqua
TF 3 15m off
VWAP Session-anchored
Mid white, solid
Band 1 white, dashed, ±1 StDev
Band 2 gray, dashed, ±2 StDev
▌ Quick Start
1. Add to any chart (TF ≤ your highest configured TF)
2. Boxes update automatically when the higher-TF candle closes
3. For alerts: enable toggles in the Alerts section, then add ONE TradingView alert with
Condition: Multi Timeframe Pro
Function: Any alert() function call
Trigger: Once Per Bar Close
▌ Notes
• Pine v5
• Use standard candle charts (a red warning appears in the table otherwise)
• VWAP requires a symbol with volume — disable it for FX if needed インジケーター

Multi Timeframe ProMulti Timeframe Pro — HTF Levels + Anchored VWAP
Two indicators in one clean overlay: previous-candle ranges from up to 3 timeframes, plus a fully customizable anchored VWAP with bands.
▌ Features
• Boxes for the LAST CLOSED candle of up to 3 timeframes (High, Low, dashed Mid)
• Anchored VWAP with 2 standard-deviation bands — no background fills
• Live countdown table — see when the next candle of each TF closes
• Per-TF in-indicator alerts (line crossing / bar closes outside)
• Clean line labels — e.g. "1D High", "4h Low"
• Auto-warning if a non-standard chart (Heikin Ashi, Renko, …) is used
▌ Defaults
TF 1 1D yellow
TF 2 4H aqua
TF 3 15m off
VWAP Session-anchored
Mid white, solid
Band 1 white, dashed, ±1 StDev
Band 2 gray, dashed, ±2 StDev
▌ Quick Start
1. Add to any chart (TF ≤ your highest configured TF)
2. Boxes update automatically when the higher-TF candle closes
3. For alerts: enable toggles in the Alerts section, then add ONE TradingView alert with
Condition: Multi Timeframe Pro
Function: Any alert() function call
Trigger: Once Per Bar Close
▌ Notes
• Pine v5
• Use standard candle charts (a red warning appears in the table otherwise)
• VWAP requires a symbol with volume — disable it for FX if needed インジケーター

Anchored VWAP Bands Strategy [Gabremoku]Anchored VWAP Bands Strategy is a context-driven fair value indicator that combines Anchored VWAP, deviation bands, directional bias, and retest/stretch-based entry logic into a single overlay.
The script uses Anchored VWAP as its core reference line, allowing the user to define a custom starting point by time or bars back. Unlike standard VWAP, which resets on a regular session basis, Anchored VWAP starts from a specific event or pivot selected by the trader, making it especially useful for tracking price behavior relative to an important market reference point.
On top of that, the indicator adds sigma-style bands, dynamic fair value coloring, directional state reading, and optional entry signals built around AVWAP retests and band reversals.
What it shows
⚓ Anchored VWAP — the volume-weighted average price from a user-defined anchor point. Anchored VWAP is commonly used to estimate fair value from a specific event and to monitor whether price is trading above or below that reference.
📐 Deviation Bands — up to three upper and lower bands built from either:
anchored standard deviation
or rolling standard deviation
These bands help show how far price has deviated from anchored fair value and can be used to identify balance, expansion, or stretch conditions.
🌈 Dynamic Gradient Bias — AVWAP and its fills change color based on price location and directional pressure relative to the center.
🧭 Directional State — the script classifies price into states such as:
Fair Value
Bullish Balance
Bullish Expansion
Bullish Stretch
Bearish Balance
Bearish Expansion
Bearish Stretch
🎯 Entry and Target Logic — optional long/short signals and dynamic target markers based on AVWAP retests or outer-band reversals.
🪧 Dashboard — displays state, bias, AVWAP slope, distance from fair value, anchor age, and Long-S status.
Core logic
The main idea behind this script is simple:
AVWAP defines fair value from a chosen event
bands define statistical distance from that fair value
slope helps determine directional bias
signals look for retests or stretched reversals
Anchored VWAP is often used to analyze where the market’s volume-weighted average price sits from a meaningful point in time, and many traders use it as a dynamic support/resistance or bias line. Price above AVWAP is often interpreted as relatively stronger positioning, while price below it can imply weaker positioning.
By adding deviation bands, this script gives a clearer structure for distinguishing between:
normal pullbacks,
balanced price action,
and statistically extended moves.
Signal logic
The script supports Both, Long, or Short directional modes, with three signal styles:
Retest AVWAP
Band Reversal
Hybrid
Long ideas
Long signals can trigger when:
price retests AVWAP and closes back above it
or price reacts from the lower band and reclaims it
Short ideas
Short signals can trigger when:
price retests AVWAP from below and closes back under it
or price reacts from the upper band and falls back below it
There is also a Long-S logic tied to reactions around Lower Band 1, with AVWAP used as a potential target when enabled.
This makes the tool useful both for:
trend continuation via AVWAP retests
and mean-reversion or snapback setups from band extremes
Why it matters
One of the biggest strengths of Anchored VWAP is that it adds context.
Instead of asking “is price high or low?” in a generic way, AVWAP asks:
“Is price rich or discounted relative to a meaningful market event and its volume?”
That is why Anchored VWAP is commonly anchored to:
breakout bars
swing highs or lows
earnings events
gaps
major session turning points
In that framework:
AVWAP becomes fair value
slope becomes directional bias
bands become expansion/stretch zones
retests become opportunity areas
Features
✅ Anchored VWAP with time-based or bars-back anchoring
✅ Optional anchor reset logic
✅ Anchored or rolling standard deviation bands
✅ Up to three sigma-style upper/lower bands
✅ Dynamic center-line and fill coloring
✅ Fair value / expansion / stretch state classification
✅ Long / Short / Both strategy modes
✅ Retest AVWAP, Band Reversal, or Hybrid signal modes
✅ Optional slope filter
✅ Optional close-confirmation filter
✅ Dynamic target plotting
✅ Long-S lower-band reaction logic
✅ Bias background shading
✅ AVWAP label and dashboard
✅ Built-in alert conditions
How to use
A practical workflow is:
Choose a meaningful anchor point.
Use AVWAP as the fair value reference.
Read slope for directional bias.
Use the bands to identify balance vs expansion vs stretch.
Trigger entries on:
AVWAP retests in trend
band reversals after extension
In general:
above a rising AVWAP often supports bullish continuation logic
below a falling AVWAP often supports bearish continuation logic
far from AVWAP near outer bands can signal stretch or reaction zones rather than efficient price
Notes
This indicator is designed as a fair value and execution-context tool, not as a full standalone strategy with complete trade management. Anchored VWAP is highly dependent on anchor quality, so the usefulness of the line improves when the anchor is tied to a genuinely meaningful price event.
Author: Gabremoku
Pine Script v6 インジケーター

KAS VWAP Engine v4.2KAS VWAP Engine v4.2 is an open-source auto-anchored VWAP indicator designed for mean-reversion setups around volume-weighted average price. The anchor automatically resets when price establishes a new structural high or low over a configurable lookback period. A 2-stage state machine ensures signals only fire after a confirmed band-touch followed by an opposite-band close-reclaim.
WHAT IT DOES
- Plots an auto-anchored VWAP that resets on structure breaks (configurable lookback)
- Adds inner and outer ATR-based deviation bands around the VWAP baseline
- Detects mean-reversion entries when price touches the outer band and reclaims the inner band
- Visualizes completed trades as directional vectors with inline P&L labels
- Filters signals through an HTF EMA 200 trend gate (optional) and an ATR Z-Score volatility regime gate (optional)
- Displays a real-time dashboard with current reversion state, VWAP value, price deviation, HTF trend, and ATR filter status
HOW IT WORKS
1. Auto-Anchor Detection
The anchor resets when the current bar high exceeds the highest high of the previous N bars (configurable, default 50), or when the current low breaks below the lowest low. Implementation uses ta.highest(high , swingLen) and ta.lowest(low , swingLen) for the structure-break comparison.
2. Manual VWAP Accumulators
The VWAP uses hlc3 as price source and resets accumulator buffers on each new anchor. This produces a session-style VWAP from each detected structure point. Formula: VWAP = sumSrcVol / sumVol, where sumSrcVol accumulates hlc3 multiplied by volume.
3. ATR Deviation Bands with Bridge
Bands are placed at the VWAP plus/minus inner-multiplier and outer-multiplier times the ATR-14 baseline (SMA-smoothed over 100 bars). On anchor-reset bars, a dedicated bridge variable substitutes hlc3 for the freshly-reset VWAP value, preventing ghost-line artifacts in the visualization.
4. 2-Stage State Machine (Arm to Fire)
Stage 1 (Arm): a touch of the outer band sets the armed state to +1 (long-arm) or -1 (short-arm).
Stage 2 (Fire): a close back inside the inner band fires the entry signal in the same direction.
A signal cooldown (configurable bars) and a VWAP-touch-reset clear the armed state.
5. ATR Z-Score Regime Gate
The ATR-14 z-score is computed against its 100-bar SMA and 100-bar standard deviation. When the z-score falls below -1.0, the regime is classified as Low Vol and signals are blocked (optional filter, on by default).
6. HTF EMA 200 Filter
A request.security call retrieves the EMA-200 from a higher timeframe (default 4h). When enabled, long-reversion signals only fire when close is above the HTF EMA, and short-reversion signals only fire when close is below the HTF EMA.
WHY IT'S UNIQUE
- Unlike standard auto-anchored VWAP scripts that produce ghost-line artifacts when the anchor resets, this indicator substitutes hlc3 on the reset bar via a dedicated bridge variable, providing a continuous, artifact-free anchored VWAP visualization.
- Unlike instant-fire band-touch signals common in VWAP deviation scripts, this indicator uses a 2-stage Arm to Fire state machine: an outer-band touch only arms the setup, and the signal fires only after an inner-band close-reclaim, significantly reducing false signals during volatile band-pierces.
- Unlike static signal markers, this indicator visualizes each completed trade as a directional vector from entry to exit (Take Profit at VWAP, or Stop at opposite outer band) with inline P&L percentage labels, enabling rapid visual back-test review on historical bars.
HOW TO USE
- Add the indicator to a standard candlestick chart on any timeframe (intraday 5m-15m and swing 1h-4h work well)
- Default settings work for most liquid instruments; adjust Structure Lookback (50 bars) based on your timeframe density
- Watch for Revert Long (triangle below bar) or Revert Short (triangle above bar) signals after a touch of the outer band
- The dashboard shows current reversion state, VWAP deviation, HTF trend direction, and whether the ATR regime gate is blocking signals
- Trade trajectory beams visualize each completed setup with TP (return to VWAP) or STOP (extension to opposite band) outcomes
- Combine with your own risk management; the indicator is analytical, not a recommendation
LIMITATIONS
- Mean-reversion logic is designed for ranging or oscillating markets; performance is reduced in strong directional trends
- ATR Z-Score regime detection requires at least 100 bars of history to stabilize
- The HTF EMA 200 filter requires sufficient history on the higher timeframe; on newly-listed instruments or very short timeframes the HTF signal may be unstable
- Signals fire on bar close (barstate.isconfirmed); intra-bar movements are not signaled
- This indicator is for analytical purposes only and does not constitute financial advice or a recommendation to trade
ABOUT
Knecht Alpha Signals delivers Pine Script v6 indicators focused on precision over noise. This open-source release is part of our public toolkit for the TradingView community. インジケーター

Aurelian Consensus Bands [JOAT]Aurelian Consensus Bands
Introduction
Aurelian Consensus Bands is an open-source price consensus map built around a log-volume profile, dynamic consensus bands, VWAP context, and confirmed-bar signal logic. It is designed to answer a specific question: where is price trading relative to the market's recent volume-weighted agreement zone, and is that move supported by session pressure?
The script plots VPOC, consensus area, boundary bands, session VWAP deviation shells, a dynamic volume node, right-side price rails, managed signal boxes, candle coloring, and a compact top-right dashboard. Its goal is not to predict the future. It provides a structured chart layer for reading acceptance, rejection, and directional pressure around consensus levels.
Core Concepts
1. Log-Volume Consensus Profile
The script builds a rolling profile on a logarithmic price canvas. Recent bars contribute volume across high-low rows, with recency weighting applied before the profile is converted into levels. This reduces sensitivity to one-off spikes while preserving important volume clusters.
// Conceptual summary
// volume is distributed across log-price rows
// rows are then analyzed for VPOC, mean, and stdev bands
2. VPOC, CA, and Boundary Band
The engine extracts a volume point of control, consensus area high/low, and wider boundary bands. The midpoint of the consensus area and the VPOC can be blended into the active anchor. Price displacement from that anchor is normalized so the indicator can classify whether price is inside, above, or below the agreement zone.
3. Dual-Anchor Coherence
Aurelian compares the VPOC view and consensus-area midpoint view. Signals are only stronger when both views agree. If the two anchors conflict, the coherence score falls and the dashboard shows weaker context.
4. VWAP and Session Pressure
The script adds session VWAP, VWAP deviation shells, synthetic delta pressure, and a dynamic volume node. Qualified signals require more than a simple cross; they also consider whether VWAP and pressure agree with the band event.
5. Right-Side Price Rails and Signal Box
The current VPOC, anchor, consensus levels, VWAP, and dynamic node are projected to the right edge with price labels. Qualified signals can also create a managed visual box with entry, stop, T1, and T2 levels based on ATR and planned R multiples.
Features
Rolling log-volume profile: Builds VPOC, consensus area, and boundary bands from recent price-volume structure
Dual-anchor coherence filter: Compares VPOC and consensus midpoint before qualifying signals
VWAP deviation shells: Adds session VWAP context and upper/lower deviation bands
Dynamic volume node: Tracks a lighter-weight volume anchor for current conditions
Candle color blending: Colors bars using consensus direction and institutional context strength
Qualified signal markers: Uses clean dots/squares rather than arrows or retail-style markers
Managed signal box: Projects entry, stop, T1, and T2 for visual planning only
Right-side rails: Labels VPOC, anchor, CA high/low, VWAP, and node prices at the chart edge
Top-right dashboard: Shows mode, bias, coherence, score, VWAP state, delta, node, quality, and state
Confirmed-bar logic: Main signal events are gated on confirmed bars
Input Parameters
Profile Core:
Profile Rows controls profile resolution
Profile Lookback controls how much recent history is used
Recency Weight Span controls how quickly old bars lose influence
Profile Smooth controls smoothing on extracted levels
Context and Rails:
Show Session VWAP and VWAP Deviation Shells
Show Dynamic Volume Node
Show Right-Side Price Rails
Show Managed Signal Box
Signal Stop ATR Mult and Target R settings
How to Use This Indicator
Step 1: Read the anchor
Use the VPOC and consensus anchor to understand where the market's recent agreement zone sits.
Step 2: Check coherence
Higher coherence means the VPOC and consensus midpoint agree. Lower coherence suggests mixed structure.
Step 3: Watch VWAP and node context
Signals carry more context when price, VWAP, delta, and the dynamic node point in the same direction.
Step 4: Use right-side rails
The rails provide forward reference levels for continuation, rejection, or mean reversion planning.
Indicator Limitations
The profile depends on the selected lookback and row resolution
Signals are contextual, not standalone trade recommendations
Very low volume symbols may produce less reliable profile and delta readings
Confirmed-bar logic means signals appear after the bar closes, not before
Originality Statement
Aurelian combines a rolling log-volume consensus profile, dual-anchor coherence, session VWAP deviation context, synthetic pressure, dynamic node tracking, right-edge rails, and managed visual signal boxes in one open-source Pine v6 tool. The purpose is not to merge unrelated indicators, but to create a single acceptance/rejection framework around volume agreement and session context.
Disclaimer
This script is for educational and informational use only. It is not financial advice and does not ensure any trading outcome. Market behavior is uncertain, and all signals should be evaluated with risk management and independent judgment.
-Made with passion by jackofalltrades
インジケーター

MGI Walls | Rainbow MatrixGENERAL OVERVIEW
The MGI Walls is a multi-timeframe institutional liquidity radar that extracts and renders the price zones where institutional capital concentrates: Volume Profile blocks (Point of Control, Value Area High, Value Area Low), Anchored VWAPs, and Parabolic SAR levels. Instead of showing these levels for a single chart timeframe, the indicator scans up to five macro timeframes simultaneously and merges overlapping zones into a single intensified block whenever multiple timeframes agree on the same price area.
The main goal of this indicator is to give traders a clean, automatic read on where the structural barriers in the market are — without having to manually flip between timeframes, mark POCs by hand, or guess which level the next reaction will respect. Every line, box, and confluence zone you see on the chart was extracted from real volume distribution data, not drawn manually.
It plots up to four level types per timeframe (POC, VAH, VAL, VWAP, SAR), each weighted by the structural significance of its timeframe — a Weekly POC carries five times the gravitational weight of a 15-minute POC. The Wall Fusion Engine then detects when levels from different timeframes fall within a configurable percentage threshold and consolidates them into a single block. The Nearest Wall HUD panel and the institutional collision alerts complete the toolkit.
This indicator was developed for traders who already understand Volume Profile and VWAP concepts and want to see them across multiple timeframes in a single visual, with automatic confluence detection.
WHAT IS THE THEORY BEHIND THIS INDICATOR?
Most Volume Profile indicators on TradingView — including the standard built-in profiles, Fixed Range Volume Profile, and the various session/visible-range derivatives — share a common architectural choice: they operate on a single timeframe. They show you the POC and Value Area for the current chart only. This treats each timeframe as an isolated decision space.
The problem: institutional flow is not isolated to one timeframe. The market makers operating on the daily horizon see different value areas than those operating on the weekly or 4-hour horizon. Their orders sit at their own POCs and Value Area boundaries. When price approaches a level that only one institutional horizon defends, the reaction is often modest. When price approaches a level that multiple horizons defend simultaneously, the reaction is structurally stronger — that confluence is where the largest pools of resting liquidity accumulate.
This indicator addresses that by performing the extraction across five user-configured timeframes simultaneously via `request.security()`, weighting each level by the gravitational significance of its parent timeframe, and then fusing levels from different timeframes that fall within a configurable margin. The math is standard Volume Profile (POC at the volume-weighted mode, VAH/VAL at the ±2.51σ boundary that approximates the 70% Value Area) — what makes it useful is doing it across five timeframes at once, with hierarchical weighting and confluence merging.
Why traders use it: each block represents an institutional decision zone. A standalone POC line from the 15-minute timeframe is a local reaction point. A POC line that simultaneously aligns with the 4-hour VAH and the daily VWAP is a multi-horizon barrier — a zone defended by three independent pools of institutional capital at once. The fusion engine makes these confluences immediately visible as thicker, more opaque blocks; the polarity of each block reflects the accumulated weight balance of the levels that compose it, not the polarity of the last level to be merged.
The three rendered components — Volume Profile zones, Anchored VWAPs, and Parabolic SAR levels — are not independent layers stacked on the same chart. They map three different aspects of institutional positioning at the same set of timeframes: where past volume concentrated (Volume Profile), where the live volume-weighted consensus price currently sits (VWAPs), and which directional trend regime each timeframe is in (SARs). The Wall Fusion Engine operates across all three layers indiscriminately — a POC from the 4-hour timeframe and a VWAP from the daily timeframe at the same price are fused into a single block, because from the perspective of institutional defense they represent the same structural barrier reinforced by two independent mechanisms. This integration is the reason the three components exist in a single script rather than as three separate indicators: the cross-layer fusion is what surfaces multi-mechanism confluence, which a separate-script approach cannot do.
MGI WALLS FEATURES
The indicator includes 6 main features:
Multi-Timeframe Volume Profile Engine
Anchored MTF VWAPs
Parabolic SAR Levels (MTF)
Wall Fusion Engine with Polarity-Balance Coloring
Nearest Wall HUD Panel
Institutional Collision Alerts
Multilingual interface and full customization across all visual layers.
MULTI-TIMEFRAME VOLUME PROFILE ENGINE
🔹 What It Does
The core of the indicator. For each of the five configured radar timeframes, the engine performs three operations:
◇ Locates the price level that received the highest traded volume in the lookback window — the Point of Control (POC).
◇ Computes the volume-weighted standard deviation of price around that POC.
◇ Builds the Value Area High (VAH) and Value Area Low (VAL) at a calibrated multiplier (±2.51σ) of that deviation, approximating the price range that contained 70% of the total volume.
The result is three institutional reference levels per timeframe — POC, VAH, VAL — extracted natively at the granularity of each timeframe rather than approximated from the current chart's data.
🔹 Method
The extraction runs via `request.security()` with `lookahead=barmerge.lookahead_off` to prevent repainting. The POC is identified as the volume-weighted mode within the lookback window. The Value Area boundaries are derived statistically from the volume-weighted variance of price around the POC, using a calibration factor (vp_k = 2.51) tuned to approximate the conventional 70% Value Area definition. Each level is plotted on the chart as a line or box at its native price location, color-coded by whether it sits above (resistance) or below (support) the current price, and weighted by the timeframe it originated from.
🔹 Hierarchical Weighting
The five timeframes are weighted by structural significance:
◇ TF1 (Micro, default 15m): weight 1 — local reaction point.
◇ TF2 (Intraday, default 1h): weight 1 — session-scale level.
◇ TF3 (Macro 1, default 4h): weight 2 — multi-session level.
◇ TF4 (Macro 2, default Daily): weight 3 — multi-day level.
◇ TF5 (Global, default Weekly): weight 5 — multi-week structural barrier.
The weight controls visual prominence (opacity, border thickness) and, when fusion occurs, the contribution of each level to the polarity balance of the resulting block.
ANCHORED MTF VWAPS
🔹 What It Does
For each of the five radar timeframes, an Anchored VWAP is extracted and rendered as a separate level. The Global VWAP — the average of all five — is also plotted, marked with a globe emoji to distinguish it from the per-timeframe VWAPs.
🔹 Method
The per-timeframe VWAP is computed via a volume-weighted moving average of hlc3 on the native bars of each timeframe, then reported back to the current chart through `request.security()`. The Global VWAP is the unweighted average of the five timeframe VWAPs that are currently available (NA values are skipped).
🔹 Why It Matters
The Volume Profile blocks tell you where past volume concentrated. The VWAPs tell you what the volume-weighted consensus price is for each horizon, updated bar by bar. Together they give a complete read on every bar: where the past institutional reference zones are (the blocks) and where the live volume-weighted average for each horizon currently sits (the VWAPs).
PARABOLIC SAR LEVELS (MTF)
🔹 What It Does
The Parabolic SAR for each of the five radar timeframes is extracted and rendered as an institutional trend-direction anchor. SAR levels are toggleable independently of the Volume Profile and VWAP layers.
🔹 Why It Matters
The SAR provides a directional trend reference per timeframe — when the Weekly SAR sits above price and the Daily SAR sits below, the structure is in conflict and the resolution of that conflict often drives the next swing. When multiple SARs align on the same side, the directional bias is structurally agreed across horizons.
WALL FUSION ENGINE WITH POLARITY-BALANCE COLORING
🔹 What It Does
When two or more levels from different timeframes fall within a configurable percentage threshold (default 0.30%), the engine fuses them into a single block. The fused block inherits the combined weight of all its components — visually thicker, more opaque, more visible than a standalone level. The label of the fused block accumulates the directional triangles of each contributing level (▲ for support, ▼ for resistance).
🔹 Polarity-Balance Coloring
The color of a fused block reflects the accumulated weight balance of its constituent levels — not the polarity of the last level to be merged. A block containing four resistance levels (▼▼▼▼) and two support levels (▲▲) will render red, because the resistance weight dominates. A block where support and resistance weights are equal uses a tiebreaker: the position of the current price relative to the block's midpoint. Price above midpoint resolves to support (green); price below resolves to resistance (red). This produces a coloring scheme that is internally consistent with the triangle labels and with the price's current location.
🔹 Customization
The Wall Merge Margin (%) input controls how aggressively levels are fused. Lower values produce many separate precise lines. Higher values produce massive consolidated institutional blocks. The default of 0.30% is calibrated for liquid instruments on intraday timeframes; for higher-volatility assets or higher timeframes, larger margins (0.50–1.00%) may produce more readable charts.
NEAREST WALL HUD PANEL
🔹 What It Shows
A compact corner panel reports four live values:
◇ RESISTANCE — the price of the nearest wall above the current price
◇ DIST. — the percentage distance from current price to that resistance
◇ SUPPORT — the price of the nearest wall below the current price
◇ DIST. — the percentage distance from current price to that support
The distances are computed against the midpoint of each fused block, so the values reflect the consolidated wall, not any single contributing level.
🔹 Why It Helps
The HUD removes the need to visually measure distances to the walls on every bar. It tells you in plain numerical form how far the nearest barriers are in each direction. Useful for stop placement, target placement, and live decision-making where the visual chart is busy with multiple levels.
🔹 Customization
The HUD can be positioned in any of the four chart corners and rendered in any of five font sizes. The display language is controlled by the System Language input.
snapshot
INSTITUTIONAL COLLISION ALERTS
🔹 What Triggers
Two alert types are available:
◇ VWAP Collision — fires when price crosses or touches the daily, weekly, or monthly VWAP within a 0.15% proximity band.
◇ Volume Profile Wall Hit — fires when price crosses or touches the Global POC, VAH, or VAL within the same proximity band.
🔹 How They Fire
Alerts are gated by `barstate.isconfirmed`, which means they only trigger on the close of the bar that touched the level — not intra-bar. This prevents false signals from wicks that get rejected before the bar closes. Each alert uses `alert.freq_once_per_bar`, ensuring no duplicate firings on the same candle.
🔹 alertcondition() Mode
For users who prefer the TradingView alert UI rather than the `alert()` function call, two `alertcondition` blocks are also exposed: "VWAP Collision" and "Volume Profile Wall Hit". A third dummy `alertcondition` titled "HOW TO SETUP ALERTS (READ)" provides setup guidance in the alert condition menu.
MULTILINGUAL INTERFACE
The indicator supports five languages for the HUD display and alert messages: English (default), Português, Español, Русский, and 中文 (Chinese). Code, comments, and configuration tooltips remain in English regardless of the selected language.
For reference, the English text of all multilingual UI strings used in the HUD and alerts:
◇ (SUPPORT) / (RESISTANCE) — appended to wall labels indicating polarity
◇ RESISTANCE: / SUPPORT: — HUD row labels for nearest walls
◇ DIST.: — HUD row label for distance percentage
◇ VWAP Collision Alert: "🛡️ Price collided with Institutional VWAP. Defense zone active."
◇ Volume Profile Wall Alert: "🧱 Price hit Macro Volume Profile zone (POC/VAH/VAL). Institutional decision imminent."
HOW TO USE
This indicator is not a signal generator. It is a structural map: it tells you where the institutional barriers are, how strong each one is (by weight and fusion), and how far the nearest one is in each direction.
🔹 Reading the Walls
◇ Each line or block on the chart marks an institutional decision zone.
◇ The triangles in the label (▲ or ▼) and their count indicate the polarity and weight of the level.
◇ Walls with multiple triangles in the same direction are stronger reaction points than single-triangle walls.
◇ A block with mixed triangles is a fused confluence — the color shows which side dominates by weight.
🔹 Reading the HUD
◇ The HUD reports the nearest resistance above and nearest support below the current price.
◇ The percentage distances help size stops and targets against the structural barriers rather than against arbitrary fixed values.
🔹 Tactical Reading
◇ Price approaching a heavy multi-triangle wall: zone of elevated structural significance, where multiple institutional horizons coincide.
◇ Price sitting between two close walls of opposite polarity: ranging structure, defined by two opposing barriers of comparable weight.
◇ Price breaking through a heavy wall on confirmed close: structural shift. The wall often inverts polarity on subsequent retests.
◇ VWAP collision alerts: useful as a contextual reference for mean-reversion or trend-continuation analysis.
🔹 Multi-Timeframe Reading
◇ On lower timeframes (1m, 5m, 15m), configure shorter radar timeframes to track intraday institutional flow.
◇ On higher timeframes (1h, 4h, daily), keep the default 15m/1h/4h/D/W configuration to read multi-day and multi-week structural zones.
◇ The Global VWAP and Global POC (marked with 🌎) represent the consensus across all five timeframes — the most structurally significant single reference.
INPUTS EXPLAINED
🔹 System Language
Display language for the HUD and alert messages. Options: English (default), Português, Español, Русский, 中文 (Chinese).
🔹 Radar Timeframes (TF1 to TF5)
Configure each of the five macro periods to scan. Defaults: 15m, 1h, 4h, Daily, Weekly. The shortest timeframe carries weight 1; the longest carries weight 5.
🔹 Show MTF VWAPs (Radar)
Toggle for the Volume-Weighted Average Price extracted from each radar timeframe.
🔹 Show POC Lines
Toggle for the Point of Control lines — the price level with the highest traded volume in each timeframe.
🔹 Show VA Boxes (VAH / VAL)
Toggle for the Value Area High and Value Area Low — the upper and lower boundaries of the 70% volume zone.
🔹 Show SAR Levels
Toggle for the Parabolic SAR levels from each timeframe.
🔹 Fuse Overlapping Walls
Toggle for the confluence merging engine. When enabled, levels from different timeframes that fall within the Wall Merge Margin are consolidated into a single intensified block.
🔹 Wall Merge Margin (%)
Distance threshold to fuse nearby walls. Range 0.01–3.00, default 0.30. Lower values produce separate precise lines; higher values produce consolidated institutional blocks.
🔹 Show Nearest Wall Panel
Toggle for the corner HUD reporting nearest resistance, nearest support, and the percentage distances.
🔹 Panel Position
Position of the HUD on the chart. Four corners available: Top Right (default), Top Left, Bottom Right, Bottom Left.
🔹 Font Size
HUD font size. Options: Tiny, Small (default), Normal, Large, Huge.
🔹 VWAP Collision Alert
Toggle for the alert that fires when price collides with the daily, weekly, or monthly VWAP.
🔹 Volume Profile Wall Alert (POC/VAH/VAL)
Toggle for the alert that fires when price touches the Global POC, VAH, or VAL.
IMPORTANT NOTES
The MGI Walls works on any timeframe. The default radar configuration (15m/1h/4h/D/W) is calibrated for intraday and swing trading on liquid instruments. For position trading or scalping, the radar timeframes can be reconfigured to scan longer or shorter horizons respectively.
The indicator works best on instruments with reliable volume data: crypto perpetual contracts, large-cap equities, futures, major forex pairs. On low-volume instruments, the Volume Profile component becomes less reliable, though the VWAP and SAR components continue to function correctly.
Alerts fire once per confirmed bar. Historical bars never repaint after they close. The live bar updates intra-bar as expected for a real-time indicator.
The Value Area calibration factor (vp_k = 2.51) is tuned to approximate the conventional 70% Value Area definition under volume-weighted standard deviation. It is a calibration constant derived from observation rather than an arbitrary choice.
Pine Script v6. Open-source under Mozilla Public License 2.0.
UNIQUENESS
The MGI Walls is unique in three ways. First, it performs the Volume Profile, VWAP, and SAR extraction across five timeframes simultaneously rather than on the current chart only, surfacing the institutional reference zones that multiple time horizons agree on rather than only those visible on the active timeframe. Second, it weights each level by the structural significance of its parent timeframe — a Weekly POC carries five times the gravitational weight of a 15-minute POC — and the Wall Fusion Engine consolidates levels from different timeframes that fall within a configurable margin into a single intensified block, making multi-horizon confluence zones immediately visible as visually thicker walls. Third, the fused-block coloring reflects the accumulated weight balance of all constituent levels rather than the polarity of the last level to be merged, producing a visual scheme that is internally consistent with the triangle labels (▲ for support, ▼ for resistance) and with the price's current position relative to the block. The combination of multi-timeframe simultaneous extraction, hierarchical weighting with automatic confluence fusion, and balance-driven block coloring produces a structural map that behaves differently from single-timeframe Volume Profile indicators, particularly at price zones where multiple institutional horizons converge and where the strongest reactions tend to occur.
PUBLICATION METADATA (handoff to operator — not part of description)
Title: MGI Walls | Rainbow Matrix
Visibility: Open-source / Public
Category suggestion: Volume-based (primary) — TradingView's category for Volume Profile / volume-driven indicators
Tag suggestions (TV allows up to 10; pick the 9 most relevant):
- volume-profile
- poc
- value-area
- vwap
- multi-timeframe
- mtf
- confluence
- institutional
- support-resistance
- parabolic-sar (optional, swap for one above if SAR is a key selling point)
License declaration: Mozilla Public License 2.0 (already in script header)
Screenshot slots in the description (5 "snapshot" placeholders):
1. After GENERAL OVERVIEW — wide chart showing the indicator running on BTC or major instrument, with walls visible across multiple TFs
2. After Multi-Timeframe Volume Profile Engine section — chart annotated with POC/VAH/VAL lines from different TFs
3. After Wall Fusion Engine section — close-up of a fused confluence block with mixed triangles (▲▼) and the polarity-balance color clearly visible
4. After Nearest Wall HUD Panel section — HUD close-up showing the 5-row layout with real values
5. (Optional, swap into one of the above slots) — Black Swan-style touch event showing a collision alert firing
インジケーター

Anchored VWAP Suite | Flux ChartsGENERAL OVERVIEW
The Anchored VWAP Suite is an all-in-one anchored VWAP toolkit designed to plot every meaningful VWAP a trader needs from a single indicator. Instead of dropping a stand-alone anchored VWAP each time the chart prints a new swing high, swing low, daily extreme, or session boundary, the indicator does that work automatically and keeps every line on the chart managed, color-coded, and labeled.
The main goal of this indicator is to give traders a clean, automatic read on where the volume-weighted average sits from every important reference point in the market — without having to manually anchor anything. Every line you see on the chart represents the average price the market has traded at since a moment that mattered: a swing high, a session open, today’s low, and so on.
It plots six different families of anchored VWAPs simultaneously: Swing High/Low, Lookback High/Low, Daily Open/High/Low, Weekly Open/High/Low, Monthly Open/High/Low, and Session High/Low (Asia, London, NY). Every family is independently configurable — you can enable only the ones you use, set the price source for each, and control the color, line style, and how many of each type stay on the chart.
The indicator also smartly merges overlapping VWAP labels at the right edge of the chart. When two or more VWAPs converge to the same level, you see one combined label like "Daily High & Swing Low" instead of multiple stacked labels fighting for space.
This indicator was developed for traders who already use anchored VWAPs as part of their workflow and want every important anchor — swing, session, daily, weekly, monthly — drawn for them automatically and kept clean even when many are active at once.
WHAT IS THE THEORY BEHIND THIS INDICATOR?
An anchored VWAP plots the average price weighted by volume, starting from a specific bar — the "anchor." Once anchored, the line continues forward and updates each bar, showing the volume-weighted average price of everyone who has traded since that anchor was set.
Why traders use it: the anchor point is usually a moment of decision in the market — a swing high where supply showed up, a daily open where the session began, or the start of a major session. Everyone who entered around that anchor is now positioned relative to the VWAP. When price reclaims or rejects the line, it tells you whether those traders are in profit or in loss as a group, and the line itself often acts as dynamic support or resistance.
The challenge with anchored VWAPs is that there are many useful anchor points. A serious trader might want VWAPs from the last swing high, the last swing low, today’s open, today’s high, today’s low, the previous week’s high, the start of the NY session, and so on. Manually anchoring all of those — and re-anchoring them every time a new extreme prints — is tedious and error-prone.
The Anchored VWAP Suite handles this automatically. It detects every meaningful anchor point on the chart, draws the VWAP from that anchor, keeps it updated as new extremes print, retires old VWAPs as they age out, and presents the whole set in a way that stays readable even when ten or more lines are on the chart at once.
ANCHORED VWAP SUITE FEATURES
The Anchored VWAP Suite includes 7 main features:
Session Anchors
Swing Anchors
Lookback Anchors
Daily Anchors
Weekly Anchors
Monthly Anchors
Customization Options
🔹 Method
Method controls how each new bar affects a VWAP after its anchor is set. Three modes are available:
◇ Standard: every bar from the anchor counts equally. This is the classic anchored VWAP — older bars carry the same weight as the most recent ones. The line becomes steadily slower to respond as the anchor moves further into the past.
◇ EMA: recent bars are weighted more heavily, using a 2/(N+1) coefficient. The VWAP responds faster to new price action while still tracking back to the anchor point.
◇ RMA: also weights recent bars more, but with a slower 1/N coefficient (Wilder's smoothing). Smoother than EMA, but lags more.
The default is RMA, which produces a responsive line that behaves consistently whether the anchor is recent or far back.
🔹 Period
Period sets the length used by the EMA and RMA modes. Larger values smooth more — the line moves less. Smaller values make the line more reactive but jumpier. Period is ignored when Method is set to Standard, since Standard treats every bar equally regardless of length.
The default is 20.
🔹 Max VWAP Length
Max VWAP Length caps how far back a single VWAP can anchor before it's dropped from the chart. The default of 5,000 bars covers most use cases. Raise it if you need to keep very old anchored VWAPs visible — for example, swing VWAPs from far back in history. Lower it if you find the indicator slowing down on heavy charts; a smaller cap means less work to render and a snappier response when many VWAPs are active at once.
This cap also applies when a new VWAP is first drawn: anchors older than the configured limit are not created, so every line on the chart always fits inside the configured length.
COMMON ANCHOR SETTINGS: SOURCE & COUNT
Beyond the General Configuration above, two settings — Source and Count — appear in nearly every anchor family. Because they work the same way across all of them, they are explained here once and then referenced inside each anchor family below.
🔹 Source
Source controls which price each bar contributes to the VWAP after the anchor is set, but it does not change the anchor itself. The anchor bar is always pinned to its defining extreme: a Swing High VWAP anchors at the actual high of the swing-high candle, a Daily Open VWAP anchors at the actual open of the day, a Daily Low VWAP anchors at the actual low, and so on. From the bar after that, the Source you choose decides which price gets fed into the volume-weighted calculation.
Available sources:
◇ High — only the high of each bar contributes
◇ Low — only the low of each bar contributes
◇ Close — only the close of each bar contributes
◇ Open — only the open of each bar contributes
◇ HLC3 — average of high, low, and close (the classic "typical price")
◇ HL2 — midpoint of high and low
◇ OHLC4 — average of open, high, low, and close
In practice, most traders leave Source at the default for each anchor type: High for "high" anchors, Low for "low" anchors, Open for open-based anchors. Switching to HLC3, HL2, or OHLC4 produces a smoother VWAP that's less sensitive to long wicks, while sticking with High, Low, or Close keeps the line tight to a single price point on every bar.
🔹 Count
Count controls how many VWAPs of a given type are kept on the chart at once. As new anchors form, older ones drop off automatically — so a Count of 3 on Daily Open VWAPs means the indicator always shows the three most recent daily-open VWAPs and quietly drops anything older.
Set Count to 1 for a clean chart that only shows the latest anchor of each type. Raise it when you want a side-by-side view of how price has interacted with multiple historical anchors of the same kind.
SESSION ANCHORS
🔹 What Are Session Anchors?
Session anchors are VWAPs anchored to the session high and session low of the three major intraday sessions: Asia, London, and New York. They appear as each session develops and lock in once the session closes.
🔹 Default Session Times (New York Time)
◇ Asia: 20:00 – 22:00
◇ London: 02:00 – 04:00
◇ New York: 10:00 – 12:00
🔹 Live Re-Anchoring
While a session is open, the high and low VWAPs re-anchor automatically each time price prints a new extreme inside that session. The moment the session ends, the final anchors are confirmed and stay on the chart, giving traders a clean record of where the session’s volume-weighted averages sit relative to current price.
🔹 Session Boxes and Labels
Each session is also drawn as a colored box that expands as price moves. The box contains the full high-to-low range of the session and is labeled with the session name (Asia, London, NY) along its top edge. Boxes from previous sessions are kept on the chart so you can quickly see the prior session’s range alongside the live one.
🔹 Customization Options
Show / Hide toggle for each session (Asia, London, NY)
High and Low source for each session
High color and Low color for each session
Show / Hide Session Boxes toggle and box color
Show / Hide Session Labels toggle
Line style (Solid, Dotted, Dashed) and width for session VWAPs
SWING ANCHORS
🔹 What Are Swing Anchors?
Swing anchors are VWAPs drawn from the last confirmed swing high or swing low on the chart. A swing high is a candle whose high stands above the highs of the bars surrounding it; a swing low is the opposite. Both make natural anchor points because they often mark the moment supply or demand showed up in size.
🔹 How the Indicator Detects Swings
The indicator looks for pivots using two confirmation windows: a "Swing Bars Left" count and a "Swing Bars Right" count. The current pivot must be the most extreme bar over both windows before the swing is locked in, and a VWAP is anchored to it. Larger values catch only the more meaningful swings; smaller values catch more frequent (but noisier) ones. The default is 10 bars left and 10 bars right.
🔹 Count
Up to 10 swing-high VWAPs and 10 swing-low VWAPs can be kept on the chart at once. As new swings form, older ones drop off automatically.
🔹 Extend All Toggle
When Extend All is on, every kept swing VWAP keeps drawing forward to the current bar — useful for studying how price interacts with multiple historical anchors at once. When off, each swing VWAP stops where the next one of the same direction begins, keeping the chart cleaner.
🔹 Customization Options
Show / Hide toggle for Swing High VWAPs and Swing Low VWAPs
Count for each (1–10)
Price source for each (High, Low, Close, Open, HLC3, HL2, OHLC4)
Swing Bars Left and Right (1–50)
Line style (Solid, Dotted, Dashed) and width (1–5)
Color for swing high and swing low
Extend All toggle
LOOKBACK ANCHORS
🔹 What Are Lookback Anchors?
A lookback anchor is a VWAP that re-anchors automatically every time the price prints a new extreme over a rolling window. The Highest High VWAP re-anchors whenever the current bar’s high tops the highest high of the previous N bars. The Lowest Low VWAP works the same way for new lows.
🔹 How It Helps
Where a swing anchor needs confirmation bars before it locks in, a lookback anchor responds the moment a new extreme is made. This makes lookback VWAPs useful for tracking the most aggressive recent move — they always reflect the volume-weighted average from the most recent breakout high or breakdown low.
🔹 Customization Options
Show / Hide toggles for Highest High and Lowest Low
Price source for each
Color for each
Lookback Length (2–500, default 50)
Line style and width
DAILY ANCHORS
🔹 What Are Daily Anchors?
Daily anchors are VWAPs anchored to the current trading day’s Open, High, and Low bars. They appear as the day develops and re-anchor live whenever a new daily extreme prints. At the end of the day, the active anchors are confirmed, and a fresh set begins the next day.
🔹 The Three Daily VWAPs
◇ Daily Open VWAP: anchored to the bar that opened today’s session. Tracks the volume-weighted average from the start of the day.
◇ Daily High VWAP: anchored to today’s high bar. Re-anchors when a new daily high prints.
◇ Daily Low VWAP: anchored to today’s low bar. Re-anchors when a new daily low prints.
🔹 Why It Matters
The daily open is one of the most-watched intraday levels. A VWAP from it tells you immediately whether the average trader who entered today is in profit or loss. The daily high and low VWAPs do the same for the people who entered at the day’s extremes — useful for spotting reaction zones around prior swing points.
🔹 Customization Options
Show / Hide toggles for Daily Open, Daily High, Daily Low
Count for each (1–50, lets you keep historical daily VWAPs on the chart)
Price source for each
Color for each
Line style and width
Extend All toggle
WEEKLY ANCHORS
🔹 What Are Weekly Anchors?
Weekly anchors work the same way as daily anchors, but for the current trading week’s Open, High, and Low. They appear as the week develops and re-anchor when new weekly extremes print. At the start of each new week, the previous week’s anchors are confirmed and the next week begins.
🔹 The Three Weekly VWAPs
◇ Weekly Open VWAP: anchored to the bar that opened this week.
◇ Weekly High VWAP: anchored to the week’s high bar so far.
◇ Weekly Low VWAP: anchored to the week’s low bar so far.
🔹 Why It Matters
Weekly VWAPs are useful for swing traders and for anyone watching how price holds up against bigger structural references. A break and hold above the Weekly Open VWAP often confirms the bullish case for the week; a break below confirms the bearish one.
🔹 Customization Options
Show / Hide toggles for Weekly Open, Weekly High, Weekly Low
Count for each (1–50)
Price source for each
Color for each
Line style and width
Extend All toggle
MONTHLY ANCHORS
🔹 What Are Monthly Anchors?
Monthly anchors plot VWAPs from the current month’s Open, High, and Low. Like the daily and weekly versions, they re-anchor as new monthly extremes print and confirm at the end of the month.
🔹 The Three Monthly VWAPs
◇ Monthly Open VWAP: anchored to the first bar of the current calendar month.
◇ Monthly High VWAP: anchored to the month’s high bar so far.
◇ Monthly Low VWAP: anchored to the month’s low bar so far.
🔹 Why It Matters
Monthly anchors give a longer-term read that’s especially helpful on higher-timeframe trades. They often line up with major structural levels and can highlight institutional positioning over multi-week windows.
🔹 Customization Options
Show / Hide toggles for Monthly Open, Monthly High, Monthly Low
Count for each (1–50)
Price source for each
Color for each
Line style and width
Extend All toggle
SMART RIGHT-EDGE LABELS
🔹 What the Labels Show
Every VWAP on the chart can display a small text tag at its right edge, naming what that VWAP is anchored to — for example "Swing High," "Daily Open," or "London Low." This makes it instantly clear what each line on the chart represents without needing to memorize colors.
🔹 Auto-Merging at Confluence Zones
When two or more VWAPs converge to the same price at the same bar, the indicator automatically merges their labels into one combined tag using an "&" separator. For example, if the Daily Open VWAP and a Swing Low VWAP land on the same price, the right edge shows a single label that reads "Daily Open & Swing Low" instead of two stacked labels overlapping each other.
This keeps the chart readable even when many VWAPs are active and converging at confluence zones.
🔹 Customization Options
Show / Hide VWAP Labels toggle (global)
IMPORTANT NOTES
The Anchored VWAP Suite is designed to run on intraday timeframes for the session anchors to function. Session boxes and session VWAPs are automatically hidden on Daily, Weekly, and Monthly charts. Daily, Weekly, and Monthly anchor families work on any timeframe at or below their period.
The Max VWAP Length setting controls how far back a single VWAP can anchor before it’s dropped from the chart. The default of 5,000 bars covers most use cases. If you need to keep extremely old anchored VWAPs visible, raise the value; if you find the indicator is slow on large symbols, lower it.
Live anchors (the developing daily, weekly, monthly, and session anchors) update intra-bar so the line keeps pace with price. Historical bars never repaint after they close.
When Extend All is off (default for Swing, Daily, Weekly, and Monthly families), each VWAP of a given type stops where the next one of the same type begins. This keeps the chart from looking cluttered when many historical anchors are kept.
UNIQUENESS
The Anchored VWAP Suite is unique because it consolidates every anchor family a serious anchored VWAP user would draw — swing, lookback, daily, weekly, monthly, and session — into a single managed indicator. Each family has its own price source, color, line style, count, and extend mode, which means the same script can render dozens of independently configured VWAPs at once without users needing to load multiple separate scripts. Live anchors automatically re-anchor as new extremes print during the in-progress period and lock in the moment the period closes, so the chart always reflects the most current set of meaningful anchors. Three smoothing modes — Standard, EMA, and RMA — give traders a choice between the classic cumulative anchored VWAP and faster, more responsive variants that stay usable even when the anchor is very far back. The smart right-edge label system automatically merges overlapping labels at confluence zones, which keeps the chart readable even when many VWAPs are active and crossing at the same price. By unifying all of these capabilities into one indicator with consistent styling, shared smoothing logic, and automatic anchor management, the Anchored VWAP Suite removes the need to drop and manually maintain many separate anchored VWAPs and produces a clean, deterministic read on every important VWAP across the chart. インジケーター

Anchored VWAP Pro#Anchored VWAP Pro
by: MasterTonyTA
## What it does
VERY SIMPLE MARK TOPS MARK BOTTOMS- SUPPORT AND RESISTANCE SHOWN
ANCHORED VWAP SHOWS YOU IMPORTANT LEVELS TO KEEP AN EYE TO FLIP, REJECT, OR HOLD
Two anchored VWAPs (top and bottom) with **color memory** — each line stays colored while holding as S/R, turns gray when broken — plus **real-time triangles** marking every wick rejection at the top and bounce at the bottom. Anchors can be set manually via the date/time input in settings, or dragged directly on the chart for fast experimentation.
---
## How it's calculated
**VWAP** (close-based, cumulative from anchor):
```
VWAP = Σ(close × volume) / Σ(volume)
```
Starts at the user-selected anchor bar and accumulates forward.
**Color logic:**
- **Top VWAP** — red while `close < VWAP` (resistance holding), gray when `close > VWAP` (broken)
- **Bottom VWAP** — green while `close > VWAP` (support holding), gray when `close < VWAP` (broken)
**Triangles** (wick-based, fires same bar):
- **🔻 Top Rejection** — `high ≥ Top VWAP` and `close < Top VWAP`
- **🔺 Bottom Bounce** — `low ≤ Bottom VWAP` and `close > Bottom VWAP`
---
## How to trade with it
1. **Anchor the top** to a major swing high — the red line is dynamic resistance from that pivot.
2. **Anchor the bottom** to a major swing low — the green line is dynamic support from that pivot.
3. **Read the state:**
- Red top + green bottom = price inside a dynamic channel, fade the edges
- Top turns gray = resistance broken, look for retest as new support
- Bottom turns gray = support broken, look for retest as new resistance
4. **Trade the triangles:**
- 🔻 = short the rejection, stop above the wick
- 🔺 = long the bounce, stop below the wick
Best anchors are pivots that already matter — major highs, major lows, capitulation candles. Drag the anchor to test different points; the right one is where price clearly respects the line.
---
インジケーター

Helion Trend Weave [JOAT]Helion Trend Weave
Introduction
The Helion Trend Weave is an open-source volatility-adaptive multi-MA ribbon overlay that self-adjusts its period lengths based on real-time ATR regime. In high-volatility environments, periods shorten for faster response; in calm markets, they lengthen for noise reduction. The ribbon consists of up to 12 moving average filaments with four-state color logic that provides instant trend phase recognition: dominant rise, fading rise, dominant fall, and fading fall. Beyond simple trend direction, HTW measures ribbon spread as a trend strength gauge, detects compression squeezes, identifies ribbon inversions (twists), and generates six distinct signal types — all with cooldown-based anti-overlap to keep the chart clean.
This indicator addresses a fundamental limitation of static moving average systems: fixed periods that work well in one volatility environment fail in another. A 20-period EMA that provides clean signals in a trending market produces whipsaws in a choppy one. HTW solves this by dynamically morphing all ribbon periods through a volatility ratio, while providing a comprehensive suite of trend diagnostics through its dashboard and signal architecture.
Core Engine: Volatility Morphing
The adaptive period system works by computing a volatility ratio between a fast ATR and a slow ATR:
float volReg = atrL != 0 ? atrS / atrL : 1.0
float adaptMult = adaptive ? math.max(adaptMin, math.min(adaptMax, 1.5 / volReg)) : 1.0
When short-term volatility exceeds long-term volatility (ratio > 1), the multiplier decreases below 1.0, shortening all periods for faster reaction. When volatility contracts (ratio < 1), the multiplier increases above 1.0, lengthening periods for noise filtering. The morph floor and ceiling are configurable to prevent extreme period distortion. Every filament in the ribbon is calculated as:
Period = max(2, round((basePeriod + index * spacing) * adaptMult))
This means the entire ribbon breathes with the market — expanding its lookback during calm periods and contracting it during volatile ones.
Multi-MA Ribbon Architecture
The ribbon supports up to 12 filaments using EMA, SMA, or SMMA calculation types. Each filament is computed with inline EMA/RMA logic at global scope to handle the series-int periods that result from adaptive morphing. The filaments are plotted with progressive transparency — the lead filament is vivid and thick, while trailing filaments fade gradually, creating a visual depth effect.
Four-State Color Logic
Rather than simple bullish/bearish coloring, HTW uses four states based on two conditions — trend direction (lead above/below anchor) and momentum (lead rising/falling):
Dominant Rise: Lead filament above anchor AND rising — strong bullish momentum
Fading Rise: Lead filament above anchor but NOT rising — bullish trend losing steam
Dominant Fall: Lead filament below anchor AND falling — strong bearish momentum
Fading Fall: Lead filament below anchor but NOT falling — bearish trend losing steam
The "fading" states are early warnings that a trend may be approaching exhaustion before an actual crossover occurs.
Trend Diagnostics
Ribbon Spread: The absolute distance between the fastest and slowest filaments, normalized by ATR. This serves as a volatility-adjusted trend strength gauge. The spread is percentile-ranked against its own history and classified as DOMINANT (>70th), DEVELOPING (30-70th), or DORMANT (<30th).
Alignment Score: Measures what percentage of filament segments are in correct sequential order (ascending for bull, descending for bear). LOCKED = 100% alignment, PARTIAL = 50%+, SCATTERED = below 50%. Full alignment is a powerful trend confirmation.
Spread Momentum: Rate of change of the normalized spread — EXPANDING, CONTRACTING, or FLAT. Expanding spread after compression often signals the beginning of a significant move.
Compression Chamber (Squeeze Detection)
The indicator percentile-ranks the raw ribbon spread against a configurable lookback. When the spread falls below the compression percentile threshold (default: 10th percentile), the ribbon is considered "squeezed" — a state that often precedes explosive directional moves. A subtle background aura highlights compression periods.
Signal Architecture
HTW generates six signal types, each with independent cooldown timers and a global anti-overlap system that ensures only one label appears per bar (priority: Cross > Surge > Twist > Fan > Snap > Drift):
IGNITE / QUENCH (Weave Cross): Lead filament crosses above or below the anchor filament — the core directional signal.
SURGE (Momentum Surge): Compression releases into rapid expansion — the ribbon was squeezed and is now expanding with directional conviction. This is a structural breakout signal.
TWIST LOCK: Ribbon inversion confirmed after a configurable number of bars of sustained new alignment. More conservative than a simple crossover.
FAN (Filament Fan): All filaments achieve perfect sequential order — a powerful trend confirmation that indicates full ribbon alignment.
SNAP (Snap Recoil): Price crosses the ribbon midpoint against the current trend direction while the ribbon has meaningful width. This is a mean-reversion signal.
DRIFT (Drift Fade): Trend force decays to dormant level — an exhaustion warning when the spread percentile drops below 15%.
// Global anti-overlap: only one label per bar (priority order)
bool doCross = (bullCross or bearCross) and not barUsed
bool doSurge = (surgeUp or surgeDn) and not barUsed and not doCross
bool doTwist = (twistBullEdge or twistBearEdge) and not barUsed and not doCross and not doSurge
Command Panel (Dashboard)
A 12-row monospace dashboard displays real-time trend intelligence:
PHASE: Current four-state classification (Dominant Rise, Fading Rise, Dominant Fall, Fading Fall)
FORCE: Trend strength classification with percentile (DOMINANT / DEVELOPING / DORMANT)
APERTURE: Normalized ribbon spread with expansion/contraction direction
ALIGNMENT: Filament sequential order score (LOCKED / PARTIAL / SCATTERED)
MORPH: Current adaptive period multiplier (e.g., 0.75x in high vol, 1.8x in low vol)
COMPRESS: Whether the ribbon is currently in a squeeze state
WEAVE: Current MA type and filament count configuration
VOL REG: Raw volatility ratio (fast ATR / slow ATR)
MIDPOINT: Whether price is above or below the ribbon midpoint, with the midpoint price
LEAD PER / ANCHOR PER: Current effective periods after morphing
Input Parameters
Helix Parameters:
Filament Type: EMA, SMA, or SMMA (default EMA)
Origin Period: Fastest MA period (default 5)
Weave Depth: Number of filaments, 3-12 (default 8)
Filament Spacing: Period increment between filaments (default 5)
Volatility Morphing: Enable/disable adaptive periods (default on)
Morphic Tuning:
Impulse ATR / Anchor ATR: Fast and slow ATR periods for volatility ratio
Morph Floor / Ceiling: Minimum and maximum period multiplier bounds
Compression Chamber:
Compression Aura: Toggle squeeze background highlight
Chamber Lookback / Compression Percentile: Squeeze detection parameters
Signal Architecture:
Individual toggles for all six signal types
Twist Confirmation: Bars of sustained inversion required (default 2)
How to Use This Indicator
Watch for SURGE signals after compression periods — these often mark the beginning of significant directional moves.
Use the four-state color system to identify trend exhaustion early. "Fading" states warn that momentum is weakening before a crossover occurs.
FAN signals (full filament alignment) are powerful trend confirmations — they indicate that all timeframe layers of the ribbon agree on direction.
SNAP signals provide counter-trend opportunities when price crosses the ribbon midpoint against a wide ribbon — but use them with caution and additional confirmation.
Monitor the MORPH multiplier in the dashboard — extreme values (very low or very high) indicate unusual volatility conditions.
The ALIGNMENT metric helps distinguish between clean trends (LOCKED) and choppy conditions (SCATTERED).
Limitations
Moving average ribbons are inherently lagging — the adaptive morphing reduces but does not eliminate this lag.
Compression detection identifies potential breakout setups but does not predict breakout direction.
The adaptive period system can produce rapid period changes during volatile transitions, which may cause visual noise in the ribbon.
SNAP (mean reversion) signals are counter-trend and carry higher risk than trend-following signals.
The indicator works best on liquid instruments with consistent price action. Thin markets may produce unreliable morphing behavior.
Signal cooldowns prevent spam but may also suppress valid signals that occur in rapid succession.
Originality Statement
This indicator is original in its integration of volatility-adaptive period morphing with comprehensive ribbon diagnostics. While moving average ribbons are a known concept, HTW is justified because:
The ATR-ratio-based period morphing dynamically adjusts all filament periods simultaneously, creating a ribbon that breathes with market volatility — unlike static ribbon indicators.
Four-state color logic (rising/falling crossed with above/below) provides phase recognition beyond simple bullish/bearish classification.
The alignment scoring system quantifies ribbon sequential order as a percentage, providing a measurable trend quality metric.
Six distinct signal types with priority-based anti-overlap and independent cooldowns create a clean, non-cluttered signal architecture.
Compression detection integrated directly into the ribbon spread provides squeeze identification without requiring a separate indicator.
The comprehensive 12-row dashboard presents trend diagnostics including effective morphed periods, spread momentum, and alignment state.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice. Moving average systems identify trends after they begin and cannot predict future price direction. Past trend patterns do not guarantee future behavior. Always use proper risk management and conduct your own analysis before making trading decisions. The author is not responsible for any losses incurred from using this tool.
-Made with passion by officialjackofalltrades
インジケーター

インジケーター

Periodic Anchored VWAPPeriodic Anchored VWAP
Overview
The Periodic Anchored VWAP is a professional volume-weighted average price indicator that anchors VWAP calculations to fixed calendar periods. Unlike traditional anchored VWAP tools that require manual point-and-click anchoring, this indicator automatically resets VWAP calculations at predefined interval boundaries (hourly, daily, weekly, monthly), providing a clean, systematic approach to volume-weighted support and resistance analysis.
Key Features
13 Anchor Periods: 1H, 4H, 6H, 12H, 1D, 3D, 1W, 2W, 1M, 2M, 3M, 6M, 12M
Smart Timeframe Filtering: Automatically hides VWAPs when chart timeframe equals or exceeds anchor period
Individual Period Controls: Toggle each VWAP on/off independently with custom colors
Master Toggle: Global show/hide for all VWAP lines
Dynamic Labels: Real-time price labels at the right edge of chart
Compact Settings: Streamlined input panel with inline color pickers
How It Works
The Golden Rule
VWAP is displayed ONLY when: Chart Timeframe < Anchor Period
This ensures VWAP lines always represent meaningful continuous calculations. For example:
1H VWAP appears only on timeframes smaller than 1 hour (e.g., 15min, 5min, 1min)
1D VWAP appears only on timeframes smaller than daily (e.g., 4H, 1H, 15min)
1W VWAP appears only on timeframes smaller than weekly (e.g., daily, 4H, 1H)
Anchor Logic
Each VWAP resets at its respective period boundary:
Intraday Anchors (1H, 4H, 6H, 12H): Reset at the start of each hour/4-hour/6-hour/12-hour period
Daily Anchors (1D, 3D): Reset at daily market open
Weekly Anchors (1W, 2W): Reset at weekly market open
Monthly Anchors (1M, 2M, 3M, 6M, 12M): Reset at month boundaries
Input Settings
Master Control:
VWAP Display Show / Hide Global toggle for all VWAP lines
Intraday Anchors (Default: Off):
1H => Teal => Short-term intraday reference
4H => Pink => Medium-term intraday reference
6H => Magenta => Half-day session reference
12H => Cyan => Full session reference
Anchor VWAP Periods (Default: On):
1D => Yellow/Green => Daily support/resistance
3D => Purple => Multi-day trend reference
1W => Blue => Weekly pivot levels
2W => Light Blue => Bi-weekly trend
1M => Green => Monthly support/resistance
2M => Dark Green => 2-month horizon
3M => Yellow => Quarterly reference
6M => Orange => Semi-annual trend
12M => Red => Annual benchmark
Visual Display
VWAP Lines: Colored lines plotted at 2px thickness for clear visibility:
Right-Edge Labels: Compact labels showing period and current VWAP value
Smart Label Colors: Black or white text automatically based on line color for optimal readability
Use Cases
Intraday Trading:
Use 1H, 4H, 6H, 12H VWAPs on lower timeframes (e.g., 5min, 15min) to identify intraday support/resistance levels
Multiple intraday VWAPs reveal stacked liquidity zones
Swing Trading:
1D, 3D, 1W, 2W VWAPs help identify trend direction and mean reversion levels
Weekly VWAP provides context for daily price action
Position Trading:
1M, 3M, 6M, 12M VWAPs offer long-term benchmarks for valuation assessment
Multiple monthly VWAPs show multi-year price distribution
Multi-Timeframe Analysis:
Visualize up to 13 VWAP levels simultaneously
Identify confluences where multiple VWAP periods align
Observe how price interacts with different anchored levels
Important Notes
Timeframe Limitations: VWAPs automatically hide when the chart timeframe is equal to or greater than the anchor period (prevents misleading point-to-point lines)
Intraday Anchors Disabled by Default: Enable only the periods relevant to your trading style to reduce visual clutter
Monthly Anchors: Use 30-day approximation for minute calculations; display logic ensures they only appear on daily or lower timeframes
Label Positioning: Labels appear 1-13 bars to the right of the current bar to prevent overlap with price action
Performance
Efficiently coded with looped label management
No repainting — all calculations are historical
Compatible with all markets and symbols
Version History
v.1.0 => Initial release with 13 anchor periods, timeframe validation, and dynamic labels
Start using Periodic Anchored VWAP to elevate your volume-weighted analysis across all timeframes!
インジケーター

インジケーター

Piv X**Title:** Piv X: Confluence-Based Market Structure & Volume Analyzer
**Introduction**
Piv X is a comprehensive market structure analysis tool designed to grade the quality of Pivot Points using a composite "Confluence Score." Unlike standard indicators that simply identify local highs and lows based on price alone, this script evaluates the *strength* of every pivot by cross-referencing it against volume data, momentum divergences, multi-timeframe structure, and institutional key levels.
**Concept & Methodology**
The core functionality of this script builds upon a **Dynamic Pivot Quality Scoring System**. When a pivot point is detected (using an ATR-based dynamic lookback), the script runs a background analysis on 10+ technical factors to assign a "Confluence Score" (0-100).
The score is calculated based on the accumulation of the following factors:
1. **Volume Anomalies**: Detects volume spikes at the pivot, suggesting institutional participation.
2. **Momentum Divergence**: Checks for RSI and Williams %R divergences relative to price action to identify exhaustion.
3. **Liquidity Mechanics**: Identifies "Swing Failure Patterns" (SFP) and "Sweeps" where price pierces a previous structure but closes back inside.
4. **Multi-Timeframe Alignment**: Verifies if the pivot aligns with Higher Timeframe (HTF) trends and structures to filter out counter-trend noise.
5. **Key Level Interaction**: Rewards pivots that form near Daily/Weekly Highs or Lows.
6. **Fair Value Gap (FVG) Fills**: Detects if the pivot is reacting to a market imbalance fill.
**Unique Feature: Williams %R Divergence Anchored VWAP**
This tool introduces a logic-driven Anchored VWAP. Instead of arbitrarily anchoring VWAPs to high/low dates, the script automatically anchors a VWAP from the exact candle where a Williams %R Momentum Divergence is confirmed. This allows traders to visualize the "true cost basis" of participants who entered specifically on the momentum reversal signal.
**How to Use**
1. **Golden Zones (High Confluence)**: Pivots that achieve a high Confluence Score (e.g., >80) are highlighted with a distinct "Golden" border and background. These represent high-probability Support/Resistance levels backed by multiple forms of technical evidence.
2. **Standard Zones (Normal Confluence)**: Pivots with moderate scores are shown in standard Green/Purple. These are valid structure points but may require additional confirmation before trading.
3. **Trend Filtering**: The "Trend System" overlay (using EMA Clouds and RSI filters) provides visual context for the dominant trend direction, helping traders avoid taking structure signals against the main flow.
4. **Market Structure Shifts (MSS)**: The script automatically plots CHoCH (Change of Character) lines to alert traders when the sequence of Higher Highs or Lower Lows has been broken, often signaling a trend reversal.
**Settings**
* **Pivot Detection**: Adjust the ATR Multiplier to control the sensitivity of pivot detection.
* **Filters**: Toggle specific scoring factors (like Session Logic or HTF Confluence) to customize how strict the Scoring System is.
* **Visuals**: Enable/Disable specific VWAP periods (Weekly, Monthly, Yearly) to keep the chart clean.
**Disclaimer**
This tool is intended for market analysis and educational purposes only. Past performance of these setups does not guarantee future results.
インジケーター

VWAP Composites📊 VWAP Composite - Advanced Multi-Period Volume Weighted Average Price Indicator
═══════════════════════════════════════════════════════════════════
🎯 OVERVIEW
VWAP Composite is an advanced volume-weighted average price (VWAP) indicator that goes beyond traditional single-period VWAP calculations by offering composite multi-period analysis and unprecedented customization. This indicator solves a common problem traders face: traditional VWAP resets at arbitrary intervals (session start, day, week), but significant price action and volume accumulation often spans multiple periods. VWAP Composite allows you to anchor VWAP calculations to any timeframe—or combine multiple periods into a single composite VWAP—giving you a true representation of average price weighted by volume across the exact periods that matter to your analysis.
═══════════════════════════════════════════════════════════════════
⚙️ HOW IT WORKS - CALCULATION METHODOLOGY
📌 CORE VWAP CALCULATION
The indicator calculates VWAP using the standard volume-weighted formula:
• Typical Price = (High + Low + Close) / 3
• VWAP = Σ(Typical Price × Volume) / Σ(Volume)
This calculation is performed across user-defined time periods, ensuring each bar's contribution to the average is proportional to its trading volume.
📌 STANDARD DEVIATION BANDS
The indicator calculates volume-weighted standard deviation to measure price dispersion around the VWAP:
• Variance = Σ / Σ(Volume)
• Standard Deviation = √Variance
• Upper Band = VWAP + (StdDev × Multiplier)
• Lower Band = VWAP - (StdDev × Multiplier)
These bands help identify overbought/oversold conditions relative to the volume-weighted mean, with high-volume price excursions having greater impact on band width than low-volume moves.
📌 COMPOSITE PERIOD METHODOLOGY (Auto Mode)
Unlike traditional VWAP that resets at fixed intervals, Auto Mode creates composite VWAPs by combining the current period with N previous periods:
• Period Span = 1: Current period only (standard VWAP behavior)
• Period Span = 2: Current period + 1 previous period combined
• Period Span = 3: Current period + 2 previous periods combined
• And so on...
Example: A 3-period Weekly composite VWAP calculates from the start of 2 weeks ago through the current week's end, creating a single VWAP that represents 21 days of continuous price and volume data. This provides context about where price stands relative to the volume-weighted average over multiple weeks, not just the current week.
═══════════════════════════════════════════════════════════════════
🔧 KEY FEATURES & ORIGINALITY
✅ DUAL OPERATING MODES
1️⃣ MANUAL MODE (5 Independent VWAPs)
Define up to 5 separate VWAP calculations with custom start/end times:
• Perfect for anchoring VWAP to specific events (earnings, Fed announcements, major reversals)
• Each VWAP has independent color settings for lines and deviation band backgrounds
• Individual control over calculation extension and visual extension (explained below)
• Useful for tracking multiple institutional accumulation/distribution zones simultaneously
2️⃣ AUTO MODE (Composite Period VWAP)
Automatically calculates VWAP across combined time periods:
• Supported periods: Daily, Weekly, Monthly, Quarterly, Yearly
• Configurable period span (1-20 periods)
• Always up-to-date, recalculates on each new bar
• Ideal for systematic analysis across consistent timeframes
✅ DUAL EXTENSION SYSTEM (Manual Mode Innovation)
Most VWAP indicators only offer "on/off" for extending calculations. This indicator provides two distinct extension options:
🔹 EXTEND CALCULATION TO CURRENT BAR
When enabled, continues including new bars in the VWAP calculation after the defined end time. The VWAP value updates dynamically as new volume enters the market.
Use case: You anchored VWAP to a major low 3 weeks ago. You want the VWAP to continue evolving with new volume data to track ongoing institutional positioning.
🔹 EXTEND VISUAL LINE ONLY
When enabled (and calculation extension is disabled), projects the "frozen" VWAP value forward as a reference line. The VWAP value remains fixed at what it was at the end time, but the line and deviation bands visually extend to current price.
Use case: You want to see how price is behaving relative to the VWAP that existed at a specific point in time (e.g., "Where is price now vs. the 5-day VWAP that existed at last Friday's close?").
This dual system gives you unprecedented control over whether you're tracking a "living" VWAP that incorporates new data or using historical VWAP levels as static reference points.
✅ CUSTOMIZABLE STANDARD DEVIATION BANDS
• Adjustable multiplier (0.1 to 5.0)
• Independent background colors with opacity control for each VWAP
• Dashed band lines for easy visual distinction from main VWAP
• Bands extend when visual extension is enabled, maintaining zone visibility
✅ COMPREHENSIVE LABELING SYSTEM
Each VWAP displays:
• Current VWAP value
• Upper deviation band value (High)
• Lower deviation band value (Low)
• Extension status indicator (Calc Extended / Visual Extended)
• Color-coded for quick identification
═══════════════════════════════════════════════════════════════════
📖 HOW TO USE THIS INDICATOR
🎯 SCENARIO 1: EVENT-ANCHORED VWAP (Manual Mode)
Use case: A stock gaps down 15% on earnings and you want to track where institutions are positioning during the recovery.
Setup:
1. Switch to Manual Mode
2. Enable VWAP 1
3. Set Start Time to the earnings gap bar
4. Set End Time to current time (or leave far in future)
5. Enable "Extend Calculation to Current Bar"
6. Watch how price respects the VWAP as a dynamic support/resistance
Interpretation:
• Price above VWAP = buyers in control since the event
• Price testing VWAP from above = potential support
• Volume-weighted standard deviation bands show normal price range
• Price outside bands = potential exhaustion/mean reversion setup
🎯 SCENARIO 2: MULTI-WEEK INSTITUTIONAL ACCUMULATION ZONE (Auto Mode)
Use case: You trade swing setups and want to identify where institutions have been accumulating over the past 3 weeks.
Setup:
1. Switch to Auto Mode
2. Select "Weekly" period type
3. Set Period Span to 3
4. Enable standard deviation bands
Interpretation:
• 3-week composite VWAP shows the true average institutional entry
• Price bouncing off VWAP repeatedly = strong support (institutions defending their average)
• Price breaking below VWAP on high volume = potential distribution
• Deviation bands contracting = consolidation; expanding = volatility increase
🎯 SCENARIO 3: COMPARING MULTIPLE TIME HORIZONS (Manual Mode)
Use case: You want to see short-term vs medium-term vs long-term VWAP alignments.
Setup:
1. Switch to Manual Mode
2. VWAP 1: Last 5 trading days (blue)
3. VWAP 2: Last 10 trading days (orange)
4. VWAP 3: Last 20 trading days (purple)
5. Enable "Extend Calculation" for all
6. Set different background colors for visual separation
Interpretation:
• All VWAPs aligned upward = strong trend across all timeframes
• Price between VWAPs = finding equilibrium between different trader timeframes
• Short-term VWAP crossing long-term VWAP = momentum shift
• Price rejecting at higher-timeframe VWAP = that timeframe's traders defending their average
🎯 SCENARIO 4: HISTORICAL VWAP REFERENCE LEVELS (Manual Mode)
Use case: You want to see where the 1-month VWAP was at each month-end as static reference levels.
Setup:
1. Switch to Manual Mode
2. VWAP 1: Set to last month's start/end dates
3. VWAP 2: Set to 2 months ago start/end dates
4. VWAP 3: Set to 3 months ago start/end dates
5. Disable "Extend Calculation"
6. Enable "Extend Visual Line Only"
Interpretation:
• Each VWAP represents the volume-weighted average for that complete month
• These become static support/resistance levels
• Price returning to old monthly VWAPs = institutional memory/gap fill behavior
• Useful for identifying longer-term value areas
═══════════════════════════════════════════════════════════════════
🎨 CUSTOMIZATION OPTIONS
GENERAL SETTINGS
• Show/hide labels
• Line style: Solid, Dashed, or Dotted
• Standard deviation multiplier (impacts band width)
• Toggle standard deviation bands on/off
MANUAL MODE (Per VWAP)
• Custom start and end times
• Line color picker
• Background color picker (with transparency control)
• Extend calculation option
• Extend visual option
• Show/hide individual VWAPs
AUTO MODE
• Period type selection (Daily/Weekly/Monthly/Quarterly/Yearly)
• Period span (1-20 periods)
• Line color
• Background color (with transparency control)
═══════════════════════════════════════════════════════════════════
💡 TRADING APPLICATIONS
✓ Mean Reversion: Use deviation bands to identify stretched prices likely to return to VWAP
✓ Trend Confirmation: Price sustained above VWAP = bullish bias; below = bearish bias
✓ Support/Resistance: VWAP often acts as dynamic S/R, especially on higher volume periods
✓ Institutional Positioning: Multi-day/week VWAPs show where large players have established positions
✓ Entry Timing: Wait for pullbacks to VWAP in trending markets
✓ Stop Placement: Use VWAP ± standard deviation as volatility-adjusted stop levels
✓ Breakout Confirmation: Breakouts from consolidation with price reclaiming VWAP = stronger signal
✓ Multi-Timeframe Analysis: Compare short vs long-period VWAPs to gauge momentum alignment
═══════════════════════════════════════════════════════════════════
⚠️ IMPORTANT NOTES
• The indicator redraws on each bar to maintain accurate visual representation (uses `barstate.islast`)
• Maximum lookback is limited to 5000 bars for performance optimization
• Time range calculations work across all timeframes but are most effective on intraday to daily charts
• Standard deviation bands assume volume-weighted distribution; extreme events may violate assumptions
• Auto mode always calculates to current bar; use Manual mode for fixed historical periods
═══════════════════════════════════════════════════════════════════
This indicator is open-source. Feel free to examine the code, learn from it, and adapt it to your needs.
インジケーター

Multi-AVWAP - Anchored - Gold -V1This script uses multi-day anchored VWAP.
What it does
This study plots multiple Anchored VWAP (AVWAP) lines from recent session starts (1, 2, 3, 4, 5, 10, 15, 20, 30, 90).
from the anchor forward. Each line shows a live label with the line’s current value and the current price for quick distance checks.
Best practices
Use on intraday timeframes for session-anchored lines.
Ensure the chart has enough history loaded for the longest lookback (e.g., 90 days).
For crypto or 24×7 markets, set session to a 24h window (e.g., 0000-2359) and turn off the exclude-ETH toggle if you want full-time anchoring.
Limitations
Different exchanges/markets use different RTH windows—pick the one that matches your venue.
Corporate actions/volume adjustments can make small discrepancies across platforms.
If no RTH exists on the exact calendar day (holidays), the 90d line anchors to the most recent available RTH open before that date. インジケーター

(Fixed-Range) Anchored VWAPThis "Fixed-Range Anchored VWAP" indicator allows traders full control over where the VWAP calculation begins and ends. VWAP combines both price and volume to reflect the true average price paid, often serving as a benchmark for gauging value, sentiment, and trend strength.
With this tool, traders can anchor VWAP to any candle, optionally define an end point, or keep it running forward with a single toggle. Up to three bands can be added around VWAP, either as standard deviations or percentage offsets.
How to Use
The indicator is particularly useful for analyzing VWAP around significant events, like earnings announcements or sharp price swings, to identify support, resistance, and mean-reversion opportunities.
Add the indicator and select a candle to set the Anchor.
Choose an End point or enable Cancel End for an open-ended VWAP.
Pick Std Dev or Percent for band mode.
Turn on up to three bands, adjust multipliers, and set fill colors.
Use VWAP and its bands to evaluate extensions, trend context, and fair value zones.
インジケーター

VWAP Price ChannelVWAP Price Channel cuts the crust off of a traditional price channel (Donchian Channel) by anchoring VWAPs at the highs and lows. By doing this, the flat levels, characteristic of traditional Donchian Channels, are no more!
Author's Note: This indicator is formed with no inherent use, and serves solely as a thought experiment.
> Concept
I would be hesitant to call this a "predictive" indicator, however the behavior of it would suggest it could be considered at least partially predictive
Essentially, the Anchored VWAPs creates something from otherwise nothing.
While the DC upper or lower values are staying flat, the VWAPs improvise based on price and volume to project a level that may be a better representation of where future highs or lows may settle.
Visually, this looks like we have cut off the corners of the Donchian Channel.
Note: Notice how we are calculating values before the corners are realized.
> Implementation
While this is only a concept indicator, The specific application I've gone with for this, is a sort of supertrend-ish display (A Trend Flipping Trailing Stop Loss).
The script uses basic logic to create a trend direction, and then displays the Anchored VWAPs as a form of trailing stop loss.
While "In Trend", the script fills in the area between the VWAP and Price in the direction of trend.
When new highs or lows are made while in trend, the opposite VWAP will start to generate at the new highs or lows. These happen on every new high or low, so they are not indicating the trend shift, but could be interpreted as breakout levels for the current trend direction in order for continuation.
Note: All values are drawn live, but when using higher timeframes, there is a natural calculation discrepancy when using live data vs. historical.
> Technicals
In this script, I'm simply detecting new highs or lows from the DC and using those as the anchor frequency on the built-in VWAP function.
So each time a new high or low is made based on DC, the VWAP function re-anchors to the high or low of the candle.
Past that, I have implemented some logic in order to account for a common occurrence I faced during development.
Frequently, the price would outpace the anchored VWAP, so we would end up with the VWAP being further from price than the actual DC upper or lower.
Due to this, what I have ended up with was a third value which, rather than switching between raw VWAP values and DC values, it adjusts the value based on the change in the VWAP value.
This can be simply thought of as a "Start + Change" type of setup.
By doing this, I can use the change values from the actual anchored VWAP, and under normal conditions, this will also be the true VWAP value.
However, situationally, I am able to update the start value which we're applying the VWAP change to.
In other words, when these situations happen, the VWAP change is added to the new (closer to price) DC value.
The specific trend logic being used is nothing fancy at all, we are simply checking if a new high or low is created and setting the trend in that direction.
This is in line with some traditional DC Strategies.
To those who made it here,
Just remember:
The chart may be ugly, but it's the fastest analysis of the data you can get.
Nicer displays often come at the hidden cost of latency.
You have to shoot your shot to make it.
Choose 2: Fast, Clean, Useful
Enjoy! インジケーター

インジケーター
