Volume Profile Anchored VWAP, AVWAP Bands & Deviation [LunqFX]Most anchored VWAP tools make you drag the anchor by hand, and it goes stale the moment structure changes. This one places the anchor automatically at confirmed swing pivots, wraps it in volume weighted standard deviation bands, hangs the leg's volume profile off the right edge, and then measures whether those bands are being respected on the symbol in front of you.
The annotated charts below explain the script's output element by element.
❶ AUTO ANCHORED VWAP
An anchored VWAP is only meaningful from a point that mattered. Anchor it at an arbitrary bar and it describes nothing; anchor it where the market last turned and it becomes the average price everyone trading THIS leg is carrying — which is exactly the level they defend.
The anchor is placed at confirmed swing pivots, with two guards that matter more than they sound:
▸ MINIMUM LEG — a fresh pivot cannot take over until the running leg has had room to form. Without that rule a cluster of pivots chops the curve into stubs and the VWAP never describes anything. ▸ MAXIMUM LEG — a leg that outlives its usefulness resets rather than growing into a whole-history average.
Session, weekly and monthly anchors are available for traders who prefer calendar anchoring.
❷ STANDARD DEVIATION BANDS
Around the anchored VWAP the script draws volume weighted standard deviation bands at three depths, filled as a gradient so distance from fair value is readable without measuring. Three details make them behave:
▸ WARM-UP — at the anchor the deviation is zero by definition, so the first bars of every leg would draw as a collapsing funnel. Those bars are still measured; they are simply not drawn. ▸ MINIMUM WIDTH — an ATR floor stops the bands pinching shut during dead stretches. ▸ DISPLAY SMOOTHING — the deviation path is box-filtered for drawing only. The VWAP itself and every statistic use the raw values, so nothing you act on is smoothed.
❸ VOLUME FLOW
Each bar's participation is drawn as fine texture reaching inward from the band edges: buy pressure rises from the lower edge, sell pressure falls from the upper one, split by where the bar closed inside its own range. The bands are the baseline, so the leg's pressure reads along the structure instead of on a separate pane.
❹ VOLUME PROFILE OF THE LEG
At the right edge the script hangs the volume distribution of the whole leg, split buy against sell, with a seam line at the join and a traced outline. Each bar is binned against its OWN slice of the channel rather than a fixed price grid, so a sloping leg does not smear the distribution — a detail most profile overlays skip, and the reason the shape stays honest on a trending market.
❺ BAND REACTION STATISTICS
Bands tell you where price is. They do not tell you what that has meant here. So the script measures it: for every touch of the chosen band inside the current leg it checks whether price returned to the VWAP within your window, and reports the share that did, together with the number of touches.
That single number changes how the same picture is read. A leg where touches of the upper band came back to VWAP most of the time is mean-reverting, and the band is a fade. A leg where they did not is trending, and the same touch is continuation. Samples too small to conclude anything from are marked with a tilde rather than presented as a result.
❻ WHAT YOU SEE ON THE CHART
▸ Dashed vertical line with the ANCHOR badge — where the current leg begins. ▸ Three teal bands below and three red bands above, filled as a gradient — deviation depth from the VWAP. ▸ Dark line through the middle — the anchored VWAP itself. ▸ Fine ticks along the band edges — per-bar buy and sell participation. ▸ Horizontal rows at the right edge — the leg's volume profile, teal for buy, red for sell. ▸ Panel — side of the VWAP, distance in σ with a position ruler, the VWAP and band levels, and the reaction statistics.
❼ HOW TO TRADE IT
1 — Read the header. Above or below the anchored VWAP is the leg's bias; the σ figure is how stretched price is right now. 2 — Check the reaction row before deciding what a band touch means. High return rate means the bands are fades. Low return rate means they are continuation. 3 — Use the VWAP as the leg's fair value. Pullbacks into it in the direction of the leg are the cleanest entries this tool produces. 4 — Use the volume profile to find where the leg actually traded. Thin rows are areas price passed through quickly and tends to pass through quickly again. 5 — Watch the anchor. A new anchor means structure turned and the previous leg's levels stopped applying.
❽ NON-REPAINTING
This is the part that separates an anchored VWAP from a rolling regression channel, and it is worth being precise about. The anchor is a CONFIRMED pivot and only ever moves forward. A VWAP is cumulative, so once a bar closes its contribution to the average is fixed forever — every band value already printed stays exactly where it is. Nothing is recalculated behind you. Every statistic is built from closed bars only.
SETTINGS
▸ Anchor — anchor mode (swing pivot, session, week, month), pivot length, minimum and maximum leg. ▸ Bands — three deviation depths, warm-up bars hidden, minimum width in ATR, display smoothing, gradient fill and VWAP line toggles. ▸ Volume Flow — texture height in ATR and thickness. ▸ Volume Profile — rows, width, thickness, seam and outline toggle. ▸ Band Reaction — which band counts as a touch, the reaction window, optional touch markers. ▸ Visuals — candle colouring, anchor marker, dashboard position.
ALERTS — upper band touch, lower band touch, VWAP reclaimed, VWAP lost, and new anchor. All fire on closed bars only.
WHY THESE PARTS ARE ONE SCRIPT
They describe one object at four resolutions. The anchor defines the leg; the standard deviation bands measure dispersion inside it; the flow and the volume profile show where its volume actually went; and the reaction statistics say whether that structure is being respected. Take the anchor away and the VWAP averages a period nobody traded as a unit. Take the profile away and the bands float above an unknown distribution. Take the statistics away and the bands become decoration you have to interpret by feel. None of them stands alone, which is why they ship together.
Works on any symbol with volume — forex, metals, indices, crypto and stocks — on intraday and higher timeframes alike. Symbols without real volume data will report a flat profile.
This indicator is an educational market-analysis tool, not financial advice. The reaction statistics describe the recorded historical behaviour of the current leg on the loaded chart; past behaviour does not predict future results. Always confirm with your own analysis and manage your risk. Indicator

Dynamic Visible AVWAPDynamic Visible AVWAP is a visible-range anchored VWAP tool designed to help traders read active price interaction with important visible swing areas.
The script automatically anchors AVWAP lines from the highest high and/or lowest low inside the currently visible chart range. This makes the tool dynamic: when the visible chart area changes, the anchors are recalculated from the new visible range.
Additional AVWAPs can be enabled with the AVWAP Count setting. When more than one AVWAP is selected, the script adds extra anchors from the next valid swing highs or swing lows. This allows multiple AVWAP references to be displayed at the same time, creating a clearer view of potential confluence zones.
Main features:
Dynamic AVWAP based on the currently visible chart range
Long, Short, or All display modes
Optional multiple AVWAPs per side
Optional deviation channels around each AVWAP
Optional channel fill
Separate style controls for AVWAP lines, channels, arrows, and anchor text
Optional anchor arrows and custom anchor label text
Adjustable text size for anchor labels
Optimized line budgeting to keep the script stable when multiple AVWAPs are displayed
How it can be used:
Dynamic Visible AVWAP can help identify areas where price is interacting with volume-weighted mean levels from important visible swing points. These levels may be useful for context, confluence, pullback analysis, trend continuation review, or mean-reversion observation.
Important note:
The anchors are based on the currently visible chart range. If you zoom, scroll, or change the visible area of the chart, the AVWAP anchors may change because the script recalculates the highest high, lowest low, and additional swing anchors from the new visible range.
This indicator should be used together with broader market analysis, such as structure, volume, liquidity, higher-timeframe levels, and personal risk management. Indicator

Indicator

AG Pro Anchored VWAP Event Map [AGPro Series]AG Pro Anchored VWAP Event Map
Overview / What it does
AG Pro Anchored VWAP Event Map is an overlay built to organize price action around Anchored VWAP after a meaningful starting point has been defined. Instead of treating VWAP as a single static reference, this script focuses on the relationship between price and a chosen anchor, then maps how the market behaves after that anchor is established. The goal is not to forecast price, but to make post-anchor structure easier to read in a consistent visual framework.
The script supports three anchor paths: Open, Swing, and Event. Open mode can reset the anchor from a daily, weekly, or monthly opening context. Swing mode rebuilds the anchor from a confirmed pivot high or pivot low. Event mode is designed for expansion-type situations and can anchor from a range expansion, a volume spike, or a breakout impulse. This creates a flexible workflow for traders who want to study how price responds to AVWAP under different structural conditions without switching tools.
Once the anchor is set, the script plots the Anchored VWAP, builds a distance band around it, tracks reclaim and reject behavior, and summarizes the current post-anchor bias in a compact panel. The result is a clean event map that can be used to study acceptance, rejection, recovery, or continuation around an anchored reference level. It is meant to simplify interpretation, not replace market context.
A key design goal of this script is clarity. The visual package is intentionally structured so the anchor, AVWAP path, distance zone, signal labels, and bias panel can be read together without turning the chart into a dense signal board. In practice, that means the indicator is most useful when it is treated as a contextual decision-support tool rather than a standalone trigger engine.
Unique Edge
The main distinction of this script is that it is not built as a generic VWAP overlay. Its emphasis is on post-anchor behavior. That means the visual logic starts from the selected anchor event and then evaluates how price interacts with the anchored VWAP afterward. In other words, the anchor is not only a starting point for the line itself; it is the center of the script's interpretation model.
Another differentiator is the combination of multiple anchor sources within one workflow. Traders can use opening-session logic, confirmed swing logic, or event-driven logic depending on the type of market behavior they are studying. This makes the indicator suitable for different styles of chart review while keeping the interface straightforward.
The distance band adds a second layer of structure. Rather than reading only the AVWAP line, users can also see whether price is operating close to the reference, stretched around it, or reacting from the upper or lower band zone. This helps frame whether a move appears to be re-accepting the anchored average, rejecting away from it, or trading in a more extended state.
The script also tries to keep the signal layer readable through selective label logic. Reclaim and reject markers are not intended to flood the chart. They are there to mark notable interactions with the anchored framework, while the panel provides a compact summary of the active anchor, current bias, distance, and latest signal state.
Methodology
The script begins by defining an anchor source. In Open mode, the anchor can be tied to a daily, weekly, or monthly opening transition. In Swing mode, the script waits for a confirmed pivot high or pivot low based on the selected swing length. In Event mode, the anchor is created only when a qualifying market event appears according to the selected event model.
For event-based anchoring, the script can use one of three internal conditions. Range Expansion looks for directional range behavior relative to ATR and recent structure. Volume Spike looks for directional participation with higher-than-average volume and a meaningful candle body fraction. Breakout Impulse looks for directional movement through recent extremes with supportive range and volume characteristics. These are practical anchor candidates for traders who want the AVWAP to begin from a meaningful change in behavior rather than from a calendar reset.
After the anchor is created, the script calculates Anchored VWAP using cumulative price-volume data relative to that anchor point. From there, it builds a distance band around the AVWAP. The band can be defined by ATR or percentage mode, depending on whether the user prefers a volatility-based or proportional framework.
Post-anchor bias is then derived from a simple internal score. The script evaluates whether price is above or below AVWAP, whether the AVWAP slope is improving or weakening, and whether price is trading beyond the distance band. This produces a practical Bullish, Bearish, or Neutral state. The intention is not to compress market structure into a perfect score, but to provide a compact directional read that can be used alongside the chart.
Reclaim and reject logic is based on how price interacts with the AVWAP and the surrounding band after the anchor is active. A reclaim highlights price moving back through the anchored reference with confirmation, while a reject highlights failure or pushback behavior around the band area. These events are intended as structural observations rather than guaranteed trade setups.
Signals & Alerts
The script includes reclaim and reject signal logic for both directions. These labels are designed to call attention to notable interactions with the anchored framework after the selected anchor becomes active. In practical use, reclaim behavior can be interpreted as a sign that price is attempting to re-establish acceptance relative to AVWAP, while reject behavior can suggest rejection away from the mapped zone.
Because market structure can become noisy, the script also includes signal spacing and density controls to reduce repetitive label clutter. This is especially relevant when anchored conditions remain active for long periods and price repeatedly tests the same area. The goal is to preserve readability while still marking relevant interactions.
Alert conditions are included for bullish reclaim, bearish reclaim, bullish reject, bearish reject, and a broader any-signal state. These alerts are deterministic within the script's ruleset, but they should still be used as workflow tools rather than interpreted as self-sufficient trading instructions.
Key Inputs
Anchor Source:
Choose whether the indicator should anchor from Open, Swing, or Event logic.
Open Anchor Type:
In Open mode, select daily, weekly, or monthly opening context.
Swing Length:
Controls how confirmed pivot highs and lows are detected in Swing mode.
Event Type:
In Event mode, choose between Range Expansion, Volume Spike, or Breakout Impulse as the anchor trigger model.
Event Lookback / Multipliers / Cooldown:
These inputs control how strict the event selection becomes and how frequently new event anchors can appear.
Band Mode:
Switch between ATR-based and percentage-based distance bands.
ATR Band Multiplier / Percent Band:
Define the width of the distance zone around Anchored VWAP.
Signal Density:
Helps regulate how aggressively reclaim and reject labels are displayed.
Panel and Label Size:
Allows the visual layout to remain readable across different chart styles and screen sizes.
Show Anchor Label / Show Anchor Level / Show Bias Ribbon:
These toggles control the visibility of anchor-focused visual elements and optional bias coloring.
Limitations & Transparency
This script is an interpretation aid. It does not identify the single correct anchor for all market environments. Different anchor choices can lead to different AVWAP paths, different reclaim or reject readings, and different conclusions. That is normal, and it is one of the reasons the script provides multiple anchor modes.
Event-based anchors depend on internal threshold logic such as ATR expansion, volume conditions, and breakout behavior. On some symbols or timeframes, those filters may trigger more frequently or less frequently than expected. Users may need to adjust event sensitivity and band settings to fit the market they are analyzing.
Reclaim and reject states are rule-based. They are not a guarantee of continuation, reversal, or follow-through. In sideways conditions, repeated AVWAP interactions can occur without producing a sustained directional move. The script can help organize those interactions visually, but it cannot remove market uncertainty.
The post-anchor bias is intentionally simplified. It is designed for readability, not for complete market classification. It should be read together with broader price structure, higher-timeframe context, liquidity conditions, and user-defined execution rules.
Risk Disclosure
This indicator is for chart analysis and workflow support. It does not provide financial advice, investment advice, or guaranteed outcomes. Markets involve risk, and any trading or investing decision remains the sole responsibility of the user.
No indicator can remove uncertainty from live markets. Anchored VWAP, reclaim behavior, reject behavior, and bias states are analytical references only. They should be validated with independent judgment, risk management, and broader market context before being used in any decision-making process.
Use this script as a structured visualization tool, not as a promise of performance or a substitute for disciplined trade planning.
Indicator

HTA - OPENHTA - OPEN (Opening Ranges & AVWAPs)
Release Notes (Latest Update):
Name Change: Simplified indicator name to HTA - OPEN.
New Asia Session: Added the Asia Opening Range and Start of Asia Session AVWAP (Defaulted to 18:00 EST to align with the CME Globex futures open).
"Extend Lines" Toggle: Added the ability to choose whether your opening range lines extend infinitely across the chart, or if they automatically stop drawing when the session ends to keep your chart clean.
UI Overhaul: Completely reorganized the settings menu. Session AVWAPs are now cleanly grouped together, and default color opacities have been optimized for better visibility.
About HTA - OPEN
The HTA - OPEN indicator is an all-in-one intraday tool designed to automatically map out key liquidity periods, session opening ranges, and dynamic volume-weighted average prices (AVWAPs). It is built to keep your charts clean while providing critical levels for the New York, London, and Asia sessions.
Key Features:
1. Automated Opening Ranges
The script automatically draws the high and low of the opening minutes for major sessions. Each session is highly customizable, allowing you to change line styles, colors, fill opacity, and toggle text labels.
New York Session: 09:30 - 09:45 EST
Asia / Globex Session: 18:00 - 18:15 EST
London Session: 03:00 - 03:15 EST
Day Initial Balance: 09:30 - 10:30 EST
2. Session AVWAPs
Automatically anchors a VWAP to the exact start time of your selected sessions, providing a dynamic gauge of intraday trend and institutional average price.
Start of New York Session AVWAP
Start of London Session AVWAP
Start of Asia Session AVWAP
Previous Day's New York Open AVWAP
3. Macro & Day AVWAPs
For broader market context, the indicator can seamlessly plot Higher Timeframe AVWAPs without needing to manually anchor them.
Day AVWAPs: Start of Day, High of Day, Low of Day.
Macro AVWAPs: Start of Month, Start of Year, High of Year.
Customization & Display:
Every range and AVWAP can be toggled on or off individually. The new "Extend Lines" feature gives you complete control over how much historical data remains visible on your chart, ensuring your workspace only shows the data you need for the current session. Indicator

Indicator

Indicator

Indicator

ORBs, EMAs, SMAs, AVWAPThis is an update to a previously published script. In short the difference is the added capability to adjust the length of EMAs. Also added 3 customizable SMAs. Enjoy! Let me know what you think of the script please. This is only second one I have ever done. Through practice and people like @LuxAlgo and other Pinescripters this isn't possible. Tedious hrs with ChatGPT to correct nuances, who doesnt seem to learn from (insert pronoun) mistakes
This all-in-one indicator combines key institutional tools into a unified framework for intraday and swing trading. Designed for traders who use multi-session analysis and dynamic levels, it automatically maps out global session breakouts, moving averages, and volume-weighted anchors with high clarity.
Features include:
🕓 Tokyo, London, and New York ORBs (Opening Range Breakouts) — 30-minute configurable range boxes that persist until the next New York open.
📈 Anchored VWAP with Standard Deviation Bands — dynamically anchorable to session, week, or month for institutional-grade price tracking.
📊 Exponential Moving Averages (9, 20, 113, 200) — for short-, mid-, and long-term momentum structure.
📉 Simple Moving Averages (20, 50, 100) — fully customizable lengths, colors, and visibility toggles for trend confirmation.
🏁 Prior High/Low Levels (PDH/PDL, PWH/PWL, PMH/PML) — automatically plotted from previous day, week, and month, with labels placed at each session’s midpoint.
🎛️ Session-Aligned Time Logic — all time calculations use New York session anchors with DST awareness.
💡 Clean Visualization Options — every component can be toggled on/off, recolored, or customized for your workflow.
Best used for:
ORB break-and-retest setups
VWAP and EMA rejections
Confluence-based trading around key session levels
Multi-session momentum tracking Indicator

ORBs, EMAs, AVWAPThis Pine Script (version 6) is a multi-session trading indicator that combines Opening Range Breakouts (ORBs), Exponential Moving Averages (EMAs), and an Anchored VWAP (AVWAP) system — all in one overlay script for PulseWire.
Here’s a clear breakdown of its structure and functionality:
🕒 1. Session Logic and ORB Calculation
Purpose: Identify and plot the high and low of the first 30 minutes (default) for the Tokyo, London, and New York trading sessions.
Session Anchors (NY time):
Tokyo → 20:00
London → 03:00
New York → 09:30
(All configurable in inputs.)
ORB Duration: Default is 30 minutes (orbDurationMin), also user-configurable.
Resets:
London and NY ORBs reset at the start of each new New York trading day (17:00 NY time).
Tokyo ORB resets independently using a stored timestamp.
Process:
For each session:
While the time is within the ORB window, the script captures the session’s high and low.
Once the window closes, those levels remain plotted until reset.
Plot Colors:
Tokyo → Yellow (#fecc02)
London → Gray (#8c9a9c)
New York → Magenta (#ff00c8)
These form visible horizontal lines marking the prior session ranges — useful for breakout or retest trading setups.
📈 2. EMA System
Purpose: Provide trend and dynamic support/resistance guidance.
It calculates and plots four EMAs:
EMA Period Color Purpose
EMA 9 Short-term Green Fast signal
EMA 20 Short-term Red Confirms direction
EMA 113 Medium Aqua Trend filter
EMA 200 Long-term Orange Macro trend baseline
Each EMA is plotted directly on the price chart for visual confluence with ORB and VWAP levels.
⚖️ 3. Anchored VWAP (AVWAP)
Purpose: Display a volume-weighted average price anchored to specific timeframes or events, optionally with dynamic deviation or percentage bands.
Features:
Anchor Options:
Time-based: Session, Week, Month, Quarter, Year, Decade, Century
Event-based: Earnings, Dividends, Splits
VWAP resets when the chosen anchor condition is met (e.g., new month, new earnings event, etc.).
Bands:
Up to three levels of symmetric upper/lower bands.
Choose between Standard Deviation or Percentage-based widths.
Display Toggles:
Each band’s visibility is optional.
VWAP can be hidden on 1D+ timeframes (hideonDWM option).
Color Scheme:
VWAP: Fuchsia (magenta-pink) line
Bands: Green / Olive / Teal with light-filled zones
⚙️ 4. Technical Highlights
Uses ta.vwap() with built-in band calculations.
Handles instruments with or without volume (errors if missing volume).
Uses time-zone aware timestamps (timestamp(NY_TZ, …)).
Uses timeframe.change() to detect new anchors for the VWAP.
Employs persistent variables (var) to maintain session state across bars.
💡 In Practice
This indicator is designed for multi-session intraday traders who:
Trade Tokyo, London, or NY open breakouts or retests.
Use EMA stacking and crossovers for trend confirmation.
Use Anchored VWAP as a fair-value or mean-reversion reference.
Need clear visual structure across different market sessions.
It provides strong session separation, trend context, and volume-weighted price reference — making it ideal for discretionary or semi-systematic trading strategies focused on liquidity zones and session momentum. Indicator

Indicator

Indicator

Structural Liquidity Signals [BullByte]Structural Liquidity Signals (SFP, FVG, BOS, AVWAP)
Short description
Detects liquidity sweeps (SFPs) at pivots and PD/W levels, highlights the latest FVG, tracks AVWAP stretch, arms percentile extremes, and triggers after confirmed micro BOS.
Full description
What this tool does
Structural Liquidity Signals shows where price likely tapped liquidity (stop clusters), then waits for structure to actually change before it prints a trigger. It spots:
Liquidity sweeps (SFPs) at recent pivots and at prior day/week highs/lows.
The latest Fair Value Gap (FVG) that often “pulls” price or serves as a reaction zone.
How far price is stretched from two VWAP anchors (one from the latest impulse, one from today’s session), scaled by ATR so it adapts to volatility.
A “percentile” extreme of an internal score. At extremes the script “arms” a setup; it only triggers after a small break of structure (BOS) on a closed bar.
Originality and design rationale, why it’s not “just a mashup”
This is not a mashup for its own sake. It’s a purpose-built flow that links where liquidity is likely to rest with how structure actually changes:
- Liquidity location: We focus on areas where stops commonly cluster—recent pivots and prior day/week highs/lows—then detect sweeps (SFPs) when price wicks beyond and closes back inside.
- Displacement context: We track the last Fair Value Gap (FVG) to account for recent inefficiency that often acts as a magnet or reaction zone.
- Stretch measurement: We anchor VWAP to the latest N-bar impulse and to the Daily session, then normalize stretch by ATR to assess dislocation consistently across assets/timeframes.
- Composite exhaustion: We combine stretch, wick skew, and volume surprise, then bend the result with a tanh transform so extremes are bounded and comparable.
- Dynamic extremes and discipline: Rather than triggering on every sweep, we “arm” at statistical extremes via percent-rank and only fire after a confirmed micro Break of Structure (BOS). This separates “interesting” from “actionable.”
Key concepts
SFP (liquidity sweep): A candle briefly trades beyond a level (where stops sit) and closes back inside. We detect these at:
Pivots (recent swing highs/lows confirmed by “left/right” bars).
Prior Day/Week High/Low (PDH/PDL/PWH/PWL).
FVG (Fair Value Gap): A small 3‑bar gap (bar2 high vs bar1 low, or vice versa). The latest gap often acts like a magnet or reaction zone. We track the most recent Up/Down gap and whether price is inside it.
AVWAP stretch: Distance from an Anchored VWAP divided by ATR (volatility). We use:
Impulse AVWAP: resets on each new N‑bar high/low.
Daily AVWAP: resets each new session.
PR (Percentile Rank): Where the current internal score sits versus its own recent history (0..100). We arm shorts at high PR, longs at low PR.
Micro BOS: A small break of the recent high (for longs) or low (for shorts). This is the “go/no‑go” confirmation.
How the parts work together
Find likely liquidity grabs (SFPs) at pivots and PD/W levels.
Add context from the latest FVG and AVWAP stretch (how far price is from “fair”).
Build a bounded score (so different markets/timeframes are comparable) and compute its percentile (PR).
Arm at extremes (high PR → short candidate; low PR → long candidate).
Only print a trigger after a micro BOS, on a closed bar, with spacing/cooldown rules.
What you see on the chart (legend)
Lines:
Teal line = Impulse AVWAP (resets on new N‑bar extreme).
Aqua line = Daily AVWAP (resets each session).
PDH/PDL/PWH/PWL = prior day/week levels (toggle on/off).
Zones:
Greenish box = latest Up FVG; Reddish box = latest Down FVG.
The shading/border changes after price trades back through it.
SFP labels:
SFP‑P = SFP at Pivot (dotted line marks that pivot’s price).
SFP‑L = SFP at Level (at PDH/PDL/PWH/PWL).
Throttle: To reduce clutter, SFPs are rate‑limited per direction.
Triggers:
Triangle up = long trigger after BOS; triangle down = short trigger after BOS.
Optional badge shows direction and PR at the moment of trigger.
Optional Trigger Zone is an ATR‑sized box around the trigger bar’s close (for visualization only).
Background:
Light green/red shading = a long/short setup is “armed” (not a trigger).
Dashboard (Mini/Pro) — what each item means
PR: Percentile of the internal score (0..100). Near 0 = bullish extreme, near 100 = bearish extreme.
Gauge: Text bar that mirrors PR.
State: Idle, Armed Long (with a countdown), or Armed Short.
Cooldown: Bars remaining before a new setup can arm after a trigger.
Bars Since / Last Px: How long since last trigger and its price.
FVG: Whether price is in the latest Up/Down FVG.
Imp/Day VWAP Dist, PD Dist(ATR): Distance from those references in ATR units.
ATR% (Gate), Trend(HTF): Status of optional regime filters (volatility/trend).
How to use it (step‑by‑step)
Keep the Safety toggles ON (default): triggers/visuals on bar‑close, optional confirmed HTF for trend slope.
Choose timeframe:
Intraday (5m–1h) or Swing (1h–4h). On very fast/thin charts, enable Performance mode and raise spacing/cooldown.
Watch the dashboard:
When PR reaches an extreme and an SFP context is present, the background shades (armed).
Wait for the trigger triangle:
It prints only after a micro BOS on a closed bar and after spacing/cooldown checks.
Use the Trigger Zone box as a visual reference only:
This script never tells you to buy/sell. Apply your own plan for entry, stop, and sizing.
Example:
Bullish: Sweep under PDL (SFP‑L) and reclaim; PR in lower tail arms long; BOS up confirms → long trigger on bar close (ATR-sized trigger zone shown).
Bearish: Sweep above PDH/pivot (SFP‑L/P) and reject; PR in upper tail arms short; BOS down confirms → short trigger on bar close (ATR-sized trigger zone shown).
Settings guide (with “when to adjust”)
Safety & Stability (defaults ON)
Confirm triggers at bar close, Draw visuals at bar close: Keep ON for clean, stable prints.
Use confirmed HTF values: Applies to HTF trend slope only; keeps it from changing until the HTF bar closes.
Performance mode: Turn ON if your chart is busy or laggy.
Core & Context
ATR Length: Bigger = smoother distances; smaller = more reactive.
Impulse AVWAP Anchor: Larger = fewer resets; smaller = resets more often.
Show Daily AVWAP: ON if you want session context.
Use last FVG in logic: ON to include FVG context in arming/score.
Show PDH/PDL/PWH/PWL: ON to see prior day/week levels that often attract sweeps.
Liquidity & Microstructure
Pivot Left/Right: Higher values = stronger/rarer pivots.
Min Wick Ratio (0..1): Higher = only more pronounced SFP wicks qualify.
BOS length: Larger = stricter BOS; smaller = quicker confirmations.
Signal persistence: Keeps SFP context alive for a few bars to avoid flicker.
Signal Gating
Percent‑Rank Lookback: Larger = more stable extremes; smaller = more reactive extremes.
Arm thresholds (qHi/qLo): Move closer to 0.5 to see more arms; move toward 0/1 to see fewer arms.
TTL, Cooldown, Min bars and Min ATR distance: Space out triggers so you’re not reacting to minor noise.
Regime Filters (optional)
ATR percentile gate: Only allow triggers when volatility is at/above a set percentile.
HTF trend gate: Only allow longs when the HTF slope is up (and shorts when it’s down), above a minimum slope.
Visuals & UX
Only show “important” SFPs: Filters pivot SFPs by Volume Z and |Impulse stretch|.
Trigger badges/history and Max badge count: Control label clutter.
Compact labels: Toggle SFP‑P/L vs full names.
Dashboard mode and position; Dark theme.
Reading PR (the built‑in “oscillator”)
PR ~ 0–10: Potential bullish extreme (long side can arm).
PR ~ 90–100: Potential bearish extreme (short side can arm).
Important: “Armed” ≠ “Enter.” A trigger still needs a micro BOS on a closed bar and spacing/cooldown to pass.
Repainting, confirmations, and HTF notes
By default, prints wait for the bar to close; this reduces repaint‑like effects.
Pivot SFPs only appear after the pivot confirms (after the chosen “right” bars).
PD/W levels come from the prior completed candles and do not change intraday.
If you enable confirmed HTF values, the HTF slope will not change until its higher‑timeframe bar completes (safer but slightly delayed).
Performance tips
If labels/zones clutter or the chart lags:
Turn ON Performance mode.
Hide FVG or the Trigger Zone.
Reduce badge history or turn badge history off.
If price scaling looks compressed:
Keep optional “score”/“PR” plots OFF (they overlay price and can affect scaling).
Alerts (neutral)
Structural Liquidity: LONG TRIGGER
Structural Liquidity: SHORT TRIGGER
These fire when a trigger condition is met on a confirmed bar (with defaults).
Limitations and risk
Not every sweep/extreme reverses; false triggers occur, especially on thin markets and low timeframes.
This indicator does not provide entries, exits, or position sizing—use your own plan and risk control.
Educational/informational only; no financial advice.
License and credits
© BullByte - MPL 2.0. Open‑source for learning and research.
Built from repeated observations of how liquidity runs, imbalance (FVG), and distance from “fair” (AVWAPs) combine, and how a small BOS often marks the moment structure actually shifts. Indicator

Indicator

The Great Anchors: Dual AVWAP Powered by RSI
The Great Anchors
*Dual Anchored Volume Weighted Average Price Powered by RSI*
---
📌 Overview
The Great Anchors is a dual AVWAP-based indicator that resets dynamically using RSI extremes — either from the current asset or a master symbol (e.g., BTCUSDT). It identifies meaningful shifts in price structure and momentum using these "anchored" levels.
It’s designed to help traders spot trend continuations, momentum inflection points, and entry signals aligned with overbought/oversold conditions — but only when the market confirms through volume-weighted price direction.
---
🛠 Core Logic
• AVWAP 1 (favwap): Anchored when RSI reaches overbought levels (top anchor)
• AVWAP 2 (savwap): Anchored when RSI reaches oversold levels (bottom anchor)
• AVWAPs are recalculated each time a new OB/OS condition is triggered — acting like "fresh anchors" at key market turning points.
---
⚙️ Key Features
🔁 Auto or Manual RSI Thresholds
→ Automatically determines dynamic RSI OB/OS levels based on past peaks and troughs, or lets you set fixed levels.
🧠 Master Symbol Control
→ Use the RSI of a separate asset (like BTCUSDT, ETHUSDT, SOLUSDT, BNBUSDT, SUPRAUSDT) or indices (like TOTAL, TOTAL2, BFR) to control resets — ideal for tracking how BTC/major coins impacts altcoins/others.
🔍 Trend-Filtering Signal Logic
→ Signals are filtered for less noise and are triggered when:
- Both AVWAPs are rising (bullish) or falling (bearish)
- Price action confirms the structure
🎯 Visual Markers & Alerts
→ "💥" for bullish signals and "🔥" for bearish ones. Alerts included for automation or push notifications.
---
🎯 How to Use It
1. Add the indicator to your chart.
2. Choose whether to use RSI from the current symbol or a master symbol (e.g., BTC).
3. Select auto-adjusted or manual OB/OS levels.
4. Watch for:
- AVWAP(s) making a significant change (at this point it's one of the AVWAPs resetting)
- Check if price flip it upwards or downwards
- If price goes above both AVWAPs thats a likely bullish trend
- If price can't go above both AVWAPs up and fall bellow both that's a likely bearish trend
- Price retesting upper AVWAP and bounce
- likely bullish continuation
- Price retesting lower AVWAP and dip
- likely bearish continuation
- Signal icons on chart ("💥 - Bullish" or "🔥- Bearish")
Best suited for:
• Swing traders
• Momentum traders
• Traders timing altcoin entries using BTC/Major asset's RSI
---
🔔 Signal Explanation
💥 Bullish Signal =
• Both AVWAPs rising
• Higher lows in price structure
• Bullish candle close
• Triggered from overbought RSI reset
🔥 Bearish Signal =
• Both AVWAPs falling
• Lower highs in price structure
• Bearish candle close
• Triggered from oversold RSI reset
Signals reset by opposite signals to prevent noise or overfitting.
---
⚠️ Tips & Notes
• Use AVWAPs as dynamic support/resistance, even without signal triggers
• Pair with volume or divergence tools for stronger confirmation
---
🧩 Credits & Philosophy
This tool is built with a simple philosophy:
"Anchor your trades to meaningful moments in price — not arbitrary time."
The dual AVWAP concept helps you see how price reacts after momentum peaks, giving you a cleaner bias and more precise trade setups.
--- Indicator

My auto dual avwap with Auto swing low/pivot low finderWelcome to My Auto Dual AVWAP with Auto Swing Low/Pivot Low Finder – an open-source PulseWire indicator designed to enhance your technical analysis toolbox. This indicator is published under the Mozilla Public License 2.0 and is available for anyone to study, modify, and distribute.
Key Features
Auto Pivot/Swing Low Finder:
In addition to VWAP lines, the indicator incorporates an automatic detection mechanism for swing lows/pivot lows. This feature assists in identifying potential support areas and price reversals, further enhancing your trading strategy.
Dual VWAP Calculation with high/low range:
The indicator calculates two separate volume-weighted average price (VWAP) lines based on different price inputs (low and high prices) and defined time sessions. This allows traders to gain a more nuanced view of market activity during specific trading periods.
Customizable Time Sessions:
You can specify distinct start and end times for each VWAP calculation session. This flexibility helps you align the indicator with your preferred trading hours or market sessions, making it adaptable to various time zones and trading styles.
Easy to Customize:
With clear code structure and detailed comments, the script is designed to be accessible even for traders who want to customize or extend its functionality. Whether you're a seasoned coder or just starting out, the code is written with transparency in mind.
How It Works
Session Initialization:
The script sets up two distinct time sessions using user-defined start and end times. For each session, it detects the beginning of the trading period to reset cumulative values.
Cumulative Calculations:
During each session, the indicator accumulates the product of price and volume as well as the total volume. The VWAP is then computed as the ratio of these cumulative values.
Dual Data Sources:
Two separate data inputs (using low and high prices) are used to calculate two VWAP lines. This dual approach provides a broader perspective on market trends and can help in identifying dynamic support and resistance levels.
Visualization:
The calculated VWAP lines are plotted directly on your chart with distinct colors and thickness settings for easy visualization. This makes it simple to interpret the data at a glance.
Why Use This Indicator?
Whether you are a day trader, swing trader, or simply looking to refine your market analysis, My Auto Dual AVWAP with Auto Swing Low/Pivot Low Finder offers a robust set of features that can help you identify key price levels and improve your decision-making process. Its open-source nature invites collaboration and customization, ensuring that you can tailor it to fit your unique trading style.
Feel free to explore, modify, and share this indicator. Happy trading! Indicator

DIN: Dynamic Trend NavigatorDIN: Dynamic Trend Navigator
Overview
The Dynamic Trend Navigator script is designed to help traders identify and capitalize on market trends using a combination of Weighted Moving Averages (WMA), Volume Weighted Average Price (VWAP), and Anchored VWAP (AVWAP). The script provides customizable settings and flexible alerts for various crossover conditions, enhancing its utility for different trading strategies.
Key Features
- **1st and 2nd WMA**: Allows users to set and visualize two Weighted Moving Averages. These can be customized to any period, providing flexibility in trend identification.
- **VWAP and AVWAP**: Incorporates both VWAP and AVWAP, offering insights into price levels adjusted by volume.
- **ATR and ADX Indicators**: Includes the Average True Range (ATR) and Average Directional Index (ADX) to help assess market volatility and trend strength.
- **Flexible Alerts**: Configurable buy and sell alerts for any crossover condition, making it versatile for various trading strategies.
How to Use the Script
1. **Set the WMA Periods**: Customize the periods for the 1st and 2nd WMAs to suit your trading strategy.
2. **Enable VWAP and AVWAP**: Choose whether to include VWAP and AVWAP in your analysis by enabling the respective settings.
3. **Configure Alerts**: Set up alerts for the desired crossover conditions (WMA, VWAP, AVWAP) to receive notifications for potential trading opportunities.
4. **Monitor Signals**: Watch for buy and sell signals indicated by triangle shapes on the chart, which appear at the selected crossover points.
When to Use
- **Best Time to Use**: The script is most effective in trending markets where price movements are well-defined. It helps traders stay on the right side of the trend and avoid false signals during periods of low volatility.
- **When Not to Use**: Avoid using the script in choppy or sideways markets where price action lacks direction. The script may generate false signals in such conditions, leading to potential losses.
Benefits of VWAP and AVWAP
- **VWAP**: The Volume Weighted Average Price provides a price benchmark that adjusts for volume, helping traders identify fair value levels. It is particularly useful for intraday trading and gauging market sentiment.
- **AVWAP**: The Anchored VWAP allows traders to set a starting point for VWAP calculations, providing flexibility in analyzing price levels over specific periods or events. This helps in identifying key support and resistance levels based on volume.
Unique Aspects
- **Customizability**: The script offers extensive customization options for WMA periods, VWAP, AVWAP, and alert conditions, making it adaptable to various trading strategies.
- **Combining Indicators**: By integrating WMAs, VWAP, AVWAP, ATR, and ADX, the script provides a comprehensive view of market conditions, enhancing decision-making.
- **Real-Time Alerts**: The flexible alert system ensures traders receive timely notifications for potential trade setups, improving responsiveness to market changes.
Examples
- **Example 1**: A trader sets the 1st WMA to 8 and the 2nd WMA to 100, enabling the VWAP. When the 1st WMA crosses above the 2nd WMA or VWAP, a buy signal is triggered, indicating a potential long entry.
- **Example 2**: A trader sets the AVWAP to start 30 bars ago and monitors for crossovers with the 1st WMA. When the 1st WMA crosses below the AVWAP, a sell signal is triggered, suggesting a potential short entry.
Final Notes
The Dynamic Trend Navigator script is a powerful tool for traders looking to enhance their market analysis and trading decisions. Its unique combination of customizable indicators and flexible alert system sets it apart from other scripts, making it a valuable addition to any trader's toolkit.
Disclaimer: Never any financial advice. Just ThisGirl loving experimenting with indicators to help myself, as well as others. Indicator

Three Anchored Moving Averages (VWAP / SMA / EMA)
This indicator allows users to anchor three types of moving averages (Simple Moving Average (SMA), Exponential Moving Average (EMA), and Volume Weighted Average Price (VWAP)) to specific points in time (anchor points)
Key Features:
Select from three Moving Average Types:
Simple Moving Average (SMA): Averages the closing prices over a specified period.
Exponential Moving Average (EMA): Gives more weight to recent prices, making it more responsive to new information.
Volume Weighted Average Price (VWAP): Averages the price weighted by volume, useful for understanding the average price at which the asset has traded over a period.
Up to Three Anchor Points:
Users can set up to three different anchor points to calculate the moving averages from specific dates and times. This allows for analysis of price action starting from significant points or specific events. For example, you can anchor to the low and high of a move to identify key levels or to points where the price takes off from a previous anchored MA.
Customisable Sentiment Options:
Each anchor point can be associated with a sentiment input (Auto, Bull, Bear, None), which influences if the MAs are displayed as lines or zones/bands:
Auto: Automatically determines the sentiment based on whether anchor points are on pivot highs and lows. If anchored to a pivot high, the system will assume a bearish sentiment and display a red band or zone between the MA OHLC4 and High. Anchoring to a pivot low will display a green band (OHLC4 - Low).
Bull: Forces a bullish sentiment (Green Band - OHLC4 to Low)
Bear: Forces a bearish sentiment (Red Band - OHLC4 to High)
None: Ignores sentiment and displays a single line (OHLC4)
Chart Matching:
The indicator includes an option to display the moving averages only if the chart symbol matches a specified ticker. This feature ensures that the indicator is relevant to the specific asset being analysed.
How to Use the Indicator:
1. Set Anchor Points: When added to your chart, select three anchor points by point and click. If you only wish to anchor to a single point, click on that point three times and disable the other two in settings once the indicator is applied.
2. Select Moving Average Type: Choose between SMA, EMA, or VWAP using the dropdown menu. EMAs are the most responsive.
3. Enable/Disable Anchor Points: Use the checkboxes to enable or disable each anchor point.
4. Select Sentiment Type: Choose between Auto, Bull, Bear, or None.
5. Chart Matching: Optionally, specify a chart symbol to restrict the indicator's display to that particular asset.
6. Interpret the Plots: The indicator plots the high, mid, and low values of the selected moving average type from each anchor point. The fills between these plots help identify potential support and resistance zones. These should be used as points of interest for pullback reversals or potential continuation if the price breaks through.
Practical Applications:
Trend Analysis: Identify the overall trend direction from specific historical points.
Support and Resistance: Determine key dynamic support and resistance levels based on anchored moving averages.
Event-Based Analysis: Anchor the moving averages to significant events (e.g., earnings releases, economic data) to study their impact on price trends.
Multi Timeframe Analysis: Higher Timeframe Anchors can be used to identify longer term trend analysis. Switching to a lower timeframe for execution triggers at these points wont distort the MA levels as they are anchored to a specific point in time
Intraday or Swing Trading: trend analysis using anchor points can be used for any style of trading (Intraday / Swing / Invest). Use anchored levels as points of interest and wait for hints in price action to try and catch the next move.
Indicator

Multi-Time AVWAP_BEARConcept
Collaboration Highlight:
This was a collaboration with @Chart_School and @KioseffTrading Thank you to both, along with Ricardo Santos for his awesome library we used.
Overview
See how you view different time frame charts with one indicator and little to no adjustment.
Innovation:
The concept of using Anchored VWAP (AVWAP) with time events is a powerful technique in trading and technical analysis. Anchored VWAP differs from the traditional Volume Weighted Average Price (VWAP) by allowing traders to select a specific starting point or "anchor," from which the VWAP calculation begins. This approach is particularly useful for assessing price movements in relation to significant market events or specific periods of interest.
Utility and Flexibility:
Explaining the flexibility in turning on and off different time slices without much adjustment showcases a user-friendly design.
Key Uses and Benefits
Comparative Performance:
Anchoring the VWAP at the start of different time frames (e.g., weekly, monthly, quarterly) enables traders to compare the current price performance against previous periods. This comparison can highlight trends or shifts in trading momentum relative to past activity.
Support and Resistance Levels:
AVWAP lines can act as dynamic support and resistance levels. When anchored to significant time events, these levels gain additional relevance as they reflect the market's valuation of an asset since a notable point in time. Traders often watch for price interactions with these levels to make informed trading decisions.
Risk Management:
Anchored VWAP can serve as a benchmark for setting stop-loss orders or profit targets. By considering the price's relation to the AVWAP of a specific period or after a key event, traders can define exit points that are aligned with market-generated information.
Trend Confirmation: The direction and stability of the price relative to an anchored VWAP can indicate the strength of a trend. If the price consistently remains above an AVWAP anchored at a bullish event (or below for a bearish event), it may confirm the trend's continuation.
Further Reading
Educational Resource:
Becuase we are using Volume with a relation to price AVWAP is very powerful to show data that cannot be eye balled on its own. Brian Shannon's book "Maximum Trading Gains With Anchored VWAP - The Perfect Combination of Price, Time & Volume", is an excellent guide to best practices on how to use AVWAP to your advatage while trading. His book goes into depth about the best way to use this indicator to its fullest potencial.
Tips for Using This Indicator
Weekly / Monthly / Quarterly Settings:
All the settings for the lower timeframe charts are similar. Here is an example of seeing a Weekly AVWAP for 6 weeks, showing:
1. The start of the 6-week AVWAP is using a High Low Close source for the first candle of the 6 weeks.
2. The lines are colored "Red" for the AVWAPs.
3. The line thickness is "1".
Yearly Settings
Simlair to the other settings with the Yearly we give you a couple more options along with 3 years to toggle on and off. The idea was to allow the user to see which AVWAP most effected by price and quickly toggle them on and off to unclutter their chart.
Watch for how and if the labels over lap and choose the one you feel is most in play. In Shannon's Book he talks about "Hand off's" and "Pinches". These concepts are easy to spot with being able to see all the Major Time Events, then simply toggle off the one you dont need.
A great benefit to how we coded this script you can buzz through a watch list without having to re-adjust the Anchor points. This will save you time if following a basket of symbols and show coorlations in the overall market.
Secret Feature
When looking at these becuase the user doesn't need to hand plot the anchor points and we are fouced on major time slices, I encourge you to use the Trading View "Bar Replay" Feature. You think that you are missing a high or low AVWAP but what is happening is the indicator is re-plotting a level that is super hard to see, then you will see the hand-offs like Shannon discusses in his book. This blew me away while we were discussing it post development.
Conclusion
There are so many uses of how to use VWAP and therories on its best practice. We are only using "TIME EVENTS". For more ways to use AVWAP, I would encourge you to also handplot them with Trading View's new "Anchored VWAP", as seen in the standard toolbar.
Using your ideas along with this indicator i think its a powerful combination.
Also Check Out: allanster's - Anchored VWAP Pinch & Handoff, Intervals, and Signals
He has a great AVWAP script that incorporates many AVWAP ideas.
Indicator

Multi VWAP [MW]Introduction
The Multi VWAP tool extends the concept of using the Anchored Volume Weighted Average Price, popularized by its founder, Brian Shannon, founder of AlphaTrends, and creates automatic AVWAPS for multiple anchor points, such as for 2-day, 3-day, 4-day, 5-day, and custom date anchors as well as automagically creating month-to-date and year-to-date anchors. Currently, most standard VWAP tools allow users to place custom anchored VWAPs, but the routine of doing this for every equity being watched can become cumbersome. This tool makes that process multi-times easier. Brian Shannon is also the author of “Maximum Trading Gains With Anchored VWAP: The Perfect Combination of Price, Time, and Volume”. Available at Amazon.
Settings
Daily VWAP : A continuous line of the the daily Volume Weighted Average Price (VWAP)
Weekly VWAP : A continuous line of the weekly VWAP
2-Day AVWAP : The anchored VWAP from 2 trading days ago (holidays and weekends are excluded in this calculation)
3-Day AVWAP : The anchored VWAP from 3 trading days ago
4-Day AVWAP : The anchored VWAP from 4 trading days ago
5-Day AVWAP : The anchored VWAP from 5 trading days ago. The slope of this line and the position of the price relative to this line can be used to determine trend direction.
10-Day AVWAP : The anchored VWAP from 10 trading days ago
Month-to-Date AVWAP : The anchored VWAP from the beginning of the current month
Year-to-Date AVWAP : The anchored VWAP from the beginning of the current year
Custom Date AVWAP : Sets a date to begin an anchored VWAP starting from any time.
Use only the most recent VWAP for Week, Month, and Year: Toggles on and off the continuous weekly, monthly, and yearly VWAPs
Calculations
This indicator does not provide buy or sell signals. It is simply the VWAP calculated starting from an “anchor point”, or start time. It is the calculated by the summation of Price x Volume / Volume for the period starting at the anchor point.
How to Interpret
According to Brian Shannon, VWAP is an objective measure of what the average trader has paid for a particular equity over a given period, and is the value that large institutional investors frequently use as a trade signal. Therefore, by definition, when the price is above an AVWAP, buyers are in control for that period of time. Likewise, if the price is below the AVWAP, sellers are in control for that period of time.
Shannon also distinguishes the importance of an increasing or decreasing 5 day VWAP, which reflects the price sentiment, objectively, for roughly the last trading week, or 5 trading days. Pricing below a decreasing 5-day VWAP is considered very bearish, while pricing above an increasing 5-day VWAP is considered bullish and is recommended before considering long positions.
Additionally, a custom VWAP can be generated to coincide with important events, such as FOMC meetings, CPI reports, earnings reports, etc.
Practically speaking, price action can tend to change direction when a significant VWAP is hit, voiding buy and sell signals. Like moving averages, this indicator can show, in real-time, how a buy or sell signal should be interpreted. A significant AVWAP line is a point of interest, and can serve as strong support or resistance, because large institutions may be using those values for entries or exits. For a great analysis of how to use AVWAP, visit the AlphaTrends channel on Youtube here or you can buy Brian Shannon’s “Anchored VWAP” book on Amazon.
Other Usage Notes and Limitations
It's important for traders to be aware of the limitations of any indicator and to use them as part of a broader, well-rounded trading strategy that includes risk management, fundamental analysis, and other tools that can help with reducing false signals, determining trend direction, and providing additional confirmation for a trade decision. Diversifying strategies and not relying solely on one type of indicator or analysis can help mitigate some of these risks.
Additionally, the indicator may take a little longer to load than usual. On the rare occasion where it fails to load, you may need to remove the indicator and add it back to your chart. Also, if you do encounter this problem, avoid redrawing your chart while the indicator is being added to the screen.
Acknowledgements
This script uses the MarketHolidays library by @Protervus. Also, for debugging, the JavaScript-style Debug Console by @algotraderdev and the TimeFormattingLibrary by @twingall were invaluable. And, of course, without Brian Shannon's books, videos, and interviews, this indicator would would not be possible. Indicator

Indicator

Anchored VWAP (Auto High & Low)OVERVIEW
This script plots, and auto-updates, 3 separate VWAPs: a traditional VWAP, a VWAP anchored to a trends high, and another anchored to a trends low.
VWAP and Anchored VWAPs are commonly used by institutions responsible for the majority of market volume on a given day. Citadel Trading, for example, accounts for approximately 35% of all U.S. listed retail volume , largely executed through program trades over the course of a day, week, or month.
Because VWAP is a prominent market maker tool for executing large trades, day traders can use it to better anticipate trends, mean reversion, and breakouts.
This is most useful on charts with intraday time frames (1 minute, 5 minute etc.) commonly used for day trading. This is not ideal for larger time frames (1 hour or greater) commonly used for swing trading or identifying larger trends.
INPUTS
You can configure:
The size, color, and visibility of 6 different plots (VWAP, High Anchor, Low Anchor, Average of Anchors, Quarter Values, Interim Bands)
How smooth the average displays
INSPIRATION
1. "How To Measure Anything" by Douglas W. Hubbard
2. "Maximum Trading Gains With Anchored VWAP" by Brian Shannon
Better understanding probability and how to analyze risk (first book), as well as the tools market makers use (second book), has completely reframed how I approach day trading. Indicator

Anchored VWAP Pinch & Handoff, Intervals, and Signals"Anchored VWAP Pinch & Handoff, Intervals, and Signals" is an AVWAP toolbox for those who like to use various VWAP trading techniques. The indicator is currently comprised of the following three sections:
• The Pinch & Handoff section (shown above on chart) allows manually setting an upper and lower AVWAP (Pinch) along with an additional AVWAP (Handoff) by entering dates or by dragging the vertical anchor lines to the desired significant events on chart. Each of these three AVWAPs can also be set to show zones above and/or below by a percentage or standard deviation amount. The theory behind this method is that the upper and lower AVWAPs may act as dynamic support and resistance levels, effectively creating a price range or channel. As price moves between these two VWAP levels, it becomes squeezed or consolidated within that range. Further conjecture is that the longer the price remains within the range of the two anchored VWAP values, the higher the potential for an explosive breakout. Traders using this strategy may interpret the prolonged consolidation as a period of price compression, with the expectation that a significant move in either direction is likely to occur. Traders employing the AVWAP Pinch strategy might look for specific chart patterns or additional confirmation signals to enter a trade. For example, a breakout above the upper anchored VWAP level could trigger a long trade, while a breakdown below the lower anchored VWAP level could signal a short trade. Stop-loss orders and profit targets are typically set based on the trader's risk tolerance and the volatility of the asset. The third AVWAP (Handoff) is typically set after price has broken through the Pinch, and is used as a new level of support or resistance. The "Pinch & Handoff" phrase is believed to have been coined by Brian Shannon, who has popularized this method.
• The Intervals section (shown above on chart) is comprised of six periodic AVWAPs which cyclically reset. Their default settings are 1 Day, 2 Days, 1 Week, 1 Month, 1 Quarter, and 1 Year. They each may be set to desired period and when they are enabled the VWAPs whose periods are lower than the current chart timeframe are automatically hidden. For example a 1 Day AVWAP is not useful on a 1 Week chart so it would be hidden from that timeframe. When using AVWAPs from higher timeframes it may be helpful to set your chart to "Scale price chart only". This can be enabled by right clicking on your chart's price column and then left clicking "Scale price chart only" to enable that option.
• The Auto section (shown above on chart) is comprised of two automatic Anchored VWAPs. There are choices for setting anchors automatically based upon Highest Source, Highest Volume, Lowest Source, Lowest Volume, Pivot High, and Pivot Low. Because these two VWAPs work retroactively they are drawn with lines instead of plots. There is currently a limitation of 500 lines that may be drawn at any given time and the logic within this indicator uses a line for every bar of VWAP that is drawn, so if the combined length of both of these VWAPs exceeds 500 bars the earliest lines would disappear. For typical use of looking for the highest high in the last 50 bars or the last fractal this limitation should not be an issue.
---
All of the plots have been titled including hidden plots that are generated for the AVWAP line drawings. All of the various types of AVWAP within the indicator should be available as choices within the Alert creation dialog if use of alerts is desired.
---
NOTICE: This is an example script and not meant to be used as an actual strategy. By using this script or any portion thereof, you acknowledge that you have read and understood that this is for research purposes only and I am not responsible for any financial losses you may incur by using this script! Indicator
