Institutional Flow Sentinel [JOAT]Institutional Flow Sentinel
Introduction
Institutional Flow Sentinel is an open-source market structure tool that tracks two categories of price behavior that institutional order flow leaves behind: Fair Value Gaps and liquidity sweeps. Both concepts originate from ICT (Inner Circle Trader) methodology, but this implementation combines them into a single unified engine with a live zone lifecycle, composite state tracking, and candle coloring — none of which are standard in most published FVG or sweep tools individually.
The core insight is that large participants need liquidity to fill orders. They engineer moves through external swing highs and lows to trigger retail stop orders, collect that liquidity, then reverse. Identifying these events in real time, tracking whether the gap or sweep level has been respected or violated, and classifying the current order flow bias from those events is the purpose of this indicator.
Core Concepts
1. Fair Value Gap Detection
A Fair Value Gap is a three-candle imbalance where the middle candle's range is not overlapped by the adjacent candles. Bullish FVGs form when a candle's low is above the high two bars prior. Bearish FVGs form when a candle's high is below the low two bars prior:
bullFVG = low > high
bearFVG = high < low
Each gap is stored with its price bounds and tracked bar-by-bar. If price returns and closes inside the gap the zone is marked mitigated and drawn differently. Unmitigated gaps project forward as active imbalance reference levels.
2. Liquidity Sweep Detection
The indicator tracks pivot highs as Buyside Liquidity (BSL) and pivot lows as Sellside Liquidity (SSL). A sweep occurs when price wicks through the level but then closes back inside it — indicating the liquidity was taken and price rejected:
bslSweep = high > bslLevel and close < bslLevel
sslSweep = low < sslLevel and close > sslLevel
Sweep events are labeled on the chart and contribute to the cumulative order flow bias score.
3. Composite Bias Score
Each confirmed FVG and sweep increments or decrements a running bias counter. Bullish FVGs and bearish sweeps (stops run below, reversal up) add positive weight. Bearish FVGs and bullish sweeps add negative weight. The dashboard displays this composite score alongside the current structural bias.
4. Zone Lifecycle Management
Active FVG zones are extended bar by bar. When price mitigates a zone (closes inside it), the zone rendering switches to a dimmed style but remains visible as a historical reference. The indicator tracks the count of active unmitigated gaps on each side and displays them in the dashboard.
Features
Real-time FVG detection: Bullish and bearish imbalances identified and drawn as price-bound boxes
FVG mitigation tracking: Zones update styling when price returns into the gap
BSL and SSL level tracking: Pivot-based liquidity levels updated each bar
Sweep event labels: On-chart labels at every confirmed liquidity sweep with direction
Composite order flow bias: Running score combining FVG and sweep events
Candle coloring: Candles painted by current bias state (bullish / bearish / neutral)
Institutional dashboard: Top-right table showing active FVGs, sweep count, and bias score
All signals on confirmed bars: barstate.isconfirmed throughout — no repainting
Input Parameters
Structure Detection:
Pivot Lookback: Bars required on each side for BSL/SSL pivot confirmation (default: 5)
Max Active FVGs: Maximum simultaneous FVG zones drawn per side (default: 3)
Display:
Show FVG Zones toggle
Show Sweep Labels toggle
Show Candle Color toggle
Show Dashboard toggle
How to Use This Indicator
Step 1: Identify Active Imbalances
Unmitigated FVG boxes mark price areas where a directional move was so strong that no two-sided trading occurred. Price tends to return and fill these gaps. Use them as magnet targets or potential reversal zones.
Step 2: Watch for Sweep Events
When a sweep label appears at a prior swing level, the indicator is signaling that liquidity at that level was collected. Sweeps followed by a strong close in the opposite direction are high-probability reversal setups.
Step 3: Read the Bias Score
The composite score in the dashboard quantifies accumulated institutional signals. A strongly positive score suggests the order flow is biased bullish; strongly negative suggests bearish. Use this as a directional filter.
Indicator Limitations
FVGs form on every timeframe and many will not be mitigated; not every gap is tradeable
Sweep detection uses close-back confirmation which adds one bar of delay
The bias score is a heuristic, not a statistically validated predictor of future direction
This indicator identifies market structure events; it does not generate entry or exit signals
Originality Statement
This indicator is original in combining FVG zone lifecycle management, pivot-based liquidity sweep detection, and a composite order flow bias score into a single Pine Script v6 publication. The zone mitigation tracking system, which distinguishes between active and mitigated imbalances while keeping both visible with different rendering, is not present in most standalone FVG tools on PulseWire.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss. All signals are based on historical price data and do not guarantee future results. Always use proper risk management.
-Made with passion by jackofalltrades
Indicator

Market Structure & LiquidityMARKET STRUCTURE & LIQUIDITY — Calibrated Zones, Premium/Discount & Setup Grade
================================================================================
WHAT THIS SCRIPT IS
A single price-action framework that maps the structural read of a chart and
then measures it. It plots market structure (break of structure and change of
character), supply/demand order blocks, fair value gaps, resting liquidity
(equal highs and lows) and the sweeps that take it, premium/discount with an
optimal-entry band, a higher-timeframe bias, and a rolling volume profile. On
top of those objects it does three things most structure tools do not: it
validates every structure break, it scores each zone by confluence and quality,
and it reports — using past data on the current symbol only — how often each
zone type has actually been respected, with statistical confidence intervals.
The levels are the raw material; the framework adds a measured read of which
ones to trust.
WHY THE COMPONENTS ARE COMBINED (how the parts work together)
These are not independent indicators bolted together. They describe one process
— how large participants build positions: rest liquidity, take it, displace
price, and leave an inefficiency behind — and each layer covers a blind spot of
the others, feeding one combined decision:
- Market structure (swing and internal) gives trend context and the moment it
shifts. Because raw break detection is noisy, a break is only counted when it
shows real displacement (range expansion with body, or a volatility
compression followed by a release), closes beyond the level with body rather
than leaving a rejection wick, and breaks a tight, recent (quality) pivot.
This removes most false breaks before anything else is drawn.
- Regime context (efficiency ratio + ADX + volatility clustering + a whipsaw
score) conditions how far to trust a read: continuation breaks are reliable in
a trending regime, reversals are more reliable in a range, and a choppy regime
weights everything down. Structure on its own cannot tell you this.
- Liquidity (equal highs/lows, sweeps, and inducement) marks where stops rest
and the moment they are taken — the trigger that typically precedes a real
move, and the event that validates a nearby zone.
- Order blocks and fair value gaps mark the origin of the displacement and the
inefficiency price tends to revisit. A zone that forms on a sweep, on a
high-volume node, in the correct half of the range scores highest — which is
exactly why liquidity, the volume profile and premium/discount all feed the
zone score rather than living in separate panes.
- Volume profile (point of control, high- and low-volume nodes, and untested
"naked" points of control) tells you whether a zone sits on acceptance (tends
to hold) or on a thin gap (tends to slice), and marks magnet levels price is
drawn back toward.
- Premium/discount and the OTE band frame every zone as expensive or cheap
relative to the current dealing range, so a long in discount and a short in
premium are favoured.
- The confluence engine and setup grade fuse structure direction, a recent
sweep, zone quality, node type, premium/discount alignment, higher-timeframe
bias and a momentum-divergence confirmation into one A/B/C read per zone, so
the chart self-prioritises instead of leaving you to weigh eight things by eye.
- Calibration measures, on past bars only, how often each zone type produced a
meaningful reaction on the current symbol, and reports it with Wilson
confidence intervals — so reliability is earned per instrument, not assumed.
In one sentence: structure says direction, regime says whether to believe it,
liquidity says when, the zones say where, premium/discount says whether it is
worth it, the grade fuses them, and the calibration keeps the whole thing honest.
HOW IT WORKS (mechanics, briefly)
Pivots use the standard left/right confirmation, so structure is non-repainting:
a break is only labelled after the pivot is confirmed and the close validates it.
Order blocks anchor to the last opposing candle before a validated break, are
scored on formation, and are re-scored for confluence on the most recent bar.
Calibration records, the first time a zone is tagged, whether price then travels
a chosen ATR multiple in the zone's direction within a fixed horizon, and
aggregates that into the respect rate shown on the dashboard. All thresholds are
ATR-relative, so nothing is tied to a particular price scale.
HOW TO USE IT
1. Read the dashboard headline: the SETUP grade and the structure bias.
2. Favour higher-grade setups — a validated structure direction, a recent sweep,
a fresh high-quality zone sitting on a volume node, in discount for longs or
premium for shorts, with higher-timeframe agreement.
3. Use the OTE band for entry context and an opposing fair value gap as a
logical target.
4. Check the respect rows. If order blocks or fair value gaps rarely hold on this
symbol, weight the read down accordingly.
5. Treat everything as descriptive context, not a signal to act on.
USE ON ANY MARKET
The High / Low / Close source inputs let you drive structure, liquidity and
premium/discount from any series (standard candles, Heikin-Ashi, or another
source), so the framework applies to stocks, indices, futures, forex and crypto.
A volume-borrow input supplies volume for symbols that report none.
WHAT MAKES IT ORIGINAL
The contribution is the closed loop, not the individual objects, which are
common to price-action analysis. Here, validated structure and liquidity feed a
per-zone confluence and quality score and a single setup grade, and a past-only
calibration tracker reports each zone type's actual respect rate on the current
symbol with confidence intervals. That turns a set of drawing tools into a
measured, self-prioritising read.
SETTINGS WORTH KNOWING
- Break Validation: turn displacement, anti-wick and pivot-quality gates on/off
and tune their strictness to make structure more or less selective.
- Volume Profile / Nodes: bins, window and HVN/LVN percentiles control node
tagging; naked POC tracking is session-based and turns itself off when the
chart is not intraday.
- Confluence & Setup Grade: cluster tolerance controls how close levels must be
to count as confluent.
- Calibration: horizon and minimum reaction define what counts as a "respected"
zone.
- Visuals: theme is auto/dark/light; grade-weighted opacity makes strong zones
bold and weak ones faint; the identity strip shows the script name, symbol and
timeframe.
LIMITATIONS
Pivots confirm after the right-bars lag, so forming structure is not drawn until
confirmed. Volume layers require real or borrowed volume. Calibration describes
past behaviour only — it is not a backtest and not a probability of future
results. Every read is probabilistic context, never a certainty.
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. Markets carry risk, and the past behaviour of a level
does not assure its future behaviour. Do your own research and manage your own
risk.
Indicator

Indicator

Fair Value Gap Fill Probability [PickMyTrade]Fair Value Gap Fill Probability applies a Gaussian Naive Bayes classifier — trained entirely within Pine Script® v6 — to every Fair Value Gap it detects, in order to estimate the posterior probability that each gap will be filled before it expires. Instead of treating all FVGs as equal, it asks a different question: given this gap's order-flow signature, geometry, and the time price has already spent nearby, how likely is it to actually fill?
――――――――――――――――――――――――――――――――――――――
🔷 WHAT IT MEASURES
🔸 Fair Value Gaps
A Fair Value Gap is the three-candle imbalance where an impulsive move leaves a price range untraded. A bullish FVG forms when the high of two bars ago sits below the current low; a bearish FVG forms when the low of two bars ago sits above the current high. Each gap is detected only on confirmed bar closes and is filtered by a minimum size relative to ATR, so noise gaps are ignored.
🔸 Three classifier features
When a gap forms, the classifier records three z-score normalised features that describe its context:
F1 — CVD Momentum : the rate of change of Cumulative Volume Delta at the moment the gap is created, normalised by its rolling mean and standard deviation. This encodes whether aggressive order flow was accelerating or fading as the imbalance formed.
F2 — Gap Geometry : the size of the gap expressed as a multiple of ATR. Larger relative gaps behave differently from small ones, and this feature lets the model separate the two.
F3 — Time-at-Price : the fraction of recent bars whose close fell inside the gap's price band. A zone the market has already revisited carries different fill odds than fresh, untested space.
🔸 Fill vs no-fill outcomes
Every gap is followed until one of two things happens: price trades to the gap's midpoint (a fill ), or the gap survives past the expiry window untouched (a no-fill ). Each resolved gap becomes a labelled training example, so the model learns continuously from the chart's own history.
――――――――――――――――――――――――――――――――――――――
🔷 THE CLASSIFIER
🔸 Welford online learning
Rather than storing arrays of past gaps, the classifier keeps running sufficient statistics — count, mean and variance — for each (feature × outcome) pair using Welford's numerically stable online update. Parameters shift gradually as market conditions change, with no fixed lookback buffer.
🔸 Gaussian likelihood + Bayesian posterior
Each feature is modelled as a Gaussian distribution under both the fill and no-fill classes. The three per-feature likelihoods are multiplied under the Naive Bayes independence assumption, combined with an empirically updated class prior, and normalised via Bayes' theorem to produce P(fill | F1, F2, F3) for the live gap. A warmup gate suppresses probabilities until enough fill and no-fill samples have accumulated, at which point the info table switches to LIVE.
――――――――――――――――――――――――――――――――――――――
🔷 SIGNALS AND DISPLAY
🔸 Probability-shaded zones
Each active FVG is drawn as a translucent zone with a crisp coloured border — blue for bullish, orange for bearish. The fill intensity scales with the posterior across three tiers, so a high-conviction gap reads instantly against a faint, low-probability one. Filled gaps turn grey so mitigation is obvious.
🔸 Live probability labels
Every open gap carries a running " X% fill " label that updates each bar as the classifier re-evaluates it. When a gap clears the high-probability threshold, a bold callout (" Bullish FVG · 81% fill prob ") marks it directly on the chart.
🔸 Info table
The corner table reports the live state — fill samples, no-fill samples, active gaps, CVD flow direction, and a LIVE / WARMUP status flag so you always know whether the model has enough data to be trusted.
――――――――――――――――――――――――――――――――――――――
🔷 INPUTS
ATR Period — basis for the minimum gap-size filter.
Min Gap Size (ATR ×) — gaps smaller than this multiple of ATR are ignored.
Max Active FVGs — cap on simultaneously tracked gaps.
Expire after N bars — unfilled gaps retire as no-fill samples after this many bars.
CVD Momentum Period — lookback for feature F1.
Z-Score Window — normalisation window for all three features.
Warmup Samples Per Class — minimum fill and no-fill samples before probabilities display.
High-Prob Threshold — posterior level that marks a gap as high-conviction.
――――――――――――――――――――――――――――――――――――――
🔷 REQUIREMENTS AND LIMITATIONS
The classifier requires a warmup period before probabilities are valid; on instruments with little history the table will read WARMUP until enough gaps have resolved. The CVD estimator is synthetic — derived from intrabar price position, not true bid/ask data — and is noisier on illiquid symbols. Because all three features are CVD- and geometry-derived, the Naive Bayes independence assumption is only approximately satisfied, so the posteriors are best read as relative confidence scores rather than calibrated frequentist probabilities. Fill rates are also regime- and timeframe-dependent and are historically associated with, not predictive of, future behaviour.
――――――――――――――――――――――――――――――――――――――
Built natively in Pine Script® v6. No external libraries, no data feeds, no fixed lookback arrays. The Gaussian Naive Bayes classifier trains continuously from the chart's own gap history using Welford's online algorithm. Open source — Mozilla Public License 2.0. Indicator

Structure Fracture Map [JOAT]Structure Fracture Map is an open-source market structure and imbalance zone indicator that combines Fair Value Gap detection with a dynamic quality scoring system, a dual strength bar visualization inside each zone, and a real-time Break of Structure and Change of Character engine. It provides a single-indicator view of where price has left imbalances, how significant those imbalances are, and where structural shifts have occurred.
The problem with most FVG indicators is static treatment — a gap is detected and displayed with no differentiation between a high-quality gap formed on a strong impulse with above-average volume and a weak gap formed on a low-volume, narrow-range bar. Structure Fracture Map scores every FVG at formation and continuously updates that score based on mitigation progress, age, and trend alignment, ranking all active zones so that only the most institutionally relevant ones remain visible.
Core Concepts
1. Fair Value Gap Detection
A bullish FVG exists when the current bar's low is above the high of the bar two positions prior — a three-bar pattern where the middle bar's range creates a gap that price has not filled. A bearish FVG is the inverse. Detection is confirmed only on completed bars to prevent repainting.
2. Four-Component Strength Score
Each FVG receives an initial strength score from four components: gap size relative to ATR(14) scaled to 40 points, volume relative to 20-bar average scaled to 30 points, trend EMA alignment scaled to 20 points, and candle body-to-range ratio scaled to 10 points. The score is recalculated every bar, with a small age penalty and a mitigation penalty applied as price partially fills the gap:
float totalStrength = (gapScore * 40) + (volScore * 30) + (trendScore * 20) + (candleScore * 10)
fvg.qualityScore := totalStrength - fvg.mitigation * 50 - fvg.age * 0.1
3. Dual Strength Bars
Inside each FVG box, two small bars are rendered — one showing bearish pressure score and one showing bullish pressure score as a proportion of the box width. The relative lengths reflect which directional force is currently dominating at that imbalance zone.
4. Mitigation Tracking
Mitigation is computed as the ratio of how far price has penetrated into the zone to the total zone height. A fully mitigated FVG is removed from the display. Partially mitigated FVGs remain visible with their score updated downward, reflecting reduced structural significance.
5. Break of Structure and Change of Character
Pivot highs and lows track the most recent confirmed structural levels. A Break of Structure (BOS) occurs when price closes through the last confirmed pivot in the current structural direction — confirming continuation. A Change of Character (CHoCH) occurs when price closes through the last confirmed pivot against the current direction — signaling a potential structural shift. Both events are labeled with a horizontal line at the break level.
Features
FVG detection with quality scoring: Bullish and bearish fair value gaps detected and scored by gap size, volume, trend alignment, and candle quality
Dynamic score updates: Quality scores recalculated each bar with age decay and mitigation penalty
Top-N zone ranking: Only the highest-scoring active zones displayed; lower-quality zones removed as better ones form
Dual strength bars: Bearish and bullish strength bars inside each zone show directional pressure balance
Mitigation tracking: Zones removed automatically when fully mitigated; partial mitigation reflected in updated score
BOS and CHoCH detection: Structural break events labeled with horizontal level lines and text identifiers
HH / HL / LH / LL pivot labels: Confirmed swing pivot types labeled on chart for structural context
Swing level extension lines: Dotted lines at current unbroken swing levels extending to right edge of chart
Four color themes: Phantom, Neon, Classic, Solar
Non-repainting: All detection gated by barstate.isconfirmed
Alert conditions: New top-ranked FVG, BOS bull, BOS bear, CHoCH bull, CHoCH bear, FVG touched
Dashed FVG borders: Each Fair Value Gap box has a dashed colored border matching its directional bias — teal for bullish, pink for bearish
Clean pivot arrow labels: HH, HL, LH, LL events rendered as minimal text arrows (▲ HH etc.) with no background box, positioned above/below bars without obstructing price action
Short BOS/CHoCH event lines: Break of Structure and Change of Character events marked with compact 6-bar horizontal lines and right-anchored labels — no full-width horizontal clutter
Resistance/Support swing extensions: Nearest unbroken swing high labeled "Res" and swing low labeled "Sup" at right edge, updated each bar
Structural bias background: Subtle bull/bear background tint driven by current HH/HL or LH/LL structural sequence
Trend EMA reference line: 50-period EMA plotted in elite theme color as a trend context reference
Input Parameters
FVG Zones:
Show Top Zones: Maximum number of ranked zones displayed (default: 10)
Max Stored FVGs: Maximum FVGs tracked in memory (default: 50)
Volume MA Length: Volume average for scoring (default: 20)
Trend EMA Length: Trend alignment reference (default: 50)
Show Strength Bars toggle
Bull/Bear FVG colors
Market Structure:
Swing Lookback: Bars required on each side for pivot confirmation (default: 10)
Show Structure Labels toggle
Show BOS Events toggle
Show CHoCH Events toggle
Show Swing Level Lines toggle
How to Use This Indicator
Step 1: Read Zone Rankings
Zones with higher quality scores represent structurally more significant imbalances. Focus on fresh (un-mitigated) zones with strong scores for potential reaction areas.
Step 2: Monitor Dual Strength Bars
A bullish FVG whose bearish strength bar is growing indicates that selling pressure is building within the zone. When the bearish bar exceeds the bullish bar, the zone may be losing its bullish character.
Step 3: Use BOS and CHoCH for Context
A BOS confirms continuation. A CHoCH is a warning that the current structural bias may be reversing. CHoCH events near high-quality FVG zones are particularly significant structural signals.
Step 4: Watch Swing Level Extensions
The dotted right-edge lines show the nearest unbroken swing high and low — the next levels where a BOS or CHoCH could occur. These levels frame the most immediate structural breakpoints.
Indicator Limitations
Pivot confirmation requires a lookback offset. BOS and CHoCH events are labeled after confirmation, not on the bar that caused them
FVG quality scores include volume as a factor. On instruments where volume is less meaningful, the score may rank gaps differently than expected
Age penalty causes long-standing FVGs to lose score over time even if they remain structurally valid
This indicator identifies existing imbalances and structural events. It does not predict where price will go next
Originality Statement
A dynamic per-bar quality score for FVGs that decays with age and mitigation, combined with a top-N ranking system that actively removes lower-quality zones when better ones form, is not replicated in existing open-source Pine Script v6 FVG publications
Dual strength bars rendered inside each FVG box — showing the current bull-versus-bear directional pressure balance within that specific imbalance zone — is an original visualization concept
Combining FVG quality ranking, mitigation tracking, BOS/CHoCH structural event detection, and pivot type labeling in a unified indicator with a single clean overlay is an original integration
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice. Trading involves substantial risk of loss. Fair Value Gaps and structural events are based on historical price data and do not predict future price direction. The author accepts no responsibility for trading losses resulting from use of this indicator.
Made with passion by jackofalltrades
Indicator

IFVG Sniper Entry Engine [trade_w_samet]🎯 IFVG Sniper Entry Engine
IFVG Sniper Entry Engine is a clean, focused, and structured Inversion Fair Value Gap analysis indicator designed to help traders study filtered IFVG conditions directly on the price chart.
This script focuses on one main concept:
IFVG-based entry visualization.
It is not designed to be a complex all-in-one trading system.
It is not designed to show every possible Fair Value Gap.
It is not designed to generate constant chart noise.
Instead, the goal of IFVG Sniper Entry Engine is to detect filtered Inversion Fair Value Gap events, display clean IFVG+ / IFVG- labels, and visualize a simple active trade projection using one entry level, one stop-loss level, and one take-profit level.
The indicator includes:
• Inversion Fair Value Gap detection
• Filtered IFVG selection
• Bullish IFVG+ and bearish IFVG- chart labels
• Thin blue bullish IFVG lines
• Thin red bearish IFVG lines
• Adjustable IFVG label size
• ATR-based stop-loss projection
• Selectable take-profit RR from 1R to 6R
• Active TP / SL visual box
• One-active-trade-at-a-time logic
• Confirmed-candle IFVG processing
• IFVG invalidation handling
• Simple dashboard
• Professional alert conditions
The purpose of this script is to help users visually study where an FVG has inverted and whether that inversion may create a structured review point on the chart.
It should be treated as a chart-analysis and educational decision-support tool.
It is not financial advice.
It is not an automated trading system.
It does not guarantee profitable trades.
It does not execute broker orders.
It does not replace personal analysis, risk management, or trade validation.
━━━━━━━━━━━━━━━━━━━━━━
📌 OVERVIEW
━━━━━━━━━━━━━━━━━━━━━━
At a high level, IFVG Sniper Entry Engine does the following:
• Detects bullish and bearish Fair Value Gaps.
• Stores valid hidden FVG zones in memory.
• Watches for price to invert those zones.
• Confirms bullish IFVG when a bearish FVG is broken upward.
• Confirms bearish IFVG when a bullish FVG is broken downward.
• Applies an optional IFVG quality filter.
• Draws only filtered IFVGs on the chart.
• Displays IFVG+ for bullish IFVG events.
• Displays IFVG- for bearish IFVG events.
• Projects one active entry, stop-loss, and take-profit box.
• Allows only one active trade projection at a time.
• Removes the active TP/SL box after TP or SL is reached.
• Tracks basic visual trade outcome statistics in the dashboard.
• Provides alert conditions for IFVG entries and IFVG formations.
The script is intentionally built to be simple and focused.
It does not include multiple take-profit levels.
It does not include machine-learning optimization.
It does not include hidden performance promises.
It does not attempt to predict the future.
It provides a structured way to visualize filtered IFVG events and their projected trade model.
━━━━━━━━━━━━━━━━━━━━━━
🧠 CORE IDEA
━━━━━━━━━━━━━━━━━━━━━━
The core idea behind IFVG Sniper Entry Engine is based on Inversion Fair Value Gaps.
A Fair Value Gap represents an imbalance area created when price moves aggressively enough to leave a gap-like inefficiency between candles.
An Inversion Fair Value Gap occurs when price later breaks through a previously formed FVG in the opposite direction.
This can be useful for traders who study:
• market imbalance
• failed displacement zones
• price repricing behavior
• continuation after inversion
• possible shift in directional pressure
• clean chart-based trade planning
The script does not treat every FVG as important.
Instead, it stores FVGs and waits for inversion behavior.
Then it filters the IFVG event using quality conditions such as gap size, candle body strength, candle range, and clean break logic.
The goal is not to show more signals.
The goal is to reduce noise and highlight cleaner IFVG conditions.
━━━━━━━━━━━━━━━━━━━━━━
🧩 WHY THIS SCRIPT IS NOT A SIMPLE BUY/SELL INDICATOR
━━━━━━━━━━━━━━━━━━━━━━
IFVG Sniper Entry Engine is not intended to be used as a blind buy/sell system.
The script is structured as a visual review workflow:
Fair Value Gap forms
→ FVG is stored in memory
→ price later breaks through the opposite side
→ inversion is detected
→ IFVG quality filter is checked
→ IFVG+ or IFVG- is displayed
→ active entry / SL / TP projection is drawn
→ trade box extends while active
→ result is tracked visually
→ box is removed after TP or SL
Each part has a specific purpose.
The FVG memory system stores imbalance zones.
The inversion logic checks whether price has broken the opposite side of the stored zone.
The filter system attempts to reduce weaker IFVG events.
The entry model gives a simple visual planning level.
The ATR stop-loss model creates a consistent risk reference.
The RR setting controls the projected target distance.
The dashboard summarizes the current state.
The alert system helps monitor confirmed events.
This makes the script a structured IFVG review tool, not a guaranteed trade signal generator.
━━━━━━━━━━━━━━━━━━━━━━
⚙️ HOW THE SCRIPT WORKS
━━━━━━━━━━━━━━━━━━━━━━
The script first detects normal bullish and bearish Fair Value Gaps.
A bullish FVG is detected when the current candle structure leaves an imbalance above the candle from two bars earlier.
A bearish FVG is detected when the current candle structure leaves an imbalance below the candle from two bars earlier.
Once a raw FVG is detected, the script stores:
• top of the FVG
• bottom of the FVG
• original FVG direction
• age of the FVG
• gap size relative to ATR
• candle body ratio
• candle range relative to ATR
These values are stored internally and are later used when an inversion happens.
The script then waits for price to break through the stored FVG in the opposite direction.
For a bullish IFVG:
A previously bearish FVG must be broken upward.
For a bearish IFVG:
A previously bullish FVG must be broken downward.
When inversion is detected, the script checks whether the IFVG passes the selected filter mode.
Only filtered IFVGs are displayed on the chart.
━━━━━━━━━━━━━━━━━━━━━━
🔵 BULLISH IFVG+ LOGIC
━━━━━━━━━━━━━━━━━━━━━━
A bullish IFVG+ appears when a previously bearish Fair Value Gap is inverted to the upside.
In practical terms, the script looks for a stored bearish FVG and then checks whether price closes above the top boundary of that FVG.
If the selected filter conditions are satisfied, the script draws:
• a thin blue IFVG line
• an IFVG+ label
• a bullish active trade projection if no trade is already active
The bullish trade projection uses:
• entry level
• ATR-based stop-loss below entry
• selected RR-based take-profit above entry
This does not mean price must continue upward.
It only means the script detected a bullish IFVG condition based on its internal rules.
━━━━━━━━━━━━━━━━━━━━━━
🔴 BEARISH IFVG- LOGIC
━━━━━━━━━━━━━━━━━━━━━━
A bearish IFVG- appears when a previously bullish Fair Value Gap is inverted to the downside.
In practical terms, the script looks for a stored bullish FVG and then checks whether price closes below the bottom boundary of that FVG.
If the selected filter conditions are satisfied, the script draws:
• a thin red IFVG line
• an IFVG- label
• a bearish active trade projection if no trade is already active
The bearish trade projection uses:
• entry level
• ATR-based stop-loss above entry
• selected RR-based take-profit below entry
This does not mean price must continue downward.
It only means the script detected a bearish IFVG condition based on its internal rules.
━━━━━━━━━━━━━━━━━━━━━━
💎 IFVG FILTER SYSTEM
━━━━━━━━━━━━━━━━━━━━━━
The script includes an IFVG filter system to reduce chart noise.
This is important because not every inversion is meaningful.
The filter system can be set to:
Off
Loose
Balanced
Strict
Custom
Off mode shows all detected IFVG events.
Loose mode allows more IFVGs and uses lower quality requirements.
Balanced mode is the default middle-ground setting.
Strict mode requires stronger IFVG conditions and will show fewer signals.
Custom mode allows the user to manually control the filter thresholds.
The filter evaluates:
• minimum gap size relative to ATR
• minimum candle body ratio
• minimum candle range relative to ATR
• clean break buffer relative to ATR
This creates a more selective IFVG workflow.
The filter does not guarantee better future outcomes.
It only controls how strict the script is before displaying an IFVG.
━━━━━━━━━━━━━━━━━━━━━━
📏 GAP / ATR FILTER
━━━━━━━━━━━━━━━━━━━━━━
The gap filter measures the original Fair Value Gap size relative to ATR.
This helps avoid very small imbalance zones that may not be meaningful on the selected chart.
A larger minimum gap requirement makes the indicator more selective.
A smaller minimum gap requirement allows more IFVGs.
The default Balanced setting uses a moderate gap requirement.
Users can adjust this in Custom mode.
━━━━━━━━━━━━━━━━━━━━━━
🕯️ BODY RATIO FILTER
━━━━━━━━━━━━━━━━━━━━━━
The body ratio filter measures the candle body compared to the full candle range.
This helps evaluate whether the candle that created the FVG had meaningful directional pressure.
A stronger body ratio requirement can reduce weaker candles.
A lower body ratio requirement allows more setups.
This is not a prediction tool.
It is only a candle-quality filter.
━━━━━━━━━━━━━━━━━━━━━━
📊 RANGE / ATR FILTER
━━━━━━━━━━━━━━━━━━━━━━
The range filter measures the candle’s full range relative to ATR.
This helps the script avoid very small candles that may not represent meaningful displacement.
A higher range/ATR requirement makes the script more selective.
A lower range/ATR requirement increases the number of visible IFVGs.
The value should be adjusted based on symbol volatility and timeframe.
━━━━━━━━━━━━━━━━━━━━━━
🧼 CLEAN BREAK FILTER
━━━━━━━━━━━━━━━━━━━━━━
The clean break filter requires price to break beyond the IFVG boundary by an ATR-based buffer.
This helps avoid very small boundary touches.
For bullish IFVGs, price must close above the stored FVG top plus the clean break buffer.
For bearish IFVGs, price must close below the stored FVG bottom minus the clean break buffer.
The clean break buffer can be controlled in Custom mode.
A higher buffer makes the inversion requirement stricter.
A lower buffer allows more IFVG events.
━━━━━━━━━━━━━━━━━━━━━━
🎯 ENTRY MODEL
━━━━━━━━━━━━━━━━━━━━━━
When a filtered IFVG appears and no active trade is already open, the script creates a visual trade projection.
The entry can be based on:
IFVG Line
Confirmation Close
IFVG Line mode uses the selected IFVG line price as the projected entry reference.
Confirmation Close mode uses the candle close that confirmed the IFVG.
The entry is only a visual reference.
It is not a broker order.
It does not mean the user must enter a trade.
It is designed to help users review how the IFVG setup would look with a structured risk/reward model.
━━━━━━━━━━━━━━━━━━━━━━
🛑 ATR STOP-LOSS MODEL
━━━━━━━━━━━━━━━━━━━━━━
The stop-loss projection is based on ATR.
The main settings are:
ATR Length
SL ATR Multiplier
For bullish IFVG entries, the stop-loss is projected below the entry.
For bearish IFVG entries, the stop-loss is projected above the entry.
ATR is used because market volatility changes across symbols and timeframes.
A higher SL ATR multiplier creates a wider visual risk area.
A lower SL ATR multiplier creates a tighter visual risk area.
This stop-loss level is a visual projection only.
It does not place an order.
It does not guarantee that the level is appropriate for every trader or every market.
━━━━━━━━━━━━━━━━━━━━━━
🎯 TAKE-PROFIT RR MODEL
━━━━━━━━━━━━━━━━━━━━━━
The script uses one take-profit level.
There are no TP1, TP2, or TP3 levels.
The take-profit is calculated from the projected risk distance.
Available RR options:
1R
2R
3R
4R
5R
6R
Default:
3R
For bullish IFVG entries, TP is projected above entry.
For bearish IFVG entries, TP is projected below entry.
The RR setting only controls the visual projected target distance.
It should not be interpreted as a recommendation or guarantee.
Users should decide whether the projected target makes sense based on their own analysis, market structure, liquidity, session, volatility, and risk plan.
━━━━━━━━━━━━━━━━━━━━━━
📦 ACTIVE TP / SL BOX SYSTEM
━━━━━━━━━━━━━━━━━━━━━━
When a new valid IFVG entry appears, the script draws a clean active TP / SL visual model.
The visual model includes:
• TP box
• SL box
• entry line
• stop-loss line
• take-profit line
• ENTRY label
• SL label
• TP label
The TP/SL box remains visible only while the trade projection is active.
While the trade is active, the box extends to the right as new candles form.
When TP or SL is reached, the active trade box is removed from the chart.
This means historical TP/SL boxes are not kept.
The chart remains cleaner and only the active trade projection is visible.
━━━━━━━━━━━━━━━━━━━━━━
🚦 ONE ACTIVE TRADE AT A TIME
━━━━━━━━━━━━━━━━━━━━━━
The script includes one-active-trade-at-a-time logic.
If a trade projection is active, the script will not open another trade projection until the active one reaches TP or SL.
However, new filtered IFVG lines can still appear on the chart.
This design separates:
• IFVG detection
• trade projection permission
An IFVG can appear while a trade is active, but it will not create a new active TP/SL box.
The dashboard tracks blocked IFVG events internally.
This helps keep the chart structured and avoids multiple overlapping trade boxes.
━━━━━━━━━━━━━━━━━━━━━━
⚠️ SAME-CANDLE TP / SL HANDLING
━━━━━━━━━━━━━━━━━━━━━━
If TP and SL are both touched on the same candle, the true intrabar sequence cannot be known from standard OHLC chart data.
This script uses a conservative assumption:
SL is counted first.
This avoids overly optimistic historical visual results when the actual intrabar order is unknown.
Users should understand that this is still a bar-based assumption.
It does not represent broker execution.
It does not include spread, slippage, commissions, order delay, or partial fills.
━━━━━━━━━━━━━━━━━━━━━━
🏷️ IFVG LABELS
━━━━━━━━━━━━━━━━━━━━━━
The script uses simple IFVG labels:
IFVG+
IFVG-
IFVG+ represents a bullish Inversion Fair Value Gap.
IFVG- represents a bearish Inversion Fair Value Gap.
The label size can be adjusted from the settings.
Available label sizes:
Tiny
Small
Normal
Large
Huge
The default label size is Large.
This allows users to adjust visibility depending on chart zoom, monitor size, and visual preference.
━━━━━━━━━━━━━━━━━━━━━━
📍 IFVG LINE PRICE MODES
━━━━━━━━━━━━━━━━━━━━━━
The IFVG line can be drawn using different price references.
Available modes:
Broken Boundary
Confirmation Close
Midpoint
Broken Boundary mode draws the line at the boundary that was broken during inversion.
Confirmation Close mode draws the line at the candle close that confirmed the IFVG.
Midpoint mode draws the line at the midpoint of the original FVG zone.
Each mode gives a different way to visualize the IFVG reference level.
There is no universally best option.
Users should choose the line mode that best matches their own review method.
━━━━━━━━━━━━━━━━━━━━━━
🧹 IFVG INVALIDATION
━━━━━━━━━━━━━━━━━━━━━━
The script can automatically remove invalidated IFVG lines.
For bullish IFVGs, invalidation occurs when price closes back below the lower boundary of the IFVG zone.
For bearish IFVGs, invalidation occurs when price closes back above the upper boundary of the IFVG zone.
This helps keep the chart cleaner by removing IFVG levels that are no longer valid according to the script’s internal logic.
Users can disable this setting if they prefer to keep IFVG lines visible.
━━━━━━━━━━━━━━━━━━━━━━
📟 DASHBOARD
━━━━━━━━━━━━━━━━━━━━━━
The script includes a compact dashboard.
The dashboard displays:
• selected filter mode
• selected label size
• last signal direction
• active trade status
• selected RR
• latest entry level
• latest SL level
• latest TP level
• active box state
• filtered IFVG count
• trades / wins / losses
The dashboard is designed to provide a quick summary of the current script state.
It is not a full performance report.
It is not a replacement for PulseWire Strategy Tester.
It is a visual summary based on the script’s internal bar-based projection logic.
━━━━━━━━━━━━━━━━━━━━━━
🚨 ALERT SYSTEM
━━━━━━━━━━━━━━━━━━━━━━
IFVG Sniper Entry Engine includes alert conditions for:
Bullish IFVG Entry
Bearish IFVG Entry
Bullish IFVG+ formed
Bearish IFVG- formed
The entry alerts are triggered when a filtered IFVG creates a new active trade projection.
The IFVG formation alerts are triggered when filtered IFVG+ or IFVG- conditions appear.
Alerts are monitoring tools only.
They do not execute trades.
They do not place broker orders.
Users must confirm all alerts with their own analysis and risk management.
━━━━━━━━━━━━━━━━━━━━━━
🔔 HOW TO USE ALERTS
━━━━━━━━━━━━━━━━━━━━━━
A practical alert workflow:
1. Add IFVG Sniper Entry Engine to your chart.
2. Open PulseWire’s alert window.
3. Select the indicator as the alert condition.
4. Choose the desired alert type.
5. Select alert frequency according to your preference.
6. Use alerts for monitoring only.
7. Confirm each alert manually before making any trading decision.
Alerts may behave differently depending on timeframe, symbol, session, and real-time candle updates.
━━━━━━━━━━━━━━━━━━━━━━
🧪 HOW TO USE THE INDICATOR
━━━━━━━━━━━━━━━━━━━━━━
A practical workflow:
1. Add IFVG Sniper Entry Engine to your chart.
2. Start with the default Balanced filter mode.
3. Review the visible IFVG+ and IFVG- labels.
4. Check whether the IFVG appears in a meaningful market context.
5. Review the active TP/SL projection if a trade model appears.
6. Use the selected RR level as a visual planning reference only.
7. Avoid treating every IFVG as a trade.
8. Combine the tool with your own market structure, liquidity, trend, session, and risk-management rules.
9. Use alerts for monitoring, not automatic execution.
10. Test the indicator on the exact markets and timeframes you personally study.
The indicator is best used as a structured IFVG review tool.
It should not be used as a blind execution system.
━━━━━━━━━━━━━━━━━━━━━━
⚙️ SETTINGS REFERENCE
━━━━━━━━━━━━━━━━━━━━━━
⚙️ IFVG Engine
Hidden FVG Memory
Controls how many raw FVGs can be stored internally.
Max Hidden FVG Age
Controls how long a hidden FVG remains eligible for inversion.
Minimum FVG Size / Ticks
Sets the minimum raw FVG size using ticks.
Max Visible IFVG
Controls how many IFVG lines and labels can remain visible.
IFVG Line Length Bars
Controls how far the IFVG line extends to the right.
IFVG Line Price
Controls whether the IFVG line is drawn from Broken Boundary, Confirmation Close, or Midpoint.
Delete Invalidated IFVG
Removes IFVG lines when the script detects invalidation.
━━━━━━━━━━━━━━━━━━━━━━
💎 IFVG Filter
IFVG Filter Mode
Controls how selective the IFVG display logic is.
Available modes:
Off
Loose
Balanced
Strict
Custom
Custom Minimum Gap / ATR
Defines the minimum FVG gap size relative to ATR when Custom mode is selected.
Custom Minimum Body Ratio
Defines the minimum body-to-range ratio when Custom mode is selected.
Custom Minimum Range / ATR
Defines the minimum candle range relative to ATR when Custom mode is selected.
Custom Clean Break Buffer / ATR
Defines the ATR-based clean break buffer when Custom mode is selected.
━━━━━━━━━━━━━━━━━━━━━━
🎯 IFVG Entry Model
Entry Price
Controls whether entry is based on IFVG Line or Confirmation Close.
ATR Length
Defines the ATR length used for risk calculation.
SL ATR Multiplier
Controls the distance of the projected stop-loss.
Take Profit RR
Controls the projected take-profit distance.
Available RR values:
1R
2R
3R
4R
5R
6R
Initial TP / SL Box Length
Controls the initial box length when a new active trade projection appears.
━━━━━━━━━━━━━━━━━━━━━━
🎨 Visual Style
Bullish IFVG Blue
Controls the color of bullish IFVG+ lines and labels.
Bearish IFVG Red
Controls the color of bearish IFVG- lines and labels.
IFVG Label Size
Controls the size of IFVG+ and IFVG- labels.
Entry Line Color
Controls the entry line color.
SL Color
Controls the stop-loss box and line color.
TP Color
Controls the take-profit box and line color.
Dashboard Background
Controls the dashboard background color.
Dashboard Text
Controls the dashboard text color.
━━━━━━━━━━━━━━━━━━━━━━
📟 Dashboard
Show Dashboard
Shows or hides the compact dashboard.
━━━━━━━━━━━━━━━━━━━━━━
🧠 WHAT MAKES THIS SCRIPT ORIGINAL
━━━━━━━━━━━━━━━━━━━━━━
IFVG Sniper Entry Engine uses familiar market concepts such as:
• Fair Value Gaps
• Inversion Fair Value Gaps
• ATR-based risk projection
• risk/reward planning
• label-based visual mapping
• active trade visualization
• alert monitoring
These concepts are not unique by themselves.
The originality of this script lies in how they are organized into a clean IFVG workflow:
Raw FVG detection
→ hidden FVG memory
→ inversion confirmation
→ IFVG quality filter
→ IFVG+ / IFVG- display
→ one-active-trade rule
→ ATR stop-loss projection
→ selectable RR target
→ active-only TP/SL box
→ compact dashboard
→ alerts
This structure is designed to give users a focused way to review filtered IFVG conditions without unnecessary chart clutter.
━━━━━━━━━━━━━━━━━━━━━━
⚠️ IMPORTANT PRACTICAL NOTES
━━━━━━━━━━━━━━━━━━━━━━
The script’s behavior depends heavily on settings.
Signal frequency and visual output may change based on:
• filter mode
• ATR length
• SL multiplier
• RR selection
• IFVG line mode
• minimum gap settings
• candle body settings
• range/ATR settings
• clean break buffer
• timeframe
• symbol volatility
• market session
• available historical bars
A setting that looks clean on one symbol may behave differently on another.
A setting that appears useful on one timeframe may not be useful on another.
Users should test the script on the exact markets and timeframes they personally study.
━━━━━━━━━━━━━━━━━━━━━━
⚠️ LIMITATIONS AND SHORTCOMINGS
━━━━━━━━━━━━━━━━━━━━━━
This script has important limitations:
It does not guarantee profitable trades.
It does not predict future price movement.
It does not replace risk management.
It does not execute trades.
It does not place broker orders.
It does not include broker slippage.
It does not include commissions.
It does not include spreads.
It does not include order delay.
It does not include partial fills.
It uses bar-based chart data.
Same-candle TP/SL order cannot be known from standard OHLC data.
The dashboard is not PulseWire Strategy Tester.
The TP/SL boxes are visual projections only.
Alerts are monitoring tools only.
Historical visual behavior does not ensure future behavior.
Filter settings do not guarantee better results.
One-active-trade logic is a visual management rule, not broker execution logic.
For these reasons, IFVG Sniper Entry Engine should be used as an educational decision-support and chart-analysis tool, not as a standalone trading strategy.
━━━━━━━━━━━━━━━━━━━━━━
👤 WHO THIS SCRIPT MAY BE USEFUL FOR
━━━━━━━━━━━━━━━━━━━━━━
This script may be useful for traders who:
• study IFVG concepts
• study Fair Value Gap inversions
• want cleaner IFVG chart visuals
• prefer filtered signals instead of every raw IFVG
• want a simple one-TP projection model
• want ATR-based risk visualization
• want one active trade projection at a time
• want active-only TP/SL boxes
• want IFVG+ and IFVG- labels
• want alert-based monitoring
• want a focused educational analysis tool
It may be less suitable for users who:
• want guaranteed buy/sell signals
• want a fully automated trading bot
• want many take-profit levels
• want every raw FVG displayed
• expect one setting to work on every market
• expect alerts to execute trades
• expect visual projections to match broker execution
• want an indicator that replaces personal decision-making
━━━━━━━━━━━━━━━━━━━━━━
🧭 BEST PRACTICE SUGGESTIONS
━━━━━━━━━━━━━━━━━━━━━━
For cleaner review:
• Start with the default Balanced filter mode.
• Use Strict mode if the chart is too noisy.
• Use Loose mode if the chart shows too few IFVGs.
• Use Custom mode only after understanding how each filter affects signal frequency.
• Review IFVGs together with market structure.
• Check whether the IFVG appears near meaningful liquidity or displacement context.
• Do not treat every IFVG+ or IFVG- as a trade.
• Use the TP/SL box as a visual planning tool only.
• Keep expectations realistic.
• Use alerts for monitoring, not automatic execution.
• Always apply independent analysis and risk management.
━━━━━━━━━━━━━━━━━━━━━━
🔓 PUBLICATION NOTE
━━━━━━━━━━━━━━━━━━━━━━
IFVG Sniper Entry Engine is published as an educational and visual market-analysis tool.
The purpose of this description is to explain:
• what the script does
• how IFVG conditions are detected
• how IFVG filters work
• how IFVG+ and IFVG- labels are created
• how the entry model is projected
• how the ATR stop-loss model works
• how the RR-based take-profit is calculated
• how the active TP/SL box behaves
• how the one-active-trade rule works
• what the dashboard shows
• what the alerts do
• what the limitations are
• how the indicator should and should not be used
The script is designed to support structured analysis.
It does not promise profitable results.
It does not remove market risk.
It does not execute trades.
It should not be used as a blind buy/sell system.
It is best used as a visual framework for reviewing filtered Inversion Fair Value Gap conditions and projected risk/reward behavior.
━━━━━━━━━━━━━━━━━━━━━━
🛡️ DISCLAIMER
━━━━━━━━━━━━━━━━━━━━━━
IFVG Sniper Entry Engine is provided for educational and informational purposes only.
It does not constitute financial, investment, or trading advice.
No indicator can guarantee future results.
Markets are uncertain, conditions change, and historical behavior does not ensure future performance.
Every user is responsible for their own analysis, validation, risk management, position sizing, and trading decisions.
The IFVG+ labels, IFVG- labels, active TP/SL boxes, dashboard values, RR projections, stop-loss projections, and alerts are visual analysis tools only.
Use this script as a structured decision-support and visual review framework, not as a promise of profitability.
Indicator

SMC Flip Zone Engine ViprasolOverview
The original detects a break of structure, walks back to find the reaction leg that preceded it, and draws a colored zone box, with optional Liquidity Sweep, Fair Value Gap, HTF EMA alignment, and OTE (discount/premium) filters that can be toggled on to reduce noise. This version keeps that zone-detection engine intact and adds a Viprasol confluence and lifecycle layer: a 0-4 confluence score with A/B/C grading, a minimum-score gate, zone mitigation (retest) and invalidation tracking, a per-side cooldown, and an ATR-free risk overlay that projects Entry/SL/TP from a zone when price returns to it.
It is built for traders who work with break-of-structure flip zones and want each zone graded by how much SMC confluence actually backs it, plus automatic tracking of when zones are retested or broken.
How It Works
Structure Break & Reaction Leg (from original):
A bullish flip is triggered when close crosses over the prior highest-high of the lookback window (supply broken); a bearish flip when close crosses under the prior lowest-low (demand broken). On a break, the script walks back over the reaction-leg length to find the extreme of the trap leg — for a bull flip, the lowest low in that window and its bar's high define the zone's bottom and top. A box is drawn from that reaction bar forward.
SMC Filters (from original, toggle-gated):
Four optional filters can each be required before a zone is drawn:
- Liquidity Sweep — the reaction leg must have exceeded the prior structural extreme (taken liquidity).
- FVG / Displacement — a fair value gap must be present around the break (e.g. low > high ).
- HTF Alignment — bull zones only above, bear zones only below, the 50 EMA of a higher timeframe.
- OTE (Discount/Premium) — the zone midpoint must sit in the discount half (bull) or premium half (bear) of the leg, where equilibrium = leg low + (leg high − leg low) × 0.5.
Confluence Score & Grade (new):
Independently of which filters are toggled on, the script evaluates all four confluence conditions as raw booleans on every new zone and sums them into a 0-4 score:
score = sweep? + fvg? + ote? + htfAligned?
The score is mapped to a grade — A (>= 3), B (= 2), C (<= 1) — and printed on the zone box. This means even with all filters off (so every break draws a zone), you can still see which zones are backed by genuine confluence. A "Minimum Confluence Score" input then lets you suppress any zone below a chosen score without having to hard-require specific filters.
Zone Mitigation & Invalidation (new):
Every existing zone is tracked across bars. A zone is mitigated the first time price trades back into its range (low <= top and high >= bot) — this fires a mitigation alert (a potential entry as the flip zone is retested). A zone is invalidated when price closes through it (close < bot for a bull zone, close > top for a bear zone); invalidated zones are recolored gray (or can be left as-is) and fire an invalidation alert. Each transition fires once per zone.
Risk Overlay on Mitigation (new):
When "Show SL/TP on Mitigation" is enabled, the first retest of a zone projects three lines: Entry at the near edge of the zone, Stop-Loss at the far edge (so the zone height is the risk), and Take-Profit at Entry ± zone-height × the Risk:Reward ratio. Colored ENTRY/SL/TP price labels mark the line ends. Only the most recent mitigation's projection is kept, to avoid clutter.
Per-Side Cooldown (new):
An optional cooldown enforces a minimum number of bars between new zones on the same side (tracked as bar_index − lastSideBar >= cooldown), preventing a burst of overlapping zones during a single fast move.
What Is Original (Viprasol Additions)
1. Confluence score (0-4) and A/B/C grade printed on each zone, computed from raw sweep/FVG/OTE/HTF conditions regardless of which filters are toggled.
2. Minimum-confluence-score gate — suppress low-quality zones without hard-requiring individual filters.
3. Zone mitigation (retest) detection with a dedicated alert.
4. Zone invalidation detection (price closes through) with recoloring and a dedicated alert.
5. Risk overlay — Entry/SL/TP projection with colored price labels drawn on the first mitigation of a zone, sized by zone height and the Risk:Reward ratio.
6. Per-side zone cooldown to prevent clustering.
Key Features
From the Original:
- Break-of-structure detection via crossover/crossunder of the lookback high/low
- Reaction-leg walk-back to locate the trap zone behind the break
- Bullish and bearish flip-zone boxes with labels
- Optional Liquidity Sweep, FVG, HTF 50-EMA alignment, and OTE filters
- Oldest-zone pruning to limit chart clutter
Added in This Version (Viprasol):
- 0-4 confluence score with A/B/C grade on every zone
- Minimum-score quality gate
- Mitigation (retest) and invalidation lifecycle tracking with recoloring
- Entry/SL/TP risk overlay with colored price labels on mitigation
- Per-side cooldown
- Info dashboard (active zone counts, HTF state, filters-on count, min score)
- Six alert conditions with dynamic {{ticker}}/{{close}}/{{interval}} messages
How to Use
Getting Started:
1. Add to a standard candlestick chart (not Heikin Ashi).
2. With all filters off (default), every structure break draws a graded zone — read the A/B/C grade to judge quality.
3. To trade only stronger setups, either raise "Minimum Confluence Score" or turn on the specific filters you require.
Reading the Chart:
- Green zone = bullish flip (drawn after a supply break); red zone = bearish flip (after a demand break).
- The bracket on each zone, e.g. , is the confluence grade and score.
- A zone turning gray means price closed through it — it is invalidated.
- When price returns into a zone and SL/TP is enabled, Entry/SL/TP lines and price labels project to the right.
Recommended Starting Points:
- Intraday (5m-15m): Lookback 20, Reaction 7, Min Score 0-1, Cooldown 0-3
- Swing (1H-4H): Lookback 30, Reaction 7-10, Min Score 2, enable HTF alignment
- Higher conviction: Min Score 3 (grade A only), or require Sweep + FVG
These are starting points only — every market and timeframe behaves differently. Backtest and adjust before trading live.
Settings
Market Structure: structure lookback period, reaction-leg length, and max zones kept per side.
SMC Strict Filters: toggles for Liquidity Sweep, FVG (displacement), HTF 50-EMA alignment (with HTF resolution), and OTE (discount/premium). All default off so zones appear immediately.
Confluence & Quality (Viprasol): minimum confluence score, show grade on zone, and per-side zone cooldown.
Risk Overlay (Viprasol): show SL/TP on mitigation, show price labels, and the Risk:Reward ratio.
Visuals: bullish/bearish fill and border colors, and a toggle to dim invalidated zones gray.
Dashboard / Display: dashboard toggle and position.
Alerts
1. New Bull Zone — a bullish flip zone was created
2. New Bear Zone — a bearish flip zone was created
3. Any New Zone — either direction created
4. Bull Mitigation — price returned to a bullish zone (potential long)
5. Bear Mitigation — price returned to a bearish zone (potential short)
6. Zone Invalidated — a zone was closed through and invalidated
All alerts include {{ticker}}, {{close}}, and {{interval}} for dynamic notification messages.
Limitations & Disclaimer
- Zones are created on the bar the structure break confirms; because detection uses crossover/crossunder of close versus the prior swing, signals are evaluated on the closing relationship and the reaction leg is identified after the fact.
- The HTF alignment filter uses request.security with lookahead disabled; HTF values update only as the higher-timeframe bar progresses.
- The FVG and OTE checks are simplified single-bar/leg-midpoint approximations, not full multi-leg ICT constructs.
- Mitigation is detected on the first wick back into a zone; this is an awareness signal, not a guaranteed reversal.
- SL/TP lines and price labels are visual references only and do not place or manage trades.
- Filters and the minimum-score gate reduce the number of zones; in choppy ranges valid zones may be suppressed, while in fast trends overlapping zones may appear if cooldown is off.
- Past performance does not guarantee future results. This indicator is for educational and analytical purposes only and is not financial advice. Always use proper risk management and test on historical data before trading live.
Credits & Attribution
Based on an open-source "Advanced SMC Flip Zones" community indicator, which provided the break-of-structure detection (crossover/crossunder of the lookback high/low), the reaction-leg walk-back that locates the trap zone, the bullish and bearish flip-zone boxes, the optional Liquidity Sweep / FVG / HTF 50-EMA / OTE filters, and the oldest-zone pruning. Added by Viprasol: the 0-4 confluence score and A/B/C grading, the minimum-score quality gate, zone mitigation and invalidation lifecycle tracking with recoloring, the Entry/SL/TP risk overlay with colored price labels, the per-side cooldown, the info dashboard, and the six-condition dynamic alert set.
Published open-source per PulseWire House Rules.
Indicator

ICT FVG_IFVG Engine 3m OptimisedThis indicator detects and tracks **Fair Value Gaps (FVGs)** and **Inversion Fair Value Gaps (IFVGs)** based on the Inner Circle Trader (ICT) methodology. It is built specifically around the **AM session (9:30–12:00 NY)** and **Silver Bullet windows (10:00–11:00 and 14:00–15:00 NY)**, firing real-time alerts when price returns to key entry levels.
The core signal is the **Consequent Encroachment (CE) tap** — price reaching the 50% midpoint (mean threshold) of a Fair Value Gap — which ICT teaches as the precision entry point within the gap. When this level is touched, the indicator fires a full alert with entry price, stop loss, take profit, R:R ratio, session tag, and quality tier.
---
## ICT Concepts Applied
**Fair Value Gap (FVG)**
A 3-candle price imbalance where the current bar's low is above the 2-bars-prior high (bullish) or the current bar's high is below the 2-bars-prior low (bearish). An optional ATR displacement filter ensures only gaps formed by real displacement candles are tracked.
**Consequent Encroachment (CE)**
The 50% midpoint of the FVG — also called the mean threshold. ICT teaches this as the primary entry reference within the gap, offering better risk-to-reward than entering at the gap edge.
**Inversion Fair Value Gap (IFVG)**
When price closes through the far edge of an FVG (a **body close**, not just a wick), the gap inverts its role — a bullish FVG becomes resistance, a bearish FVG becomes support. The next retest of the inverted zone is a trade in the new direction.
**First-Presented FVG (FPFVG)**
The first qualifying FVG of each session. ICT methodology emphasises this as the highest-quality setup of the session.
**Silver Bullet**
A specific ICT time window (10:00–11:00 AM and 2:00–3:00 PM New York time) within which the first FVG and its CE are considered premium setups.
**Liquidity Sweep (optional)**
A prerequisite where price raids a prior swing high or low (taking out resting orders) and then closes back inside the range before the displacement that creates the FVG. This forms the full ICT sequence: sweep → displacement → FVG → CE entry.
---
## Features
### Detection
- 3-candle FVG detection with configurable ATR displacement filter
- Optional liquidity sweep prerequisite (raid + rejection of prior swing)
- Tracks gaps until mitigated (full entry) or inverted (IFVG)
- Inversion confirmed by **candle body close** through the far edge — not a wick
### Session & Scope
- Configurable AM (default 9:30–12:00) and PM (1:30–4:00) session windows
- Silver Bullet windows: AM (10:00–11:00) and PM (2:00–3:00)
- Optional London Silver Bullet (3:00–4:00 AM NY)
- Three scope modes: All gaps | Session gaps only | First-presented + Silver Bullet
### Time-of-Day Quality Filter
Gaps are colour-coded by formation time based on historical win-rate data:
| Tier | Window | Visual |
|------|--------|--------|
| HIGH | 9:30–10:00 AM | Bright boxes |
| MED | 10:00–11:00 AM | Normal boxes (Silver Bullet) |
| LOW | 11:00 AM–12:00 PM | Dimmed boxes |
LOW-quality alerts and R:R zones are suppressed by default to reduce noise.
### Two-Tier Alert System
Every CE tap fires a rich alert message containing:
- Priority tier (`*** PRIORITY` for first-presented/SB, `SETUP` for others)
- Quality tier (`HIGH`, `MED`, or `LOW`)
- Ticker and timeframe
- Trade direction (`LONG` or `SHORT`)
- Exact CE entry level
- Stop loss level
- Take profit level
- R:R ratio
- Session tag (e.g. `1st AM`, `SB-AM`, `AM`)
- Current price
**Example alert message:**
```
*** PRIORITY | NQ 3 | LONG | CE 21245.00 | SL 21235.00 | TP 21275.00 | 1:3.0 | | px 21246.25
```
### R:R Zones
When a CE tap occurs, the indicator automatically draws:
- **Yellow dashed line** — Entry at CE
- **Red solid line** — Stop loss level with label
- **Green solid line** — Take profit level with label
- **Green fill zone** — CE to TP visual
- **Red fill zone** — CE to SL visual
Default levels are set to the backtest-optimised values for the 3-minute NQ chart (10-point stop / 30-point target). These are fully configurable.
### Dashboard (top-right table)
- Live session status for AM, PM, Silver Bullet AM/PM/London
- Time-quality tier indicator with win-rate reference per bucket
- Daily CE signal counter vs cap
- Current R:R settings reminder
---
## How to Use
**Step 1 — Add to chart**
Paste into Pine Editor, Save, then click *Add to chart*. The indicator works as an overlay on any symbol and timeframe.
**Step 2 — Choose your scope**
In *Settings → Scope*, select:
- **"In configured sessions only"** to track all AM/PM FVGs (more signals)
- **"First-presented + Silver Bullet"** for highest-quality only (fewer signals)
**Step 3 — Set your R:R levels**
In *Settings → R:R Levels*, enter your stop loss and take profit in points. Defaults are 10pt stop / 30pt TP — calibrated for the 3-minute NQ futures chart.
**Step 4 — Create alerts**
1. Right-click the chart → *Add alert*
2. Condition = this indicator → select one of:
- **"*** PRIORITY CE tap"** — First-presented and Silver Bullet gaps only
- **"SETUP CE tap"** — All other session gaps
- **"Any CE tap"** — Catch-all for both tiers
- **"Any ICT signal"** — Includes inversions and IFVG retests
3. Set trigger to *Once Per Bar Close* to match closed-bar detection and avoid repaint
**Step 5 — Read the chart**
- **Bright boxes** = HIGH quality (9:30–10:00 AM) — best setups
- **Normal boxes** = MED quality (Silver Bullet window)
- **Dimmed boxes** = LOW quality (11:00 AM+) — alerts suppressed by default
- **Yellow border** = First-presented FVG of the session
- **Orange box** = FVG has inverted → now an IFVG — trade the opposite direction
- **Green/Red zones** = R:R levels drawn at moment of CE tap
---
## Settings Reference
| Group | Setting | Description |
|-------|---------|-------------|
| Detection | ATR filter | Minimum gap size relative to ATR14 — filters out small gaps |
| Detection | Closed bars only | Prevents repainting — recommended ON |
| Liquidity Sweep | Require sweep | Makes the full ICT sequence mandatory before a gap qualifies |
| Scope | Which gaps to track | Controls how many gaps are tracked and drawn |
| Sessions | AM / PM / SB times | All configurable in NY time. DST is handled automatically |
| Quality Filter | Enable quality tiers | Colour-codes gaps by time-of-day win rate |
| Quality Filter | Suppress LOW alerts | Prevents alerts after 11:00 AM when win rates drop |
| Alerts | PRIORITY / SETUP | Toggle each alert tier independently |
| Alerts | Max CE per day | Daily signal cap — default 4, matching recommended session limit |
| R:R Levels | Stop / TP points | Draws SL and TP lines and fill zones on every CE tap |
---
## Alert Setup for Mobile Notifications
To receive push notifications to the PulseWire mobile app:
1. Create the alert as above
2. Under *Notifications*, enable **App notification**
3. Set trigger to *Once Per Bar Close*
For webhook/automation, the alert message is structured for easy parsing:
- Fields are `|`-separated
- Entry, SL, and TP are explicit price levels (not offsets)
---
## Notes & Disclaimers
- **Timeframe:** The indicator works on all timeframes. Default settings (10pt SL / 30pt TP) are calibrated for the **3-minute NQ futures chart** based on internal backtesting over 60 days of data. Adjust stop and target values to match your instrument's volatility and your preferred timeframe.
- **Repaint:** With *"Detect on closed bars only"* enabled (default), all signals are based on confirmed closed candles. Disabling this option allows earlier intrabar detection but will repaint before the bar closes.
- **Inversion logic:** Inversion is confirmed by a candle **body close** through the far edge of the gap, per ICT teaching. A wick alone does not qualify.
- **No financial advice:** This indicator is a technical analysis tool. All signals are for informational purposes only. Past performance of any pattern or level does not guarantee future results. Always use appropriate risk management and conduct your own analysis before entering any trade.
- **ICT methodology:** Fair Value Gaps, Silver Bullet, Consequent Encroachment, and related terminology are concepts taught by the Inner Circle Trader (ICT). This indicator is an independent technical implementation and is not affiliated with, endorsed by, or produced by ICT.
---
*Built with Pine Script v6.* Indicator

Auto TrendLine Intelligence [BOS+CHoCH+FVG] [Rehan Khanani]================================================================
AUTO TRENDLINE INTELLIGENCE
================================================================
Auto TrendLine Intelligence is a professional-grade, institutional-level technical analysis indicator built for traders who think and operate like smart money. It combines automatic trend line detection with full Smart Money Concepts — BOS, CHoCH, and FVG — into one clean, powerful overlay.
This is not just a trend line tool. It is a complete market structure analysis system that tells you what the market is doing, why it is doing it and exactly where to enter, exit, and place your stop-loss.
================================================================
HOW IT WORKS
================================================================
The indicator runs five analytical engines simultaneously on every bar:
ENGINE 1 — AUTOMATIC TREND LINE DETECTION
The indicator automatically detects the most recent swing highs and swing lows using a pivot-based algorithm, then draws two types of trend lines in real time without any manual input:
Major Trend Lines (solid): Connect significant swing highs and swing lows using the full pivot lookback length. These represent the dominant structural trend and carry the highest weight for trading decisions.
Minor Trend Lines (dashed): Connect shorter-term pivots using a reduced lookback period. These represent intraday or near-term structure and are useful for precise entry timing.
Both lines update automatically as new pivots form. No manual drawing, no redrawing, no guesswork.
ENGINE 2 — BREAK OF STRUCTURE (BOS)
A Break of Structure is a continuation signal. It occurs when price convincingly breaks above a previous swing high (bullish BOS) or below a previous swing low (bearish BOS), confirming that the current trend is likely to continue.
Bullish BOS: price closes above the last confirmed swing high — signals trend continuation to the upside.
Bearish BOS: price closes below the last confirmed swing low — signals
trend continuation to the downside.
BOS labels appear directly on the chart at the point of the break.
ENGINE 3 — CHANGE OF CHARACTER (CHoCH)
A Change of Character is a reversal signal — the first indication that the current trend may be ending and a new one beginning. It is the most important signal in Smart Money analysis.
Bullish CHoCH: in a confirmed downtrend (lower highs, lower lows), price breaks above a recent lower high for the first time — this signals a potential reversal to the upside.
Bearish CHoCH: in a confirmed uptrend (higher highs, higher lows), price breaks below a recent higher low for the first time — this signals a potential reversal to the downside.
CHoCH labels are clearly marked on the chart and distinguished from BOS.
ENGINE 4 — FAIR VALUE GAP (FVG)
Fair Value Gaps are imbalance zones left behind by aggressive institutional buying or selling. Price frequently returns to these zones to rebalance before continuing in the original direction.
Bullish FVG: a gap between the high of the candle two bars ago and the low of the current candle — shown as a teal shaded zone.
Bearish FVG: a gap between the low of the candle two bars ago and the high of the current candle — shown as a red shaded zone.
FVG boxes automatically disappear when price returns to fill the gap (mitigation), keeping the chart clean at all times.
ENGINE 5 — LIQUIDITY ZONES
Equal highs and equal lows represent areas where institutional stop orders and limit orders are clustered. The indicator detects when two recent pivot highs or lows are at approximately the same price level and marks them with a dotted yellow line — highlighting where liquidity is likely to be swept before a major move.
================================================================
ENTRY SIGNAL SYSTEM (MULTI-FILTER CONFLUENCE)
================================================================
LONG and SHORT entry signals are generated only when ALL of the following conditions align simultaneously — ensuring institutional-grade signal quality:
For a LONG signal:
1. Price touches or approaches the support trend line within ATR buffer
2. Price is above the EMA 200 (bullish market bias confirmed)
3. RSI is not in overbought territory (momentum not exhausted)
4. Volume is above the 20-period average (institutional participation)
5. Candle closes bullish (price accepts support level)
For a SHORT signal:
1. Price touches or approaches the resistance trend line within ATR buffer
2. Price is below the EMA 200 (bearish market bias confirmed)
3. RSI is not in oversold territory (momentum not exhausted)
4. Volume is above the 20-period average (institutional participation)
5. Candle closes bearish (price rejects resistance level)
This five-layer confluence model ensures you only take trades where structure, trend, momentum, and volume all agree.
================================================================
AUTOMATIC TP1 / TP2 / SL LEVELS
================================================================
Every entry signal automatically plots:
Stop Loss: placed below/above the entry using ATR multiplier (default 1.5x ATR)
Take Profit 1 (TP1): at 50% of the full RR target — for partial exits
Take Profit 2 (TP2): at full Risk:Reward ratio target (default 2:1 RR)
All three levels are drawn as dashed lines directly on the chart with
exact price labels so you never have to calculate manually.
================================================================
INSTITUTIONAL DASHBOARD — 12 DATA POINTS
================================================================
A professional real-time dashboard is displayed in the corner of your
chart showing:
1. Market Bias — BULLISH or BEARISH based on EMA 200 position
2. Market Structure — Higher Highs/Lows | Lower Highs/Lows | Consolidation
3. EMA Stack — Bullish Stack | Bearish Stack | Mixed
4. RSI Reading — Exact value + zone (Overbought / Oversold / Neutral)
5. Volume Status — High Volume | Above Average | Below Average
6. ATR Value — Current ATR for volatility awareness
7. Support TL — Projected support trend line price at current bar
8. Resistance TL — Projected resistance trend line price at current bar
9. Fair Value Gap — Bullish FVG | Bearish FVG | None
10. SMC Event — Latest BOS or CHoCH event detected
11. Signal Status — LONG ENTRY | SHORT ENTRY | WATCHING
Dashboard position is fully adjustable: Top Right, Top Left, Bottom Right, or Bottom Left.
================================================================
FULL FEATURE LIST
================================================================
Automatic Features (Zero Manual Work Required):
- Auto major trend lines from pivot highs and lows
- Auto minor trend lines from shorter-term pivots
- Auto BOS detection and labeling
- Auto CHoCH detection and labeling
- Auto FVG zone drawing and auto-removal on mitigation
- Auto liquidity zone detection (equal highs / equal lows)
- Auto TP1, TP2, SL calculation and plotting on every signal
- Auto dashboard with 11 live market readings
Filters and Controls:
- EMA 200 trend direction filter
- EMA 50 for stack analysis
- RSI momentum filter (adjustable OB/OS levels)
- Volume spike filter (adjustable multiplier)
- ATR-based signal sensitivity buffer
- All filters individually toggleable
Visual Controls:
- Major and minor trend line toggle
- Individual color pickers for all line types
- Line width control (1 to 5)
- Extend lines right toggle
- FVG transparency control
- Dashboard position selector
Alert Conditions (9 Total):
1. LONG Entry Signal
2. SHORT Entry Signal
3. Any Entry Signal
4. Bullish BOS
5. Bearish BOS
6. Bullish CHoCH
7. Bearish CHoCH
8. Bullish FVG detected
9. Bearish FVG detected
================================================================
SETTINGS GUIDE
================================================================
Group 1 — Trend Line Settings
Pivot Lookback Length: Controls how significant a swing must be to form a trend line. Default is 10. Lower values (5-7) give more frequent lines suitable for scalping. Higher values (15-20) give fewer but stronger structural lines suitable for swing and position trading.
Show Major Trend Lines: Toggle the primary solid trend lines on/off.
Show Minor Trend Lines: Toggle the secondary dashed trend lines on/off.
Extend Lines Right: Extends all lines to the right edge of the chart.
Major Line Width: Visual thickness of major trend lines (1 to 5).
Color pickers: Customize all four line types independently.
Group 2 — Smart Money Concepts
Show BOS: Toggle Break of Structure labels on/off.
Show CHoCH: Toggle Change of Character labels on/off.
Show FVG: Toggle Fair Value Gap boxes on/off.
Show Liquidity Zones: Toggle equal high/low dotted lines on/off.
FVG Transparency: Adjust how opaque or subtle the FVG boxes appear.
Group 3 — Signal and Entry Settings
ATR Length: Period for ATR calculation (default 14).
ATR Buffer Multiplier: How close price must come to the trend line to
trigger a signal. Lower = stricter, higher = more relaxed.
Stop Loss ATR Multiplier: Distance of SL from entry in ATR units.
Risk Reward Ratio: Multiplier applied to the SL distance to set TP2.
Show TP/SL on Chart: Toggle the TP1, TP2, SL lines on/off.
Group 4 — Volume and Momentum Filter
Enable Volume Filter: When on, signals only fire on above-average volume.
Volume Spike Multiplier: Threshold multiplier over 20-period volume MA.
Enable RSI Filter: When on, blocks signals in exhausted momentum zones.
RSI Length, Overbought, Oversold: Standard RSI parameters.
Group 5 — Dashboard
Show Dashboard: Toggle the entire dashboard panel on/off.
Dashboard Position: Place it in any corner of the chart.
================================================================
HOW TO USE — STEP BY STEP
================================================================
Step 1 — Check the Dashboard
Before looking at any signal, check the dashboard. Confirm Market Bias, Structure, and EMA Stack all point in the same direction. Trade only when at least two of the three agree.
Step 2 — Identify the Trend Lines
Watch where the major trend lines are relative to current price. The support line (teal/blue) and resistance line (red) define your trading range and structural boundaries.
Step 3 — Wait for SMC Confluence
Before entering on a trend line touch, check whether a CHoCH has recently occurred in your direction. A CHoCH near a trend line is one of the highest-probability setups this indicator generates.
Step 4 — Watch for FVG Zones
If a Fair Value Gap is present near the trend line, this adds further confluence. Institutional traders frequently use FVG zones as entry triggers.
Step 5 — Enter on Signal
When a LONG or SHORT label appears, all five filters have aligned. Enter at the close of the signal candle. Your TP1, TP2, and SL levels will appear automatically on the chart.
Step 6 — Manage the Trade
Consider taking partial profits at TP1 (50% of position) and letting the remainder run to TP2. Move stop loss to breakeven after TP1 is hit.
Step 7 — Set Alerts
Use the 9 built-in alert conditions to be notified of signals and SMC events without watching the chart constantly.
================================================================
RECOMMENDED TIMEFRAMES
================================================================
Scalping: 1 minute, 5 minutes (Pivot Length 5-7)
Intraday: 15 minutes, 30 minutes, 1 Hour (Pivot Length 8-10)
Swing Trading: 4 Hour, Daily (Pivot Length 10-15)
Position Trading: Weekly (Pivot Length 15-20)
The indicator automatically adapts to any timeframe. Only the Pivot Lookback Length needs to be adjusted based on your trading style.
================================================================
COMPATIBLE MARKETS
================================================================
This indicator works on all liquid markets available on PulseWire:
Forex: All major, minor, and exotic currency pairs
Crypto: Bitcoin, Ethereum, and all altcoins
Commodities: Gold (XAUUSD), Silver (XAGUSD), Oil (WTI, Brent)
Indices: S&P 500, NASDAQ, Dow Jones, FTSE, DAX, Nikkei
Stocks: Any individual equity with sufficient volume
Futures: All futures contracts available on PulseWire
================================================================
WHO CAN USE THIS INDICATOR
================================================================
Beginner Traders:
The dashboard and automatic signals remove the need for manual analysis. Beginners can use the LONG and SHORT labels as guided entry points while learning how the underlying concepts work.
Intermediate Traders:
Use the BOS and CHoCH labels to understand market structure shifts and combine them with trend line touches for high-confluence entries. The FVG zones add an additional layer for precise entry timing.
Advanced and Professional Traders:
Use the full system as an institutional-grade market structure scanner. Combine BOS, CHoCH, FVG, and liquidity zones with your own HTF bias for a complete multi-confluence trading framework. The volume and RSI filters can be tuned precisely to your strategy requirements.
Algorithmic and Systematic Traders:
All 9 alert conditions can be connected to PulseWire webhooks for automated notification systems or strategy integration.
Portfolio Managers and Analysts:
The dashboard provides a rapid one-glance market assessment across any asset — useful for screening multiple instruments quickly.
================================================================
IMPORTANT DISCLAIMER
================================================================
Auto TrendLine Intelligence is a technical analysis tool designed to support trading decisions. It does not guarantee future results. All trading involves risk. Always apply proper risk management, use appropriate position sizing, and conduct your own due diligence before entering any trade. Past signal performance is not indicative of future results. This indicator is not financial advice. Indicator

ICT/SMC Institutional Intelligence -- Dual Detection [IID]ICT/SMC Institutional Intelligence — Dual Detection
An integrated ICT/SMC structural analysis system built around two independent verdict engines — Continuation and Reversal — that score the same market in parallel and surface what the price action is doing, where the market structure stands, and whether continuation or reversal pressure is building. The system describes conditions. It does not issue buy or sell instructions.
---
█ What Makes It Different
Dual independent verdict engines.
Continuation and Reversal score simultaneously, against the same chart, with configurable conflict resolution — Show Both , Dominant Wins , or CONFLICT Flag — so traders see when both pressures are real, when one is dominant, and when the two are fighting.
-
Multi-factor confluence engine across three categories.
A composite confluence score grouped into Zone , Reference , and Timing buckets, so traders can see what kind of confluence is present, not just how much.
-
Real-time Intelligence Briefing.
A three-column briefing — STATE / OBSERVED / TRACKING — that translates the engine readings into plain structural language and tracks live events like pending sweep confirmations as they unfold.
---
█ Key Capabilities
The system includes BUT NOT LIMITED TOO:
Dual verdict engines
(Continuation and Reversal) scoring INACTIVE → EARLY → FORMING → BUILDING → CONFIRMED, with timeframe-aware multipliers and modifier handling for consolidation, lunch dead-zone, NY overlap, and active sweeps.
-
Structure detection
including Break of Structure ( BOS ), Change of Character ( CHoCH ), and Market Structure Shift ( MSS ) across configurable timeframes, with validation-event freshness gating.
-
Zone management
for Order Blocks (OB) , Fair Value Gaps (FVG) , Breaker Blocks (BB) , Balanced Price Range (BPR) , and Inverted FVG (iFVG) — each treated as dynamic support and resistance with full lifecycle tracking (formation, mitigation, inversion, aging, pruning).
-
Liquidity tracking
including liquidity pool detection, liquidity sweep identification, and a sweep-reclaim confirmation-window finite-state machine that distinguishes a wick raid from a confirmed reclaim with follow-through.
-
Multi-factor confluence scoring
across Zone , Reference , and Timing categories, with configurable STRONG / STANDARD / WEAK tier thresholds.
-
Five structural phases —
Expansion, Pullback, Consolidation, Continuation, Reversal — classified at chart-timeframe speed, each with its own optional alert.
-
Multi-timeframe market-structure grid
showing structure, swing position, zone presence, and trend per row. Rows hidden from the dashboard still compute for scoring.
-
Premium / Discount labelling and Optimal Trade Entry (OTE) zone detection (21–38% discount, 62–79% premium) from the active swing range.
-
Kill-zone awareness
for Asian, London, NY AM, and NY PM sessions, with a lunch dead-zone modifier and asset-class-aware gating.
-
Three-EMA trend system and anchored VWAP (Daily / Weekly / Session / Monday anchors) with previous-anchor reference.
-
Session reference levels
including previous-day high, previous-day low, and midnight open.
-
Impulse classification
with displacement and absorption recognition, volume-climax exhaustion detection (opt-in), and an order-flow bias layer.
-
SMT divergence
against up to two correlated tickers, with configurable inverse-correlation logic.
-
Intelligence Briefing
delivering STATE / OBSERVED / TRACKING context on every confirmed bar.
-
Comprehensive alert system
with alert conditions across three categories, individually toggleable, gated by bar close.
-
Multi-asset support
with asset-class-aware behaviour for forex, crypto, equity-like instruments, and other classes.
! (dashboard-overview.png)
(Screenshot: Full IID Dual dashboard on BTCUSDT during a Pullback phase — Market State verdict band, three-column Intelligence Briefing, multi-timeframe market structure grid, VWAP anchoring, confluence scoring, chart-timeframe intelligence, and Market Context with MAG / IMP / LIQ / BIAS)
---
█ Who It's For
Whether you follow ICT methodology , trade Smart Money Concepts (SMC) setups, or work in pure price action analysis, IID Dual is built to give you structural context without prescribing entries. It is designed for traders who want to read the market, not be told what to do — practitioners who already have an entry framework and want a measured, transparent map of the conditions around their setup.
---
█ How It Works — The System
The system reads the chart in layers: structural events, zone behaviour, liquidity dynamics, confluence, and live tracking — all feeding two parallel verdict engines that score the picture in tandem. The architecture is integrative, not modular-in-isolation. Each layer feeds the next:
Structure detection runs first. Manual pivot logic with an ATR filter generates swing highs and lows, which produce BOS, CHoCH, and MSS validation events. These events have freshness windows — stale structure does not count toward the verdict.
Zone management tracks every reactive level the structure produces. Order Blocks, Fair Value Gaps, Breaker Blocks, BPRs, and inverted FVGs are created, aged, tested, mitigated, and pruned. The system knows which zones are active, which have been touched, and which have inverted.
Liquidity tracking maintains equal-high and equal-low pools and watches for sweeps. When a sweep occurs, a confirmation-window finite-state machine arms, then progresses through reclaim and follow-through — distinguishing a real institutional rotation from a stop-hunt that fails to confirm.
The Intelligence Briefing surfaces what matters from this stream in plain language: what state the system reads, what structural evidence supports it, and what live events are being tracked right now.
The confluence engine measures alignment by counting the active factors across Zone, Reference, and Timing categories, then classifying the percentage into STRONG, STANDARD, or WEAK tiers.
Both verdict engines score this picture in parallel. The Continuation engine combines higher-timeframe bias, confluence, kill-zone alignment, impulse, liquidity-path clearance, volume, and structural bonuses.
The Reversal engine requires hard gates — fresh CHoCH/MSS/BB-retest against bias, plus a prior validated sweep — before it allows a score, then composes its tier from validation age, sweep quality, confluence, impulse, volume, FVG, equal-highs/lows, kill-zone, and SMT divergence.
Conflict routing decides what the trader sees when both engines are active: both sides displayed, the configured dominant engine wins, or an explicit CONFLICT flag is raised.
The trader decides.
! (engine-continuation-breakdown.png)
(Screenshot: Continuation engine on EUR/USD 15M during a bullish trending move — FORMING ▲ BULL 54%, with full component breakdown visible: BIAS 1 + CON 16 + KZ 5 + IMP 6 + LIQ 0 + B8 = 54%, driven by CON; Reversal independently inactive)
! (engine-reversal-breakdown.png)
(Screenshot: Reversal engine on US30 15M after a confirmed CHoCH event — CONFIRMED ▼ BEAR 74%, with full component breakdown visible: VAL 25 + SWP 20 + CON 8 + IMP 7 + KZ 0 + E5 = 74% (CHoCH); Continuation independently EARLY ▲ BULL 22%)
---
█ The Dashboard
The dashboard is a structured top-to-bottom readout, with seven bands designed to be read in order:
Market State
(top) — both engine tiers and percentages plus the central market-state classification
Intelligence Briefing —
STATE / OBSERVED / TRACKING in three cards
Multi-timeframe structure grid —
one row per configured timeframe with TF, swing position, structure pattern, OB up/down, BB, FVG, and trend
VWAP row —
current anchor distance and previous anchor reference
Confluence —
tier summary plus factor breakdown by Zone, Reference, and Timing
Chart Timeframe Intelligence —
volume, swing percentile, volatility, session, and kill-zone status
Market Context —
MAG (nearest magnet), IMP (impulse history), LIQ (sweep status), and BIAS (multi-timeframe consensus)
Every row is individually toggleable. The dashboard position and background opacity are configurable. Critically, structure grid rows hidden from view still compute for scoring — traders can simplify what they look at without losing analytical depth.
! (dashboard-annotated-walkthrough.png)
(Screenshot: Annotated walkthrough of every dashboard band — Market State, Intelligence Briefing, multi-timeframe Structure Grid, VWAP, Confluence, Chart Timeframe Intelligence, and Market Context — each labelled in reading order)
! (structure-grid-closeup.png)
(Screenshot: Per-timeframe structure grid showing one row per configured timeframe with swing position, structure pattern, order block and FVG presence, breaker blocks, and trend — multi-timeframe discount and sweep alignment visible vertically down the columns)
---
█ The Intelligence Briefing
No other ICT/SMC indicator delivers this layer — a three-column briefing that translates the engine readings into plain structural language, telling the trader what the system reads, what evidence it sees, and what events it's tracking right now.
STATE classifies the current market condition —
Continuation phase, Reversal phase, Consolidation, Expansion, Pullback, or DUAL STAND-DOWN when neither engine is sufficiently active — and identifies which engine is dominant when both are scoring.
OBSERVED
describes the structural evidence the system has registered around the current state, expressed in ICT/SMC vocabulary rather than raw values.
TRACKING
is the live monitor. When a liquidity sweep arms the confirmation window, TRACKING shows the pending event, the countdown to the confirmation deadline, and the active kill-zone context. When no event is pending, it shows the directional narrative or stays quiet — silence is information too.
The briefing updates on the last confirmed bar so traders read a stable, non-flickering snapshot of what the system understands about this moment in the chart.
! (intelligence-briefing-closeup.png)
(Screenshot: Intelligence Briefing close-up — STATE classifies the current market reading, OBSERVED describes the structural evidence in ICT/SMC vocabulary, TRACKING reports live events including pending sweep confirmations and active kill-zone context)
---
█ Setup & Configuration
The defaults work out of the box, but a few inputs are worth knowing about — they determine which timeframes the indicator reads from, how its multi-TF grid is structured, and how patient the indicator is when classifying impulse and structure. The three subsections below cover each in turn. All three are independent — changing one does not change the others.
█ Context & Validation Timeframes
The indicator's primary anchor points are two timeframe inputs. Context timeframe (bias) sets the higher TF the indicator reads bias from. Validation timeframe (confirmation) sets the TF where structural events (BOS, CHoCH, MSS) need to confirm before the engines treat them as valid.
The defaults are 1 hour Context and 15 minutes Validation. These match a Day Trader's typical workflow — a higher-TF bias view paired with a lower-TF confirmation window. Scalpers will usually want lower values for both (15m Context / 1m Validation is common). Swing traders running H4 or daily charts will want higher values (4h Context / 1h Validation, or higher).
The two inputs work together but are independent. Changing Context doesn't change Validation; changing either doesn't affect the Trader Type setting or the Structure Grid configuration. Pick the pair that matches the structural read you actually trade — the indicator does the rest.
! (setup-context-validation.png)
(Screenshot: Properties → Inputs → Timeframes — Context timeframe (bias) and Validation timeframe (confirmation) at their defaults of 1 hour / 15 minutes)
█ Structure Grid Configuration
The 7-Timeframe Market Structure Grid is fully customisable. Each of the seven rows has two settings: a timeframe selector (any TF from 1-minute to monthly) and a Show toggle.
The default ladder is Weekly, Daily, 4-hour, 1-hour, 15-minute, 5-minute, 1-minute — covering the most common trading horizons from high-timeframe context down to execution. Any row can be reassigned to a different TF, and rows can be enabled or disabled individually using their Show checkboxes. A trader running a non-standard ladder (e.g., only the four TFs they actually trade) can hide the rest.
Hidden rows still compute for scoring. This is important — the indicator's engines, BIAS aggregation, and confluence logic read from all seven configured rows regardless of which are visible. Hiding a row removes it from the dashboard display, not from the analysis. Customise the visible ladder to match what you want to see ; the indicator continues to use the full 7-TF data for its decisions.
! (setup-structure-grid.png)
(Screenshot: Properties → Inputs → Timeframes — the seven Structure row dropdowns at their defaults (Weekly → 1-minute ladder), each with an individual Show checkbox; in this view, only the 15-minute row is set to Show)
█ Trader Type
Trader Type is a single dropdown with three values: Scalper, Day Trader (default), and Swing. It controls how patient the indicator is.
The setting doesn't change which timeframes the indicator reads. What it changes is the sensitivity applied to that data. Scalper reacts faster: smaller candle bodies count as meaningful, shorter consolidations register, recent structural events qualify as fresh. Swing waits longer: bodies need to be more decisive, consolidations more developed, events more recent. Day Trader sits between them.
The effect shows up in several places — IMP row candle classifications in Market Context, TREND column readings in the Structure Grid, the Structural Phase header in the Verdict Banner, and delivery-state consolidation detection. The same chart and timeframes will produce different engine reads under different Trader Types because the indicator is asking different questions about the same data.
Pick Trader Type to match your trading style — how long you typically hold trades and how patient you are waiting for setups — not the chart timeframe you happen to be viewing. A scalper running a 1-minute chart will likely want Scalper; a swing trader on H4 will likely want Swing. But the mapping isn't enforced — Trader Type just tells the indicator how strict to be.
Trader Type and the timeframe inputs are independent. Selecting a different Trader Type does not change your Context or Validation Timeframe values. For a complete style-switch, change all three together.
! (setup-trader-type.png)
(Screenshot: Properties → Inputs → Trader Profile — the Trader type dropdown open, showing Scalper, Day Trader (default, highlighted), and Swing)
---
█ Reading the Indicator on a Live Chart
The dashboard mockups above show what each section looks like. The four worked examples below show what each section does — captured from real PulseWire replay sessions, with the indicator running on price as it would in normal use. Each scenario teaches one state the system can be in.
Conditions Ripening — system naming the pre-confirmation state
! (scenario-conditions-ripening.png)
(Screenshot: XAUUSD 5M during live replay — displacement and impulse are building; the system reports the setup before any signal fires)
(Dashboard view: Verdict Banner + Market Context. Other sections hidden.)
Most indicators are silent until conditions confirm, then they fire. IID Dual reports the state before the signal: when displacement and impulse start building a directional case, the Market State band names it explicitly as CONDITIONS RIPENING · FORMING · PRE-PHASE. The system isn't predicting; it's describing what it sees, with timestamps.
Underneath, the impulse layer doesn't just report a single reading — it shows the progression : HLLW → WEAK → SLID → NOW: STRG ↓ at 138% volume, momentum present. Four stages, each named, each timestamped.
The displacement isn't a wick; the case is building. If the next bars deliver continuation, the engine will progress from FORMING to BUILDING to CONFIRMED. If the move stalls, the ripening narrative dissolves and the system moves on.
█ TRACKING in Action — sweep confirmation window
! (scenario-tracking-in-action.png)
(Screenshot: XAUUSD 5M during live replay — a chart sweep arms the confirmation window; the system reads the event and counts down)
(Dashboard view: Verdict Banner + Intelligence Briefing + Pending Strip. Other sections hidden.)
A sweep alone isn't a reversal — it's a question. When price takes out a swing high or low and the confirmation window arms, the dashboard surfaces the pending event explicitly — here a bear sweep at 4762.905, 4 of 5 bars remaining — and the TRACKING column counts down bar by bar so the trader knows whether they're watching a confirmed reclaim or a failed raid. Above, the verdict banner shows Reversal already reading EARLY ▼ BEAR 81% — the engines have priced the structural case; the pending sweep is the live evidence that confirms or invalidates it.
The dashboard isn't predicting; it's reading the chart in real time and reporting what it sees. If the bar closes back inside the original range before the counter expires, the sweep is confirmed and the structural-reversal case strengthens. If the window expires without a clean close, the raid failed and the system moves on.
█ Divergent Signals — both engines speaking at once
! (scenario-divergent-signals.png)
(Screenshot: XAUUSD 5M during live replay — both engines scoring the same chart: Continuation FORMING bear, Reversal BUILDING bull — the system flags the divergence explicitly)
(Dashboard view: Verdict Banner + Intelligence Briefing. Other sections hidden.)
Most indicators force a single directional read. IID Dual lets both engines speak. When a fresh MSS on chart arms the reversal case but the prior continuation hasn't fully invalidated, the dashboard shows both engines scoring at once — here Continuation FORMING ▼ BEAR 22% alongside Reversal BUILDING ▲ BULL 55%, with the Market State band reporting "DIVERGENT SIGNALS · OPPOSED · ENGINES SPLIT" and the sub-line stating "engines disagree . wait for resolution before acting." The STATE column in the Intelligence Briefing reinforces with "DIVERGENT SIGNALS ⚠ Conflict."
The system isn't choosing for the trader; it's reporting what it sees, in detail. If the trader has configured Dominant Wins , the higher-tier engine (here Reversal at 55%) takes the displayed read. If Show Both or CONFLICT Flag is set, the dashboard surfaces the disagreement rather than resolving it — leaving the read to the trader's judgement.
█ Confluence Breakdown — what KIND of confluence is active
! (scenario-confluence-breakdown.png)
(Screenshot: XAUUSD 5M during live replay — multiple timing factors firing while zone and reference categories sit partial; the dashboard splits the confluence score into its three constituent buckets)
(Dashboard view: Verdict Banner + Confluence row. Other sections hidden.)
Confluence usually arrives as a single number. IID Dual splits it. The CONFLUENCE row reports the headline — here 6/15 STANDARD mixed — but the three category lines beneath name exactly what kind of confluence is active: ZONE 2/7 , REFERENCE 0/4 inactive , TIMING 4/4 .
Read those three lines and the same 6/15 score tells a much sharper story. TIMING is fully saturated — every timing factor the system tracks is firing. ZONE is partial — a sweep and a premium/discount read, but no order block or FVG contribution.
REFERENCE is silent — no EMA or VWAP alignment in play. A trader who relies on EMA structure now knows their preferred confluence layer isn't contributing; a trader who weighs timing knows the timing-side case is as strong as it gets. The headline number is honest; the breakdown is where the read lives.
---
█ Component Reference
The four worked examples above teach what the system does in different market states. The nine entries below cover what each component shows , in isolation — each captured with only that component visible, so its structure and tooltips can be read without competition. The Properties panels in each image are the recipe; replicate any view by setting the same toggles.
█ Chart Overlays
! (anatomy-chart-overlays.png)
(Screenshot: EURUSD 15M — chart populated with the indicator's full visible vocabulary; Structure Grid configured to a single TF on the right as a bridge to the dashboard)
Chart Overlays are the indicator's chart-side teaching layer — they show you what the dashboard is actually reading from. Every zone, structural marker, and event tag the indicator draws directly on price corresponds to a cell or column somewhere in the dashboard.
Zones (OB, FVG, iFVG, BB, BPR) appear as coloured regions with right-edge labels naming what they are. Structural markers (BOS, CHoCH, MSS, DISP) sit at the bars where the indicator detected those events. Sweep tags (SWEEP, SMT BEAR, SMT BULL) mark the levels where liquidity was taken.
Chart overlays don't carry hover-tooltips themselves — the dashboard's other components do the descriptive work. Here, the 1-TF Structure Grid sits next to the chart as a bridge: each chart object the indicator draws on price (BEAR OB, BULL FVG, BOS, SWEEP) corresponds to a cell in the grid's columns.
The tooltip surfaced on the TF cell confirms the system-wide principle: "Timeframe row. Hidden rows can be toggled, but engine computation continues."
The chart-side vocabulary is foundational. Every other section in this reference reads from these objects — the Structure Grid summarises them across timeframes, the Confluence row counts them as factors, the engines score them through tier logic.
This view uses three toggles: Show dashboard, Show chart overlays, and Show 7-timeframe market structure grid (configured to one TF). The Properties panel on the left shows the configuration.
The full multi-timeframe treatment of chart objects is covered next, in the Structure Grid.
█ Verdict Banner
! (anatomy-verdict-banner.png)
(Screenshot: EURUSD 10M — engines scoring in opposition, Market State band naming the divergence; centre cell hovered)
The Verdict Banner is the dashboard's headline read — your one-glance answer to "what state is the market in right now?" . Three cells across the top: Continuation on the left, Reversal on the right, Market State between them. Above all three, a Structural Phase header names the broader regime.
The Market State cell carries a tooltip explaining each state's trigger. Here the band reads DIVERGENT SIGNALS, and the tooltip explains the rule: "One engine is BUILDING+ now while the other was BUILDING+ within 15 bars but faded below BUILDING." That last clause matters — the system holds memory of recently-strong engines for 15 bars, so a state can persist after the engine that earned it has cooled.
The Intelligence Briefing uses the same memory principle on a 30-bar window.
Read the banner as a system. The Continuation and Reversal cells each carry a tier (EARLY, FORMING, BUILDING, CONFIRMED) and a direction (BULL ▲, BEAR ▼) from that engine's own scoring.
The Market State band synthesises: CONDITIONS RIPENING when displacement is building, CONTINUATION PHASE or REVERSAL PHASE when one engine dominates, DIVERGENT SIGNALS when the engines disagree. The sub-line names what's driving the read — "driven by CON" or "driven by BIAS + IMP" . The Structural Phase header at the top (PULLBACK, EXPANSION, REVERSAL, CONSOLIDATION) frames the macro regime.
This view uses just two toggles: Show dashboard and Show verdict banner. The Properties panel on the left shows the configuration.
The Verdict Banner is the only section that always speaks — other sections can read quiet, but the banner always reports something , even if INACTIVE 0%.
█ Modifier & Trade-level Strip
! [Modifier strip — firing with engine impact](anatomy-modifier-strip.png)
(Screenshot: EURUSD 10M — Modifier strip showing tag with Verdict Banner context above; modifier cell hovered)
The Modifier & Trade-level Strip surfaces context the engine scores alone can't show — sessions, sweeps, conflicts, structural exceptions. It's a single row that sits beneath the Verdict Banner, normally quiet, lighting up only when a modifier is firing. When it does, it appears as a labelled tag — ` ` for a recent sweep contribution, ` ` for a session penalty, ` ` for a validation warning, and others.
The hovered tooltip explains the active modifier's effect: "Validation conflict cuts Continuation by 1 tier; Reversal treats it as N/A." That's not a passive label — the modifier is actively changing the engine output.
The Verdict Banner shown above reads Continuation FORMING ▼ BEAR 46%; without the conflict cut, the Continuation engine would presumably sit one tier higher. The double-exclamation ` ` notation marks high-priority modifiers — ones that materially change scoring rather than just nudging it.
Each modifier in the strip's vocabulary has its own scoring rule. The strip is the indicator's way of surfacing context that the engine logic alone wouldn't expose — sessions, sweeps, conflicts, structural exceptions.
This view uses three toggles: Show dashboard, Show verdict banner, and Show modifier and trade-level strip. The strip currently requires the Verdict Banner to be enabled to render — captured here as configured.
█ Intelligence Briefing
! (anatomy-intelligence-briefing.png)
(Screenshot: EURUSD 5M — REVERSAL EMERGING state with active sweep being tracked; STATE column hovered)
The Intelligence Briefing answers "what is the indicator actually seeing right now?" in plain structural language. It translates engine percentages into the kind of observation a trader would make at the chart. Three columns: STATE (the indicator's current classification), OBSERVED (what structural evidence has been detected), TRACKING (what live events the system is watching).
The STATE column tooltip surfaces an engine-logic principle: "Reversal is active now or was BUILDING+ within 30 bars, with Continuation outside handoff control." The system has memory — STATE doesn't just reflect the current bar's read, it reflects whether either engine was strong within a 30-bar window.
The handoff system manages how engines pass control between phases. The Verdict Banner uses a similar 15-bar memory on its DIVERGENT trigger; together, the two windows mean the indicator reports on recent history, not just instantaneous classification.
The OBSERVED column reports validated structural events — what the indicator has actually confirmed on chart. The TRACKING column reports pending events with countdowns — sweeps awaiting close confirmation, structural breaks under validation. When TRACKING is active, the system is mid-evaluation; when it's quiet, no live events are pending.
This view uses just two toggles: Show dashboard and Show Intelligence Briefing. The Properties panel on the left shows the configuration.
The Briefing is the dashboard's translation layer between the engines' percentages and the trader's structural vocabulary.
█ 7-Timeframe Market Structure Grid
! (anatomy-structure-grid.png)
(Screenshot: EURUSD 5M — the grid showing per-timeframe readings across Weekly through 1M, with the 5M row's SWING H/L cell hovered to surface its tooltip)
The 7-Timeframe Market Structure Grid is a per-timeframe snapshot of where price sits in its swing range, what structural events have validated, what unfilled order blocks and FVGs sit at proximity, and what trend mode each timeframe is reading. One row per configured timeframe; one column per structural dimension.
Each cell carries a hover-tooltip with its plain-language meaning. Hovering the 5M row's SWING H/L cell surfaces the tooltip shown: "5 52%. Equilibrium (EQ)." followed by a compact legend — the dot glyph marks the current position in the swing range, arrow glyphs name sweep and reclaim events, and the bracketed tags identify zone-state ( for premium, for discount, for equilibrium, for OTE — the optimal-trade-entry discount zone, for proximity to a swing extreme).
The reading "5 52%" means the 5-minute timeframe sits at the 52nd percentile of its current swing range — squarely in equilibrium. Every other cell in the grid carries the same kind of legend on hover.
The grid earns its keep when read vertically . A single timeframe showing tells you that one chart is in discount; five timeframes showing in the SWING H/L column tells you the whole structure is in discount and that any bullish entry sits with the broader ladder, not against it. The OB↑ and OB↓ columns work the same way — a column showing unfilled bullish order blocks at low proximity across multiple timeframes is a more durable read than the same reading on one timeframe alone.
The TREND column on the far right collapses each timeframe's macro mode into one tag (CON for continuation, PUL for pullback, TRN for transition, REV for reversal); scan that column for the macro picture.
This view uses just two toggles: Show dashboard and Show 7-timeframe market structure grid. The Properties panel on the left shows the configuration.
Hidden rows still compute for scoring. Turning a timeframe off the display removes it from the visible grid, not from the engine — the dashboard simplifies the view, not the analysis.
█ VWAP Row
! (anatomy-vwap-row.png)
(Screenshot: EURUSD 10M — VWAP row showing current and prior-day anchor values; VWAP label cell hovered)
The VWAP Row gives you the chart's daily fair-value reference without having to plot VWAP on chart. Three cells: a label, the current anchored VWAP with distance to price, and the prior-day completed VWAP value.
The label cell carries the row's hover-tooltip: "Selected VWAP anchor is the fair-value reference. Middle shows current anchored VWAP and distance; right shows the prior completed anchor value." The middle cell — here reading `D: 1.16335 dn | 0.02% above` — packs two facts: the VWAP value is dropping (`dn`), and current price sits 0.02% above the VWAP line. Direction and distance reported in the same cell. The right cell — here `PD: 1.16412` — shows where yesterday's VWAP closed, available as a reference even after the new day's anchor has reset.
VWAP serves the indicator's confluence and structural logic as a reactive level — a place price often respects on revisit. The row makes the reference and distance available at a glance without requiring VWAP to be drawn on chart.
This view uses just two toggles: Show dashboard and Show VWAP row. The Properties panel on the left shows the configuration.
The data cells don't carry their own tooltips; the label-level tooltip covers the whole row.
█ Confluence Row
! (anatomy-confluence-row.png)
(Screenshot: EURUSD 10M — confluence reading 7/15 STANDARD mixed; TIMING title hovered)
The Confluence Row answers "how much evidence is the indicator seeing for the current read?" — and where that evidence is coming from. A headline score (here 7/15 STANDARD with a progress bar and a composition label) sits above three category lines: ZONE, REFERENCE, and TIMING.
The TIMING title tooltip teaches one category's firing rule: "Timing factors activate during major killzones and while recent BOS, CHoCH, or MSS events are still fresh." The same activation logic applies by analogy to the others. ZONE factors fire when price interacts with structural zones (OB, FVG, BB, BPR, sweep proximity, premium/discount position).
REFERENCE factors fire when price relates to anchored references (EMA, VWAP). Each category has its own count of how many factors are firing out of how many possible.
The breakdown matters more than the headline number. Here ZONE reads 4/7 (partial), REFERENCE reads 0/4 inactive, TIMING reads 3/4 (near full). Same 7/15 score, but the composition tells a sharper story — timing-led and structurally-supported, with no reference-level alignment. The composition label at the top (here mixed ) names the dominant mode: structural-led when ZONE dominates, reference-led when REFERENCE dominates, timing-led when TIMING dominates, mixed when factors spread across categories.
This view uses just two toggles: Show dashboard and Show confluence row. The Properties panel on the left shows the configuration.
The headline number is honest; the breakdown is where the read lives.
█ Detail Strip
! (anatomy-detail-strip.png)
(Screenshot: EURUSD 10M — the strip showing all five chart-timeframe sub-components active; CHART TIMEFRAME INTELLIGENCE header hovered)
The Detail Strip is the indicator's compact answer to "what's happening right now on this chart?" . Five chart-timeframe context readings packed into one row: volume, swing position, volatility, session state, and killzone countdown.
The section header tooltip names the five sub-components in order: "Chart-timeframe inputs: volume, swing position, volatility, lunch state, and active killzone countdown." Each sub-component reports a small but distinct fact. VOL shows current volume relative to average. SWING reports where price sits within the current swing range and which zone-state applies ( , , , , ).
VLT reports volatility deviation from baseline (`+36%` here). The session indicator names the active session (EARLY LDN visible) including the lunch state mentioned in the tooltip. The killzone countdown reports time remaining in the active killzone window (`11% KZ LONDON 160m`).
These are all chart-timeframe inputs — they read from the timeframe of the chart, not from the multi-TF ladder. The Detail Strip is the indicator's compact context summary for "what's happening right now, on this chart."
This view uses just two toggles: Show dashboard and Show detail strip. The Properties panel on the left shows the configuration.
█ Market Context
! (anatomy-market-context.png) (Screenshot: EURUSD 10M — the four-row block showing structural context; IMP row hovered)
Market Context tells you what the broader trading environment is doing — where the magnets are, whether impulse is building, what liquidity is doing, and whether the multi-timeframe picture leans one way. Four rows sitting near the bottom of the dashboard: MAG (magnet proximity), IMP (impulse progression), LIQ (liquidity state), and BIAS (cross-timeframe directional conviction).
The IMP row tooltip reveals the indicator's candle-classification scoring rule: "STRONG/SOLID candles can score impulse; HOLLOW/ABSORBED/WEAK do not, though ABSORBED can add a Reversal pattern bonus." The IMP row shows the recent progression of candle classifications (`WEAK → SLID → SLID → NOW: STRG ↑ | 120% volume`) — a four-stage history of how impulse has built over recent bars. The Scenario 1 worked example above teaches this progression pattern in context.
Each row in Market Context reports a different aspect. MAG names the nearest magnetic level (prior-day high, VWAP, prior-day low) and which is closest. LIQ reports active liquidity state — sweep awaiting, sweep active, structural-side dominance (BSL = buy-side, SSL = sell-side). BIAS aggregates conviction from all seven Structure Grid timeframes into a single signed read; its calibration tiers are 7 full, 5+ leaning, 3+ scattered, and no consensus.
This view uses just two toggles: Show dashboard and Show market context rows. The Properties panel on the left shows the configuration.
The BIAS row's aggregation from seven structure rows is the dashboard's clearest cross-section data flow — confluence among components, not just within one.
---
█ Alerts
Alert conditions span three categories, each individually toggleable, all gated by bar close (no intra-bar firing) and with built-in per-family cooldowns:
ENGINE alerts
fire when the Continuation or Reversal engine enters CONFIRMED. Master toggles per engine gate alerts only — both engines continue computing and displaying regardless.
-
STRUCTURE alerts
fire on chart-timeframe phase transitions — Expansion, Pullback, Consolidation, Continuation, Reversal — and on confirmed sweep reclaims (after the confirmation-window FSM completes).
-
ZONE alerts
fire when price enters swing-high or swing-low proximity, or when price enters the OTE discount (21–38%) or OTE premium (62–79%) zones.
Use them à la carte. Subscribe to phase transitions for context, to engine confirmations for high-tier readings, or to zone entries for proximity-based attention.
! (alert-categories.png)
(Screenshot: Alert conditions grouped by category — ENGINE for verdict confirmations, STRUCTURE for chart-timeframe phase transitions and sweep-reclaim events, ZONE for swing proximity and OTE discount/premium entries — each individually toggleable and bar-close gated)
---
█ Getting Started
Add IID Dual to any chart. The indicator works on any instrument and any timeframe PulseWire supports.
-
Collapse the chart legend (click the arrow next to the indicator name) for a cleaner view — all status-line clutter is already suppressed by design.
-
Read the dashboard. Market State and the Intelligence Briefing give the headline; the structure grid, confluence breakdown, and market context fill in the detail.
-
Configure timeframes under the Timeframes input group to match your workflow, then choose your alert categories.
---
█ Feeling Overwhelmed? Start Simple
Dashboards in this category are often described as overwhelming. IID Dual is built to be turned down. Every section — Verdict Banner, Intelligence Briefing, Structure Grid, VWAP, Confluence, CTI strip, Market Context, Footer, Chart Overlays — is individually toggleable from the Properties panel. Each of the four worked examples above shows a different dashboard configuration — the toggles in their Properties panels are the recipe.
! (feeling-overwhelmed-divergent-demo.png)
(Screenshot: EURUSD 10M · all sections lit · Cont 42% vs Rev 50% · the system speaking in full)
A clean starting point: leave only Market State and the Intelligence Briefing on, and add bands back as their meaning clicks. Anything you hide still computes for scoring — you simplify the view, not the analysis. Every dashboard cell and every input carries a plain-language tooltip on hover, and status-line clutter is already suppressed by design.
! (properties-display-toggles.png)
(Screenshot: Properties → Inputs → Display panel — every dashboard section individually toggleable, with (i) tooltip indicators that reveal plain-language explanations on hover for inputs and dashboard cells throughout)
---
█ ICT/SMC Concepts Used
Break of Structure (BOS) —
price closes beyond a prior swing in the existing trend direction, confirming continuation.
-
Change of Character (CHoCH) —
price closes beyond a prior swing against the current trend, signalling a possible regime change.
-
Market Structure Shift (MSS) —
a higher-conviction structural break, often paired with displacement, marking a transition between bullish and bearish delivery.
-
Order Block (OB) —
the last opposing candle before a displacement move, treated as an institutional reactive level.
-
Fair Value Gap (FVG) —
a three-candle imbalance where price moved with insufficient overlap, leaving an inefficiency that may be revisited.
-
Inverted FVG (iFVG) —
an FVG that has been traded through and now acts as resistance/support in the opposite direction.
-
Breaker Block (BB) —
a failed order block that has been broken and retested, often signalling a structural pivot.
-
Balanced Price Range (BPR) —
overlap of bullish and bearish FVGs, treated as a high-probability reactive area.
-
Liquidity Sweep —
price taking out a prior swing high/low (equal highs/lows or pivot extremes) before reversing.
-
Sweep Reclaim —
a confirmed sweep where price closes back inside the original range with follow-through, distinguishing a successful raid from a continuation.
-
Premium / Discount Zones —
the upper and lower halves of the active swing range; OTE values sit within these.
-
Optimal Trade Entry (OTE) —
the 62–79% premium retracement (short-bias) and the 21–38% discount retracement (long-bias) of the active swing.
-
Kill Zones —
the Asian, London, NY AM, and NY PM session windows where institutional volume is concentrated.
-
VWAP —
Volume Weighted Average Price, anchored to Daily, Weekly, Session, or Monday, with previous-anchor reference.
-
Impulse Classification —
categorisation of directional moves by displacement strength, absorption, and volume context.
---
█ Limitations, Transparency & Development
Built-in tooltip system.
Every cell, column header, and dashboard section in IID Dual carries a contextual tooltip. Hover over any data point, a verdict state, a confluence factor, a structure label, a modifier, a row title, and the indicator explains what you're looking at, how it was calculated, and what it means in the current market context.
The dashboard is designed to teach as you use it, so newcomers to ICT and SMC concepts can build fluency without leaving the chart, and experienced traders can verify the exact methodology behind any reading. The Intelligence Briefing is the primary interpretive layer; the tooltip system is the reference layer beneath it.
Non-prescriptive by design.
This indicator describes market conditions. It does not issue buy or sell instructions, place orders, or claim a strategy edge. Alerts report state changes — not trade calls.
Methodology honesty.
The confluence engine treats its factors with equal weighting; the Intelligence Briefing's OBSERVED column is intentionally conservative and may show fallback narration when structural evidence is sparse. The Reversal engine requires hard gates before it will score, which by design produces fewer signals than the Continuation engine.
Not financial advice.
Trading involves risk. This indicator is an analytical tool. All decisions are the trader's.
Active development.
IID Dual is actively maintained. Feature updates, additional alert conditions, methodology refinements, and bug fixes are delivered through code updates — see release notes below the description for the latest changes. Indicator

Indicator

[ A L P H A X ] SURGEAlphaX SURGE — Liquidity Sweep + Market Structure + Premium/Discount Confluence Engine: Smart Money Concepts with 6-Layer Institutional Entry System, HTF Bias Filter & Order Block Detection
AlphaX SURGE is a professional-grade smart money concepts system built around the three foundational mechanics that drive institutional price delivery: liquidity sweeps, market structure shifts, and premium/discount zone positioning. Where most SMC indicators simply draw labels on a chart, SURGE integrates these concepts into a live 6-layer confluence scoring engine that only fires when a genuine liquidity grab, a confirmed structure event, correct PD zone positioning, higher timeframe bias alignment, squeeze momentum, and volume delta pressure are all pointing in the same direction simultaneously. The result is a system that reads the market the way institutional traders do — not chasing breakouts, not entering on arbitrary crossovers, but waiting for the precise sequence of events that precedes the highest-probability directional moves. Designed for active traders across crypto, forex, gold, and indices on any timeframe.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🏦 The Smart Money Framework — How Institutions Move Price
To understand AlphaX SURGE, you first need to understand the three-phase institutional trade cycle that the system is designed to detect.
Phase 1 — Liquidity Accumulation:
Institutions need massive order size. They cannot fill that size at a single price — they need a pool of counterparty orders. Retail stop losses clustered below swing lows (sell-side liquidity) and above swing highs (buy-side liquidity) are that pool. Before a major directional move, institutions deliberately push price into these liquidity pools to trigger stops and fill their positions against the retail orders being stopped out.
Phase 2 — Structure Shift:
After the liquidity grab, the institution has filled its position. Now price reverses aggressively. This reversal breaks the prior market structure — creating either a Change of Character (CHoCH) if it reverses the previous trend, or confirming a Break of Structure (BOS) continuation if it aligns with the existing trend. The structure event is the confirmation that the liquidity sweep was genuine, not noise.
Phase 3 — Delivery:
With positions filled and structure confirmed, the institution delivers price to its target. This delivery phase is what SURGE is designed to capture — entering at the moment the sweep and structure confirmation align with the broader institutional context.
AlphaX SURGE does not simply detect these phases independently. It requires them to occur in the correct sequence and within a qualifying multi-layer confluence environment before any signal fires.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💧 Liquidity Sweep Detection
The sweep detection engine identifies the moment institutions grab liquidity from a significant swing level. Every swing high and swing low is tracked in real time using a configurable pivot length (default: 5 bars). These levels represent the two most important current liquidity pools — the sell-side liquidity (SSL) below the most recent swing low, and the buy-side liquidity (BSL) above the most recent swing high.
Bull Liquidity Sweep (SSL Grab):
The bar's low extends below the tracked swing low level by at least the minimum sweep wick threshold (default: 0.05× ATR)
The bar closes back above the swing low level — confirming the wick was a grab, not a genuine breakdown
The bar closes bullish (close above open) — confirming buying pressure on the reversal close
Bear Liquidity Sweep (BSL Grab):
The bar's high extends above the tracked swing high level by at least the minimum wick threshold
The bar closes back below the swing high level
The bar closes bearish — confirming selling pressure on the reversal close
The minimum sweep wick filter is a critical quality gate. Without it, any bar that briefly touches a swing level and reverses would register as a sweep. The ATR-normalized wick requirement ensures the grab extended far enough below or above the level to genuinely trigger stop orders — not just grazed the level on low momentum.
Sweep recency: To accommodate the reality that entry signals often develop one bar after the sweep rather than on the sweep bar itself, SURGE accepts sweeps from the current or immediately preceding bar. This one-bar lookback prevents missed entries on fast-moving setups where the structure confirmation fires on the bar immediately following the sweep candle.
Visual output: Every confirmed sweep is marked with a diamond shape — yellow-green below the bar for bull sweeps, red above for bear sweeps — providing instant visual identification of every liquidity grab on the chart.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📐 Market Structure Engine — BOS & CHoCH
The market structure engine runs a real-time tracking system for the current structural trend and identifies every significant structure event as it occurs.
Structural trend tracking:
The engine continuously tracks the most recent confirmed swing high and swing low. When price closes above the most recent swing high, a bullish structure break is detected. When price closes below the most recent swing low, a bearish structure break is detected. The structural trend variable updates on every such event — shifting between bullish (1) and bearish (-1) states.
Change of Character (CHoCH):
A CHoCH occurs when a structure break happens in the opposite direction of the current structural trend. A bullish CHoCH means price was in a bearish structural trend and has now broken above a swing high — the character of the market has changed. A bearish CHoCH is the inverse. CHoCH events are the highest-quality structure signals in the system — they represent a genuine reversal of the institutional order flow direction. Labeled on the chart in orange.
Break of Structure (BOS):
A BOS occurs when a structure break aligns with the current structural trend — a continuation event. A bullish BOS in a bullish trend confirms the uptrend is intact. A bearish BOS in a bearish trend confirms the downtrend continues. Labeled on the chart in yellow-green (bull) or red (bear).
Signal type control:
Two settings independently toggle which structure types can trigger signals:
Allow CHoCH Reversal Setups — enables signals on trend-reversal structure events. These are typically the highest-reward setups but require the sweep and confluence conditions to be exceptionally strong
Allow BOS Continuation Setups — enables signals on trend-continuation structure events. These are typically higher-frequency and occur within established directional flows
Both can be enabled simultaneously, giving SURGE the ability to detect both reversal and continuation setups across all market conditions.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📦 Order Block Detection & Visualization
Every confirmed structure event automatically spawns an Order Block — the institutional supply or demand zone that preceded the structure break. Order blocks represent the price range where the institutional position was built before the delivery move.
How order blocks are spawned:
When a bullish CHoCH or bullish BOS is confirmed, SURGE looks back up to the configured lookback period (default: 12 bars) to find the most recent bearish candle prior to the structure break — the last selling candle before the institutional buying move began. The high and low of that candle become the bull order block zone.
When a bearish CHoCH or bearish BOS is confirmed, SURGE looks back to find the most recent bullish candle — the last buying candle before the institutional selling move began. That candle's range becomes the bear order block zone.
Why this candle: The last opposing candle before a major directional move is where institutions were absorbing the final counterparty orders. It is the true origin of the move — and the zone where unfilled institutional orders are most likely to remain, making it the natural magnet for price on any retest.
Order block visualization: Each order block is rendered as a semi-transparent box extending forward by the configured number of bars (default: 20). Bull order blocks are shaded yellow-green; bear order blocks in red. The most recent active order block of each direction is tracked by the confluence system.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚖ Premium / Discount Zone Engine
The Premium/Discount framework is one of the most powerful filtering tools in institutional price action analysis. It answers a simple question: is price currently cheap or expensive relative to the recent dealing range?
Dealing range calculation:
On every bar, SURGE calculates the highest high and lowest low over the configured range length (default: 50 bars). The midpoint of this range is the Equilibrium level — the 50% point of the current dealing range, plotted as a purple dotted line on the chart.
Discount zone: Price at or below equilibrium. From an institutional perspective, price is cheap — this is where smart money buys. Bull entries in discount align with the institutional buying thesis.
Premium zone: Price at or above equilibrium. Price is expensive — this is where smart money sells. Bear entries in premium align with the institutional selling thesis.
Why this filter dramatically improves accuracy: A bullish sweep and structure confirmation at premium prices is a low-quality setup — you are buying at the top of the range where institutions are looking to distribute, not accumulate. The same bullish setup in discount is a structurally superior entry — buying at the institutional accumulation zone where the reward-to-risk profile is fundamentally better. The PD zone filter enforces this discipline automatically, blocking counter-PD setups before they reach the confluence gate.
The PD filter can be toggled off for traders who prefer to trade all qualifying setups regardless of range position — useful on strongly trending markets where price consistently stays on one side of equilibrium.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📡 HTF Bias Filter — Multi-Timeframe Alignment
The Higher Timeframe Bias filter is one of the most consequential filters in the entire system. A setup that occurs against the higher timeframe trend is a counter-trend trade — it may look compelling on the current timeframe but is fighting the dominant institutional flow.
How it works:
SURGE pulls two EMAs from the configured higher timeframe (default: 60-minute) — a fast EMA (default: 21) and a slow EMA (default: 55). When the fast HTF EMA is above the slow HTF EMA, the higher timeframe trend is bullish. When below, it is bearish.
Bull bias: Fast HTF EMA above slow HTF EMA — the higher timeframe institutional flow is upward. Bull setups on the current timeframe are with-trend trades.
Bear bias: Fast HTF EMA below slow HTF EMA — the higher timeframe flow is downward. Bear setups are with-trend trades.
The power of HTF alignment in SMC trading: A bullish sweep and CHoCH on M5 in the direction of a confirmed H1 uptrend is a fundamentally different trade from the same setup occurring against an H1 downtrend. The HTF filter ensures SURGE only fires setups where the current timeframe structure event is aligned with the broader institutional delivery direction — the single highest-quality filter available for SMC-based systems.
The HTF timeframe is fully configurable. For M1–M5 scalping, H1 is the default. For M15–H1 trading, H4 or Daily is recommended.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🧠 The 6-Layer Confluence Engine
All six layers score independently on every bar. A signal only fires when the score meets the configured minimum (default: 4 of 6), the sweep condition is active, a qualifying structure event has occurred, and the ADX, session, and cooldown conditions are met.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Layer 1 — Liquidity Sweep
The foundational layer. Awards 1 point when a qualifying liquidity sweep (SSL for bull, BSL for bear) has occurred on the current or immediately preceding bar. This layer is also a hard requirement — regardless of the confluence score, no SURGE signal can fire without a recent sweep. This is the event that initiates the institutional sequence. Without a genuine liquidity grab, the setup is not a SURGE setup.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Layer 2 — Market Structure
Awards 1 point when the current structural trend agrees with the signal direction — a bullish structural trend for bull signals, bearish for bear. The structure layer also enforces the structure type requirement : a qualifying CHoCH or BOS must have occurred (subject to the Allow CHoCH / Allow BOS settings) for a signal to fire. Structure is both a scoring layer and a hard prerequisite, identical to the sweep requirement.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Layer 3 — Premium / Discount Zone
Awards 1 point when price is in the correct PD zone for the signal direction — discount for bull signals, premium for bear signals. When the PD filter setting is off, this layer always votes in favor. This layer encodes the institutional value positioning principle: buy cheap, sell expensive.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Layer 4 — HTF Bias
Awards 1 point when the higher timeframe EMA structure agrees with the signal direction. This is the multi-timeframe alignment layer — the most macro of the six confluence inputs. When HTF bias is disabled in settings, this layer always votes in favor.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Layer 5 — Squeeze Momentum
The TTM Squeeze momentum layer — identical to the implementation in Pulse Scalper and VOID. When the Bollinger Band/Keltner Channel squeeze fires with directional momentum (positive and rising for bull, negative and falling for bear), this layer votes. The orange squeeze background tint provides pre-signal awareness when energy is compressing. A SURGE setup that coincides with a squeeze release means the SMC structure event and the breakout energy event are occurring simultaneously — one of the highest-quality convergences the system can detect.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Layer 6 — Volume Delta
The proprietary volume pressure model — splitting each candle's volume into estimated bull and bear components, confirmed by OBV slope. This layer confirms that real institutional capital flow is behind the sweep and structure move. A liquidity sweep with no volume delta confirmation is a weak, potentially algorithmic sweep. A sweep with strong volume delta agreement means genuine order flow drove the grab — the highest-quality sweep condition.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🏷 Signal Firing Logic
A SURGE signal fires when all of the following are simultaneously true:
A qualifying liquidity sweep occurred on the current or immediately preceding bar (hard requirement — independent of scoring)
A qualifying structure event (CHoCH or BOS per settings) has confirmed the structural direction (hard requirement)
Confluence score meets or exceeds the configured minimum (default: 4 of 6)
VWAP bias confirms — price above VWAP for bull, below for bear (when VWAP filter is enabled)
ADX confirms a trending market above the minimum threshold
Session filter confirms active market hours
Signal cooldown has elapsed since the last signal in the same direction (default: 10 bars)
Edge triggering: The signal fires only on the bar the conditions first become true — not repeatedly while they remain true. Each triangle is a distinct, fresh setup event.
Score label: Every signal prints the live confluence count (e.g., 5/6 or 6/6 ) directly on the chart so you know the quality of every setup at a glance.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 Sweep-Anchored Stop Loss Placement
SURGE includes a purpose-built stop loss mode specifically designed for liquidity sweep setups: SL Beyond Sweep Wick (default: on).
When enabled, the stop loss for a bull entry is placed at the tracked swing low level (the level that was swept) minus an ATR buffer. For a bear entry, the stop is placed at the tracked swing high level plus an ATR buffer.
Why this is the structurally correct stop for sweep setups: The sweep wick represents the maximum extent of the institutional grab. If price returns below the swept swing low (bull) and closes there, the sweep thesis is invalidated — institutions were not grabbing that liquidity for a reversal, the level was genuinely broken. Placing the stop at the swept level is therefore not an arbitrary distance — it is the exact price at which the setup's core premise is proven wrong.
When this setting is off, the stop reverts to a standard ATR distance from the entry bar's low or high.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🛡 Dynamic ATR Exit System
Stop Loss: Placed at the swept swing level (when enabled) or bar extreme, plus an ATR buffer (default: 1.3×). Your structural invalidation boundary.
TP1 — Partial Target (50%): 2.0× ATR from entry — slightly wider than the Pulse Scalper and VOID defaults, reflecting the higher-conviction, lower-frequency nature of SURGE setups. Scale out 50% here and move the remainder to breakeven.
TP2 — Full Target: 3.8× ATR from entry. Full position exits on TP2 hit. A labeled TP marker appears on the chart.
ATR Trailing Stop: Dynamic stop advancing with price every bar at 1.6× ATR behind the current bar's extreme. Plotted as a live orange line. In genuine institutional delivery moves following a sweep, price frequently extends well beyond the fixed TP2 — the trail captures this extension without predetermining a ceiling on the gain.
All exit levels are plotted as live lines for the duration of the trade and cleared automatically on exit.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Live Dashboard
The real-time dashboard displays the complete internal state across four sections, updated on every bar.
STRUCTURE
Trend — current market structure state: ▲ BULLISH, ▼ BEARISH, or — RANGE. This reflects the confirmed structural trend as tracked by the BOS/CHoCH engine
Liquidity — live sweep detection status: ▲ SSL SWEEP (sell-side grab, bullish signal) or ▼ BSL SWEEP (buy-side grab, bearish signal). Updates in real time on sweep bars
PD Zone — current premium/discount position: ◧ DISCOUNT, ◧ PREMIUM, or — EQ (at equilibrium). Color-coded yellow-green for discount, red for premium
HTF / SESSION
HTF Bias — higher timeframe EMA alignment: ▲ BULL or ▼ BEAR. Confirms whether the macro institutional flow supports the current setup direction
Session — ✓ ACTIVE or ✗ OFF. Confirms whether the session filter is open for signals
ADX — live ADX value with ✓ or ✗ pass/fail indicator
CONFLUENCE
Momentum — squeeze and directional momentum state: ⚡ SQZ (squeeze building), ▲ or ▼ for directional momentum, or — for flat
Vol Delta — volume pressure direction: ▲ BULL, ▼ BEAR, or —
Bull Score — live 0–6 score. Background highlights yellow-green when threshold is met
Bear Score — live 0–6 score. Background highlights red when threshold is met
POSITION
Position — ▲ LONG, ▼ SHORT, or — FLAT with background color highlight
Stop Loss — active SL level (sweep-anchored or ATR-based), color-coded by direction
TP1 — active first take-profit level
Bars in Trade — bars elapsed since entry
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 Chart Visual System
◆ Diamond (below bar, yellow-green) — bull liquidity sweep confirmed. SSL grabbed with close back above the swing low
◆ Diamond (above bar, red) — bear liquidity sweep confirmed. BSL grabbed with close back below the swing high
CHoCH ▲ / CHoCH ▼ label (orange) — Change of Character detected. Trend reversal structure event
BOS ▲ / BOS ▼ label (yellow-green / red) — Break of Structure detected. Trend continuation structure event
▲ Triangle (below bar) — bull SURGE entry. All conditions met
▼ Triangle (above bar) — bear SURGE entry. All conditions met
Score Label (e.g. 5/6) — confluence count at signal time on every entry triangle
Order Block Boxes — semi-transparent zones marking institutional supply and demand origins. Yellow-green for bull OBs, red for bear OBs
Liquidity Level Lines — dashed lines projecting the current swing high (sell-side liquidity, red dashed) and swing low (buy-side liquidity, yellow-green dashed) forward
Equilibrium Line (purple dots) — the 50% midpoint of the current dealing range
EMA Ribbon Fill — yellow-green fill during bull EMA structure, red during bear, gray during flat
VWAP Line (purple) — optional, toggleable session VWAP
Orange Squeeze Background — active during Bollinger/Keltner squeeze compression
Yellow-green background tint — active during open long trades
Red background tint — active during open short trades
SL / TP1 / TP2 / Trail Lines — all four exit levels plotted live for the duration of every trade
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 How to Trade with AlphaX SURGE — Step by Step
Step 1 — Establish Context Before the Session
Check the dashboard: what is the current structural trend and HTF bias? If both show the same direction, you have macro confluence — prioritize setups in that direction
Check the PD Zone row: is price currently in discount (favor longs) or premium (favor shorts)? Price at equilibrium is the lowest-quality PD position — wait for it to develop to one side
Note where the liquidity level lines are on the chart — these dashed lines mark exactly where the next sweep targets are sitting
Step 2 — Watch for a Sweep Diamond
A yellow-green ◆ diamond below the bar signals an SSL grab — the sweep phase has occurred. The system is now in active scan mode for a SURGE signal
A red ◆ diamond above the bar signals a BSL grab
The sweep is the trigger for your attention — not the entry signal. The entry comes next
Step 3 — Confirm the Structure Event
Watch for a CHoCH or BOS label to appear following the sweep. A CHoCH after a sweep is the highest-quality sequence — institutional grab followed by genuine trend reversal confirmation
Check the confluence scores on the dashboard. After a sweep, the bull or bear score should be climbing toward the threshold as the structure, PD, and momentum layers align
Step 4 — Enter on the SURGE Triangle
A ▲ triangle confirms all conditions are met for a long. A ▼ triangle confirms all conditions for a short
Read the score label. A 6/6 signal means every layer — sweep, structure, PD zone, HTF bias, momentum, and volume — are all aligned simultaneously. These are the highest-conviction setups SURGE produces and warrant full position size
A 4/6 or 5/6 signal is still a valid SURGE entry — standard position size, strict stop management
Step 5 — Manage with Live Exit Lines
The SL line is your swept level invalidation. If the sweep level is retaken cleanly, the setup thesis is gone
Watch the orange trail line advance with price as the institutional delivery move develops
At TP1, scale out 50% and move the remainder to breakeven — let the trail capture the full delivery
Step 6 — Exit and Reset
A TP marker confirms TP2 reached — full exit and system reset
An SL marker confirms stop or trail triggered — close the position and wait for the next sweep event to develop
Do not re-enter on impulse after a stopped trade. The swept level that was just violated is now the new liquidity target for the next setup. Wait for the next clean sweep and structure sequence
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ Identifying Low-Quality Conditions — When Not to Trade
Stand aside when:
HTF Bias opposes the setup direction — a bullish sweep and CHoCH against an H1 downtrend is a counter-trend reversal trade. The institutional macro flow is working against you. These setups fail at a much higher rate than with-trend entries
PD Zone is wrong for the direction — a bull setup in premium or a bear setup in discount means you are entering at the institutionally unfavorable side of the range. Wait for price to correct to the appropriate zone
Sweep occurred but no CHoCH or BOS followed — a sweep without structure confirmation means the liquidity grab did not produce a genuine reversal or continuation. The institution may have filled only part of its position. Wait for structure to develop
ADX ✗ — the market is not trending. SMC concepts work best in directional markets. In ranging conditions, sweeps are frequently noise events rather than institutional accumulation
Score stuck at 2 or 3 of 6 after a sweep — the confluence environment is too fragmented. Too many layers are disagreeing. A sweep in isolation is not a trade
Multiple sweeps in rapid succession without entry signals — choppy markets produce repeated liquidity grabs in both directions. The confluence gate will block most of these, but the underlying message is that the market is in an oscillating range — not the institutional delivery environment SURGE is designed for
Structure trend and HTF bias are both — or FLAT — no clear institutional direction exists. No SURGE setup can develop until structural bias is established
What to do:
Wait for HTF bias and structural trend to align in the same direction — this is the macro setup condition for the highest-quality SURGE signals
Wait for price to reach the correct PD zone for the anticipated direction before the sweep occurs — the ideal sequence is: price in discount, SSL sweep, bullish CHoCH, 5–6/6 confluence signal
Watch the liquidity level lines — price approaching a level is the pre-alert that a sweep may be imminent. Prepare your confluence scan as price approaches those lines
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ Key Features
💧 Real-time liquidity sweep detection — identifies SSL and BSL grabs with minimum ATR wick filter and close-back confirmation, eliminating noise sweeps
📐 Full market structure engine — tracks swing highs and lows, detects CHoCH and BOS events, maintains a live structural trend state
📦 Automatic order block detection — spawns OB zones on every confirmed structure event, marking the exact institutional origin of each move
⚖ Premium/Discount zone filter — enforces institutionally correct entry positioning using a dynamic equilibrium level across the recent dealing range
📡 HTF bias filter — pulls a dual-EMA structure from a configurable higher timeframe to confirm macro institutional flow alignment
🧠 6-layer confluence gate — Sweep, Structure, PD Zone, HTF Bias, Squeeze Momentum, and Volume Delta must reach the minimum score threshold before a signal fires
📊 Live confluence scoring — bull and bear scores updated every bar, displayed on the dashboard before any signal appears
🔀 CHoCH / BOS signal type control — independently enable reversal setups, continuation setups, or both
🎯 Sweep-anchored stop loss — places the SL at the structural invalidation level (the swept swing point) rather than an arbitrary ATR distance
⚡ TTM Squeeze integration — Bollinger/Keltner compression detection flags pre-breakout energy with orange background tint and dashboard state
📈 Proprietary volume delta model — estimates institutional order flow pressure without exchange-level data, confirmed by OBV slope
🌐 VWAP session bias — enforces institutional session direction alignment on every signal
🛡 Dynamic ATR trailing stop — orange line advances with price every bar, capturing full institutional delivery moves beyond the fixed TP2
💹 Liquidity level lines — dashed projections of the current swing high and swing low showing exactly where the next liquidity pools sit
📊 22-row live dashboard — Structure, HTF/Session, Confluence, and Position sections updated in real time
🔔 12 alert conditions — sweep events, CHoCH events, entry signals, TP1/TP2 hits, and stop hits for both directions
🎨 Fully cohesive dual-tone color system — yellow-green for all bullish elements, red for all bearish, orange for squeeze and trail, purple for VWAP and equilibrium
⚙ Fully configurable — all pivot lengths, OB parameters, PD range, HTF timeframe and EMA periods, confluence minimum, ADX threshold, exit multipliers, session window, and all colors are independently adjustable
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙ Settings Reference
Structure & Liquidity
Swing Pivot Length — bars used for pivot high/low detection. Controls the significance of swing levels tracked for sweeps and structure (default: 5)
Show BOS / CHoCH Labels — toggle structure event labels on the chart
Show Liquidity Levels — toggle the dashed swing high and swing low projection lines
Liquidity Line Extend — how many bars forward the liquidity level lines project (default: 25)
Min Sweep Wick (ATR x) — minimum wick extension beyond the swing level required to register a sweep (default: 0.05× ATR)
Order Blocks
Show Order Blocks — toggle OB zone boxes on or off
Max Order Blocks — maximum OBs stored in memory simultaneously (default: 25)
OB Extend (bars) — how many bars forward OB boxes project (default: 20)
OB Lookback Bars — how many bars back to search for the origin candle when spawning an OB (default: 12)
Premium / Discount
Show Equilibrium Line — toggle the dealing range midpoint line
Dealing Range Length — bars used to calculate the high/low range for PD zone positioning (default: 50)
Require Correct PD Zone — when on, longs require discount positioning and shorts require premium positioning (default: on)
HTF Bias
Use HTF Trend Filter — toggle the higher timeframe bias requirement
HTF Timeframe — the higher timeframe to pull EMA data from (default: 60-minute)
HTF Fast EMA — fast EMA period on the HTF (default: 21)
HTF Slow EMA — slow EMA period on the HTF (default: 55)
EMA Ribbon
Fast / Slow / Signal EMA — triple ribbon periods (defaults: 8 / 21 / 50)
Show EMA Ribbon — toggle ribbon fill and line plots
Squeeze Momentum
BB Length / BB Mult — Bollinger Band parameters (defaults: 20 / 2.0)
KC Length / KC Mult — Keltner Channel parameters (defaults: 20 / 1.5)
Momentum Length — linear regression momentum period (default: 12)
Volume Delta
Volume MA Length — EMA smoothing for volume estimates (default: 14)
OBV Slope Length — lookback for OBV slope directionality (default: 10)
VWAP
Use VWAP Filter — when on, requires price to be on the correct VWAP side for each signal direction
Show VWAP Line — toggle VWAP line on the chart
Confluence Gate
Min Layers Required — minimum confluence votes needed for a signal (default: 4 of 6)
Session Filter — toggle active hours restriction
Active Session — configurable session window (default: 0700-2000)
Signal Cooldown — minimum bars between consecutive signals in the same direction (default: 10)
Allow CHoCH Reversal Setups — enables signals on trend-reversal structure events
Allow BOS Continuation Setups — enables signals on trend-continuation structure events
ADX Filter
Use ADX Filter — toggle the trend quality gate
ADX Length — calculation lookback (default: 14)
ADX Minimum — threshold below which all signals are suppressed (default: 18)
Exit Settings
ATR Length — lookback for all ATR exit calculations (default: 10)
SL ATR Mult — ATR buffer beyond the swept swing level (default: 1.3)
TP1 ATR Mult — first take-profit distance (default: 2.0)
TP2 ATR Mult — full exit target distance (default: 3.8)
Use ATR Trailing Stop — toggle dynamic trailing stop
Trail ATR Mult — trailing distance from current bar's extreme (default: 1.6)
Show Exit Levels — toggle all exit level lines
SL Beyond Sweep Wick — anchors stop to the swept swing level (default: on)
Display
Show Confluence Score Label — prints live score on every signal triangle
Show Dashboard — toggle the full dashboard
Dashboard Position — Top Left / Top Right / Bottom Left / Bottom Right
Colors
Bull / Bull Bright — yellow-green family for all bullish signals, fills, and labels
Bear / Bear Bright — red family for all bearish signals, fills, and labels
Squeeze — orange for squeeze tint and trailing stop line
EMA Fast / Slow / Signal — individual EMA line colors
Ribbon Fill Bull / Bear / Flat — ribbon fill colors for each trend state
Buy-Side / Sell-Side Liquidity — liquidity level line colors
Bull / Bear Order Block — OB box fill and border colors
Equilibrium Line — dealing range midpoint color (default: purple)
VWAP Line — VWAP plot color
BOS Bull / BOS Bear / CHoCH — structure label colors
Bull / Bear Sweep Marker — sweep diamond colors
SL / TP / TP2 / Trail Lines — individual exit level line colors
Long Zone BG / Short Zone BG — active trade background tints
Bull / Bear Label Text — score label text colors
Dash Text / Dash BG / Dash Header / Dash Section / Dash Frame — full dashboard color control
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 Alert Conditions (12 total)
Liquidity Alerts
Bull Liquidity Sweep — sell-side liquidity grabbed, watch for long setup development
Bear Liquidity Sweep — buy-side liquidity grabbed, watch for short setup development
Structure Alerts
Bull CHoCH — bullish Change of Character confirmed, structural trend shifting to bullish
Bear CHoCH — bearish Change of Character confirmed, structural trend shifting to bearish
Entry Alerts
Bull SURGE Entry — all conditions met: sweep, structure, confluence, ADX, session
Bear SURGE Entry — all conditions met for a short institutional sweep entry
Exit Alerts
Bull TP1 Hit — scale out 50% of long position
Bull TP2 Hit — full long position exit
Bull Stop Hit — stop loss or trail triggered on long
Bear TP1 Hit — scale out 50% of short position
Bear TP2 Hit — full short position exit
Bear Stop Hit — stop loss or trail triggered on short
All alert messages are formatted as const strings for clean webhook and notification platform integration.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 Recommended Settings by Instrument & Timeframe
The default configuration is optimized for XAUUSD, major forex pairs, and crypto on M1–M15 :
Min Layers at 4/6 — strong confluence while accounting for the complexity of the 6-layer system
HTF at 60-minute — provides meaningful higher timeframe context for intraday M1–M15 setups
Sweep wick at 0.05× ATR — sensitive enough to catch genuine institutional grabs without registering micro-noise sweeps
SL Beyond Sweep Wick on — structurally anchored stop placement at the institutional invalidation level
Allow CHoCH and BOS both on — captures both reversal and continuation setups in the full range of institutional delivery scenarios
For other instruments or timeframes, adjust:
Higher timeframes (H1, H4) — set HTF to Daily or Weekly, increase Swing Pivot Length to 8–10, increase TP2 to 5.0–6.0× ATR, raise Min Confidence to 5/6
Crypto (BTC, ETH) — increase Min Sweep Wick to 0.1–0.15× ATR to filter out the higher frequency of noise sweeps in volatile crypto sessions, increase KC Mult to 2.0
Indices (NAS100, US30) — tighten session to 09:30–16:00, increase ADX minimum to 22, set HTF to H4 for intraday M5–M15 trading
CHoCH-only mode — disable Allow BOS Continuation, raise Min Layers to 5/6. This produces the fewest signals but each represents a genuine trend reversal with maximum institutional evidence
More signals — lower Min Layers to 3, reduce Cooldown, disable PD Zone requirement, disable HTF filter
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
👥 Who This Is For
🏦 Smart money concepts and ICT methodology traders — SURGE is the quantitative implementation of the core SMC trading sequence: liquidity grab, structure shift, PD zone entry. Everything you execute manually in an SMC framework is automated and filtered here
🥇 Gold (XAUUSD) and forex traders — institutional order flow mechanics are most consistent and powerful on these instruments. Default settings are calibrated for gold intraday
📊 Multi-timeframe traders — the HTF bias filter is built for traders who use higher timeframe confluence as a core component of their trade selection process
🎯 Traders who want to stop buying highs and selling lows — the PD zone filter enforces the discipline of buying in discount and selling in premium, the foundational institutional positioning principle
🧠 Systematic traders — the 6-layer confluence score provides a fully quantified quality metric for every setup, replacing subjective SMC judgment with objective numerical scoring
📈 Traders who want to trade with institutions, not against them — every component of SURGE — the sweep detection, structure engine, PD zone, HTF filter, order blocks, and liquidity lines — is designed to identify and align with genuine institutional order flow
⚠ Traders who struggle with SMC subjectivity — traditional SMC analysis requires significant discretion. SURGE removes that discretion by encoding the rules objectively and applying them consistently on every bar across all instruments and timeframes
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 Notes
All signals are confirmed on bar close — the indicator is non-repainting by design. Structural trend tracking, sweep detection, and confluence scoring all finalize on confirmed bars only
The swing pivot detection has an inherent offset of swingLen bars — a pivot is only confirmed after swingLen bars have passed to the right of the pivot bar. This is standard for pivot-based systems and is not repainting — it is real-time confirmation
Order blocks are spawned on structure confirmation bars. The OB origin candle is the most recent opposing candle within the lookback window prior to the structure event — representing the genuine institutional origin zone
The structural trend variable is persistent — once a bullish trend is established by a BOS/CHoCH, it remains bullish until a bearish structure break occurs. This means the structure layer can remain in a favorable state across many bars between signals
Maximum 500 labels and 500 lines and 300 boxes are rendered. On very active low-timeframe charts with long history, oldest labels, order block boxes, and liquidity lines may be removed by PulseWire's rendering limits
The VWAP calculation resets at each session start. On 24-hour crypto instruments, consider disabling the VWAP filter for best system behavior
The Trade Status section tracks position direction from signal to exit within the chart session — it does not connect to your broker or brokerage account
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ Disclaimer
This indicator is a technical analysis and visualization tool intended for educational and informational purposes only. It does not constitute financial advice or a recommendation to buy or sell any financial instrument. All signals are generated from historical and real-time price data using mathematical calculations — their accuracy or profitability is not guaranteed. Past performance of any signal type does not guarantee future results. Always conduct your own analysis, use proper risk management, and consult a licensed financial advisor before making any trading decisions. The author accepts no responsibility for any losses incurred from the use of this indicator.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Built for traders who understand that price moves to take liquidity before it moves to deliver value — and who want a system precise enough to be positioned for that delivery every time. Indicator

Indicator

[MAD] SMC1. OVERVIEW
SMC Event Markers is a complete Smart-Money-Concepts toolkit that draws every major institutional footprint on the chart — and then ranks every zone by relevance so you instantly see which ones actually matter.
Most SMC indicators have the same problem: they paint dozens of FVGs, order blocks, and liquidity lines, and leave you to decide what to trade. After ten zones the chart looks like a dropped Lego set. This indicator solves that. Every active zone is scored 0–100 against five independent factors. Low-scoring zones fade or disappear automatically. A compact dashboard pins the top-ranked setups to a chart corner so you always know where the high-probability opportunities are.
The indicator detects 14+ SMC event types — FVG, IFVG, Order Blocks, Breaker Blocks, BSL/SSL, BPR, EQH/EQL, BOS/CHoCH, Sweep, IDM, Reversal Confirmed, Premium/Discount/Equilibrium, OTE, Volume Imbalance, SMT Divergence, PDH/PDL/PWH/PWL/PMH/PML, and ICT killzones. Every zone is ranked 0–100 by a relevance score built from five factors; opacity scales with that score so the eye is drawn to the bright zones while weak ones recede, and a threshold filter deletes the weakest zones entirely to free chart drawing budget. A top-N dashboard ranks the strongest setups by price, direction, age, and score. Three colour schemas — Default (customizable), Dark, and Light — are switchable globally, with all 22 default colours exposed as individual inputs. Per-type drawing caps and an FVG merge engine keep performance steady on busy timeframes.
2. HOW IT WORKS
SMC Event Detection
The script identifies institutional footprints in real time. Every event has its own creation logic and mitigation logic — once price returns and fills the inefficiency, the zone is removed from the chart.
Fair Value Gaps are 3-bar imbalances where the wicks don't touch, rendered as semi-transparent boxes with a centre-line at the consequent encroachment (CE). Order Blocks are the last opposite-coloured candle before a structure break, gated by minimum displacement (× ATR). Breaker Blocks are Order Blocks that flip side after price violates them, indicating role reversal. Liquidity (BSL / SSL) lines mark confirmed swing highs and lows where retail stops cluster, while BPR (Balanced Price Range) zones are detected as overlaps between opposing FVGs — high-probability institutional pivots.
EQH / EQL marks equal highs and lows within an ATR tolerance, identifying magnet liquidity. BOS / CHoCH distinguishes Break of Structure (continuation) from Change of Character (reversal); when a CHoCH prints shortly after a liquidity sweep, it is auto-tagged as Reversal Confirmed . The script also detects Sweep , IDM (Inducement) , and SMT divergence against a configurable reference symbol, and shades Killzones for the Asia, London, NY-AM, and NY-PM sessions in the timezone of your choice.
Confluence Scoring
For every active zone, the script counts how many other zones overlap its price range within an ATR-based tolerance. Confluence between an Order Block, a Fair Value Gap, and a previous-day high is the textbook setup smart-money traders look for — this metric quantifies it.
Composite Relevance Score
Each zone is scored 0–100 from five normalised factors with user-editable weights: Confluence (default 30%) measuring how many other zones overlap, Freshness (20%) decaying exponentially with bars since creation, Displacement (20%) capturing the size of the impulse that created the zone divided by ATR, Trend Alignment (15%) rewarding zones that match the current swing-structure direction, and Proximity (15%) favouring zones near current price normalised by ATR reach. Weights don't have to sum to 100 — normalisation happens internally. The score recalculates every bar, so as price moves the proximity factor updates and the ranking shifts in real time.
Visual Hierarchy
Opacity scales with score — a zone at score 90 is vivid; at score 35 it's nearly transparent. Same colours, different volume. The threshold filter takes this further: anything below a configurable score (default 30) is deleted, not just dimmed — this frees drawing slots and prevents drawing-limit overflow on busy charts. Every zone label optionally appends its score, e.g. "Bull OB 82".
Dashboard Panel
On the last bar, a compact table renders in the chart corner showing the top N zones ranked by score. Each row displays rank, type, price, direction, age in bars, and score with star rating and tier colour (≥80 green, ≥60 teal, ≥40 amber, <40 grey). The table updates with every new bar.
3. HOW TO USE
The Dashboard Workflow
Glance at the dashboard. The top 2–3 zones are your high-probability watchlist for this chart — combine the price level shown with the type and direction to plan your entries. If nothing has a score above 60, the market isn't offering quality setups; wait.
Trading Reversals
Look for this sequence on the chart. First, price sweeps a BSL or SSL line and a sweep label appears. Within a few bars, CHoCH prints — a close back through the opposing swing — and a Reversal Confirmed label fires at that CHoCH point. From there, look for a fresh Order Block or FVG in the direction of the new bias, ideally inside the Discount or Premium zone or the OTE. Enter on retracement to that zone, place your stop beyond the swept extreme, and target the opposite liquidity pool (the BSL or SSL on the other side).
Trading Continuations
After a BOS in the direction of the current trend, the OB or FVG that produced the break becomes a high-probability retracement entry. The dashboard will surface it automatically if its score is in the top tier.
Decluttering for Clarity
The Threshold input is your declutter dial. On a busy 1H chart with 50+ historical zones, set it to 60 — only the cream stays visible. On a clean 15m intraday, set it to 30 to keep more context. At 0, every detected zone is drawn (legacy mode).
Combine With Other Confluence
The scoring system already integrates intra-indicator confluence. For external confluence, overlay your higher-timeframe levels, a volume profile, or session VWAPs — anything that aligns with a high-score zone is a stronger setup.
4. SETTINGS
Settings are organised into logical groups in the dialog.
Structure: swing and internal pivot lengths, BOS / CHoCH toggles, HH/HL/LH/LL labels
Liquidity: BSL/SSL/INT_LQ toggles, sweep window, IDM, Reversal Confirmed
Order Blocks: minimum displacement (× ATR), Breaker conversion on violation
EQH / EQL: ATR tolerance for equal levels
Fair Value Gap: small-gap filter, extension bars, mitigation-on-close, BPR detection
FVG Merge: consolidates old overlapping FVGs by age and ATR tolerance
Volume Imbalance: body-to-body gap detection
Premium / Discount: range plot and OTE zone (62–79% retrace)
Previous H/L: PDH/PDL, PWH/PWL, PMH/PML toggles
SMT: divergence reference symbol (default NQ futures)
Killzones: session backgrounds in selectable timezone
Drawing Limits: per-type caps to control total draw count
Scoring: confluence tolerance, freshness decay, proximity reach, five weights, threshold, opacity toggle, score-in-label toggle
Dashboard: show / rows / position / cell size
Colors: schema enum (Default / Dark / Light) plus 22 individual colour inputs
Style: label size, extension bars, all event label text
5. DESIGN DECISIONS
This indicator was built around three principles.
Decluttering is more valuable than detection. Anyone can detect an FVG — the hard part is knowing which of the twelve currently on screen is the one you should care about. The scoring system exists because the trader's biggest enemy is signal-to-noise, not missing signals.
Every zone should justify its space. Opacity scaling and the threshold-delete behaviour mean that low-conviction zones don't merely fade — they're erased from the drawing pool, so the chart stays performant even on minute-tick instruments with thousands of bars of history. The drawing-limit caps (configurable per event type) reinforce this.
Customisation should be opt-in. The Default schema is the production-ready palette. Most traders won't touch the 22 colour inputs. But for designers who care, every base colour is individually editable. Dark and Light schemas exist as one-click presets for OLED users and light-theme users respectively.
6. CREDITS AND ATTRIBUTION
The Smart Money Concepts framework is a community-developed body of knowledge built on the work of Richard Wyckoff (1930s — accumulation / distribution cycles, composite-man theory), Charles Dow (higher-highs / higher-lows market structure), Michael J. Huddleston / ICT (modern SMC terminology — BOS, CHoCH, Liquidity, Breaker, FVG, OTE, Killzones), and the wider SMC trading community that refined, tested, and disseminated these ideas.
7. DISCLAIMER
For educational and informational purposes only — not financial advice. Past performance does not guarantee future results, and all trading decisions are made at your own risk. The author accepts no liability for any loss arising from use of or reliance on this script. Indicator

Crypto Ultimate Indicator v2═══════════════════════════════════════════════
CRYPTO ULTIMATE INDICATOR (CUI)
═══════════════════════════════════════════════
A multi-layer confluence system for crypto traders. Stacks 12+ independent technical layers — trend, momentum, volume, regime, multi-timeframe bias, and Smart Money Concepts — and fires Buy/Sell signals only when enough of them agree. Every signal comes with a confidence score, three take-profit levels, position size recommendation, and live outcome tracking.
Built for 4H and Daily crypto charts. No proprietary "secret sauce" — every component is documented and every input is exposed.
━━━━━━━ WHY THIS EXISTS ━━━━━━━
Most multi-indicator scripts stack correlated trend filters (more EMAs, more oscillators) and call it "confluence." That just adds the illusion of agreement without adding independent information.
CUI's filter stack is built from genuinely different signal sources, so when they align, that alignment carries real weight:
• Trend regime — HMA + Supertrend + EMA Ribbon
• Momentum — RSI with proper pivot-to-pivot divergence
• Volume flow — body-weighted Volume Delta + CVD divergence
• Volatility state — Bollinger squeeze + squeeze-release timing
• Market structure — composite of ADX, Choppiness Index, BB-width percentile
• Multi-timeframe — weighted Daily / Weekly / Custom HTF (all offset, no repaint)
• Liquidity & gaps — Fair Value Gaps + Liquidity Sweep detection
• External context — optional BTC trend filter for alt trading
A Buy or Sell only fires when the relevant subset of these align. A built-in "Why-Not" diagnostic table shows you exactly which filter is blocking a near-signal at any moment — turning the indicator into a tunable system rather than a black box.
━━━━━━━ CORE FEATURES ━━━━━━━
TREND & MOMENTUM
▸ Hull Moving Average (configurable length)
▸ Supertrend with ATR factor
▸ 5-EMA Ribbon (8/13/21/34/55) with stacking score
▸ RSI with consecutive-pivot divergence detection
▸ MACD and Stochastic RSI (data window)
VOLUME
▸ Body-weighted Volume Delta (not naive close-position)
▸ Cumulative Volume Delta (CVD)
▸ CVD divergence at confirmed pivots
VOLATILITY & REGIME
▸ Bollinger Bands with squeeze detection and release timing
▸ Composite regime classifier (ADX × CHOP × BB-width)
▸ Background tint for trending vs ranging states
▸ Regime transition labels
SMART MONEY CONCEPTS
▸ Fair Value Gap zones (bullish and bearish)
▸ Liquidity Sweep detection
MULTI-TIMEFRAME
▸ Daily / Weekly / User-defined custom HTF
▸ Weighted confluence score (D 1.0x + W 1.5x + Custom 0.75x)
▸ Optional HTF pivot-based S/R lines
BTC CONTEXT (for alt traders)
▸ Optional BTC trend filter
▸ Relative strength vs BTC
SIGNAL ENGINE
▸ 0-100 confidence score
▸ Configurable minimum confidence threshold
▸ Auto-tune presets (Aggressive / Balanced / Conservative / Custom)
▸ Confirmation bar requirement
▸ Minimum spacing between signals
TRADE MANAGEMENT
▸ Three take-profit levels (TP1/TP2/TP3) with configurable ATR multipliers
▸ Custom % allocation per target
▸ Adaptive SL/TP — different distances in trending vs ranging conditions
▸ Break-even stop activation after TP1
▸ Chandelier ATR trailing stop on runner portion
▸ Position size calculator (account size × risk % × confidence multiplier)
LIVE TRACKING & DIAGNOSTICS
▸ Main dashboard with all current state
▸ Signal log table — last N trades with live TP/SL outcomes
▸ Why-Not diagnostic — which filter is currently blocking each direction
▸ Regime stats — win rate broken down by trending vs ranging
ALERTS
▸ 15+ classic alertcondition triggers
▸ Optional JSON webhook payload for bot integration
━━━━━━━ HOW A BUY SIGNAL FIRES ━━━━━━━
All of the following must be true on the signal bar:
1. HMA trending up
2. RSI above 50
3. Volume delta positive
4. EMA Ribbon score ≥ +3 (at least 4 of 5 aligned bullish)
5. Supertrend bullish
6. HTF confluence score ≥ +1.5
7. Confidence score ≥ user minimum
8. BTC trend bullish (if BTC filter enabled)
9. Price not inside opposing FVG zone (if FVG filter enabled)
10. Market not in strong ranging mode
11. Price more than 0.5 ATR from upper resistance zone
12. Candle body > 50% of range
13. Minimum bars elapsed since last signal
14. Confirmation bar (if enabled)
A Sell signal requires the inverse. On 4H BTC expect roughly 1-3 signals per week in normal conditions. If you see fewer, drop the confidence floor or switch to the Aggressive preset.
━━━━━━━ RECOMMENDED USE ━━━━━━━
▸ Primary: 4H on BTC/USDT, ETH/USDT, and majors
▸ Also works: Daily, 12H, 8H
▸ Use caution below 1H — noise increases, news spikes can trigger wicks
▸ Low-liquidity alts: bump ATR period to 21
WORKFLOW
1. Start on the Balanced preset
2. Watch the dashboard and Why-Not panel for a few sessions
3. Adjust the confidence floor based on signal frequency
4. Enable Regime Stats after chart history accumulates
5. For bots: enable JSON webhook alerts, route via "Any alert() function call"
━━━━━━━ REPAINT DISCLOSURE ━━━━━━━
Full transparency on what does and doesn't repaint:
▸ HMA, Supertrend, EMA Ribbon: repaint on the developing current bar (use bar-close confirmation for live trading)
▸ HTF confluence (D/W/Custom): all use offset — fetch last closed HTF bar only — NO intra-period repaint, NO lookahead
▸ RSI and CVD divergence labels: plotted at confirmed pivot bar (5 bars after the actual pivot). Do NOT appear and disappear.
▸ FVG zones: drawn on confirmation bar of the 3-bar gap pattern. Do not repaint once drawn.
▸ Liquidity sweeps: detected on bar close
▸ Trade outcomes (signal log): evaluated on each closing bar
▸ Regime transition labels: confirmed on bar close
━━━━━━━ HONEST LIMITATIONS ━━━━━━━
▸ This is a decision-support tool, not a complete trading system. Risk management, position discipline, and execution matter more than any indicator.
▸ Signal outcomes in the Regime Stats table are based on bar-close evaluation. Real-fill slippage is not modeled.
▸ Volume Delta is approximated from candle structure, not true tick-level bid/ask (PulseWire doesn't expose that without premium feeds).
▸ FVG and liquidity sweep are simplified interpretations of those concepts — pure SMC purists may prefer dedicated tools.
▸ The regime classifier is a heuristic composite. It works well on liquid crypto pairs but can lag at sharp inflection points.
▸ Past performance does not predict future results.
━━━━━━━ SETTINGS OVERVIEW ━━━━━━━
The script has many inputs, grouped by function. For first-time users, the most important groups are:
▸ Preset & Theme → pick Balanced to start
▸ UI Sizing → table text and label sizes
▸ Signal Engine → set Minimum Confidence Score
▸ Tiered Exits → TP/SL multipliers and % allocation
▸ Position Sizing → account size and risk per trade
▸ Alerts & Webhooks → enable JSON for bot trading
Default state shows a clean chart: HMA, Supertrend, BB, regime tint, signal labels, plus three tables (dashboard, signal log, HTF panel). Everything else is one toggle away — EMA Ribbon, FVG boxes, ATR zones, HTF S/R lines, CVD divergence labels, sweep markers, Why-Not diagnostic, Regime Stats.
━━━━━━━ WHAT'S NOT INCLUDED ━━━━━━━
▸ Full strategy() backtest — this is an indicator(). A companion strategy script may be released separately.
▸ Funding rate / open interest overlays — require specific tickers not universally available
▸ Chart pattern recognition (H&S, wedges, etc.)
━━━━━━━ CREDITS ━━━━━━━
Built on Pine Script v6. Uses PulseWire built-ins: ta.supertrend, ta.dmi, ta.bb, ta.macd, ta.rsi, ta.pivothigh, ta.pivotlow, ta.valuewhen. Choppiness Index, CVD, FVG detection, liquidity sweep logic, regime classifier, confidence scoring, trade tracking, and confluence weighting are custom implementations.
═══════════════════════════════════════════════
Indicator

[ A L P H A X ] VOIDAlphaX VOID — Fair Value Gap Confluence System: FVG Detection, 5-Layer Retest Entries, CE Rejection Filter & ATR Trailing Exit Engine
AlphaX VOID is a professional-grade smart money confluence system built around the single most powerful concept in institutional price action: the Fair Value Gap. Where price moves so aggressively that it leaves an unmitigated imbalance in the order book — a void — institutions return to fill orders at those levels. VOID detects every qualifying gap in real time, tracks its state, and waits. When price returns to retest that void, a 5-layer confluence engine evaluates the quality of that retest across EMA structure, squeeze momentum, volume delta pressure, VWAP bias, and ADX directional strength. Only when enough layers agree does a signal fire — not on the gap formation, not on the first touch, but on a confirmed, high-quality institutional retest with the trend and momentum behind it. Designed for active traders on crypto, forex, gold, and indices across the 1-minute to 15-minute timeframes.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🕳 What Is a Fair Value Gap?
A Fair Value Gap (FVG) is a three-candle price structure where the middle candle moves with such force that it creates a gap between the wick of the first candle and the wick of the third candle — a zone where no two-sided trading occurred. Price moved through that area too fast for the market to establish fair value.
Bull FVG: The low of candle 3 is above the high of candle 1. Price left a gap to the upside — an unmitigated bullish imbalance. When price returns to this zone, institutions are likely resting buy orders there.
Bear FVG: The high of candle 3 is below the low of candle 1. Price left a gap to the downside — an unmitigated bearish imbalance. When price returns to this zone, institutions are likely resting sell orders there.
Why FVGs matter to institutional traders: Market makers and large institutions cannot fill their full order size in a single fast move. When price revisits the FVG zone, they use the retest to complete their position. This is why FVG retests so frequently produce high-velocity continuation moves — they are not random support/resistance, they are unfilled institutional order clusters.
AlphaX VOID does not simply draw FVG boxes. It tracks the lifecycle of every gap — from formation through active, retest, and filled — and only presents entry signals when the retest coincides with genuine multi-layer confluence.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔬 FVG Detection Engine — Quality Filters
Not every gap is worth trading. Gaps formed during weak, choppy price action are noise. VOID applies two mandatory quality filters to every detected gap before registering it as valid.
Displacement Filter:
The middle candle of the three-candle structure must show genuine displacement — its body must exceed the average body size over the last 14 bars by a configurable multiplier (default: 1.15×). This ensures the gap was formed by a real impulsive move, not a slow grind that happened to leave a small gap. A gap without displacement is a weak gap.
Minimum Gap Size Filter:
The physical size of the gap (the distance between the relevant wicks of candle 1 and candle 3) must meet a minimum threshold expressed as a multiple of ATR (default: 0.15×). This eliminates micro-gaps that are too small to be meaningful — gaps so narrow that spread and noise would immediately invalidate any retest entry.
Only gaps passing both filters are registered, stored, and tracked.
FVG Lifecycle Tracking:
Every registered FVG is stored in memory arrays with its top, bottom, direction, formation bar, and fill state. On every bar, VOID updates the state of all active gaps:
Active — gap is unmitigated. Box and CE line extend forward in real time
Filled — price has fully closed through the gap boundary. Box color shifts to neutral gray, CE line fades. Optionally hidden entirely via the Hide Filled FVGs setting
Age cutoff — gaps older than the configured Max FVG Age (default: 120 bars) are excluded from retest scanning. Old gaps lose institutional relevance as market structure evolves
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📐 The FVG Visual System
Every active FVG is rendered directly on the price chart as a structured visual zone with three components.
FVG Box:
A shaded rectangle spanning the full gap from top to bottom. Bull gaps are shaded in semi-transparent yellow-green; bear gaps in semi-transparent red. The box extends forward by the configured number of bars (default: 30) and updates in real time as price evolves. When a gap fills, the box shifts to neutral gray — or is removed entirely if Hide Filled FVGs is enabled.
CE Line (Consequent Encroachment — 50% Level):
A dashed line at the exact midpoint of the FVG zone. This is the Consequent Encroachment level — the 50% retracement into the gap. This level is critical for entries: the most reliable FVG retests are those where price dips into the gap but closes back above (bull) or below (bear) the CE line, demonstrating that the institutional zone held and rejected price cleanly. The CE Rejection filter is on by default and can be toggled in settings.
FVG Formation Dots:
Small squares appear below (bull FVG) or above (bear FVG) the bar at the moment a new qualifying gap is formed, providing instant chart-level notification of every new gap without requiring dashboard attention.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🧠 The Retest Detection Engine
Detecting a gap is the easy part. Detecting a high-quality retest of that gap is the core intellectual challenge VOID is built to solve.
On every bar, VOID scans all active, unfilled FVGs of the appropriate direction for a valid retest condition. A retest requires all of the following to be true simultaneously:
1. Price overlap: The current bar's low must be at or below the FVG top, and the current bar's high must be at or above the FVG bottom. Price is physically inside or touching the zone.
2. Candle rejection: The bar must close in the correct direction — a bullish close (close above open) for a bull FVG retest, a bearish close for a bear FVG retest. Price entered the gap but the candle closed back out, demonstrating rejection.
3. CE rejection (when enabled): For bull retests, the close must be at or above the CE midline — not just any bullish close, but one that reclaims the institutional midpoint. For bear retests, the close must be at or below the CE midline. This is the single most important retest quality filter in the system. A retest that fails to reclaim the 50% level is a weak, indecisive retest.
4. Age validation: The gap must be no older than the configured maximum age. Gaps older than this threshold are excluded even if all other conditions are met.
5. Most recent qualifying gap priority: When multiple gaps qualify simultaneously, VOID selects the most recently formed gap — the freshest institutional imbalance takes precedence.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 The 5-Layer Confluence Engine
A valid FVG retest alone is not sufficient for a signal. VOID requires that the retest occur within a high-quality confluence environment across five independent layers. Each layer casts a directional vote on every bar. Signals only fire when a configurable minimum number of votes align (default: 3 of 5).
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Layer 1 — EMA Ribbon (Trend Structure)
A triple EMA ribbon using Fast (default: 8), Slow (default: 21), and Signal (default: 50) EMAs. All three must stack in directional order and price must be on the correct side for a full ribbon vote.
Bull: Fast above Slow above Signal, close above Fast EMA.
Bear: Fast below Slow below Signal, close below Fast EMA.
A separate EMA Trend Alignment setting (default: on) enforces that bull FVG retest signals only fire when the fast EMA is above the slow EMA — the minimum trend structure condition — even if the full ribbon stack is not met. This prevents counter-trend FVG entries that carry the lowest success rate.
The ribbon is plotted on the chart as a gradient fill between the Fast and Slow EMA lines — yellow-green fill during bull structure, red during bear, gray during flat.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Layer 2 — Squeeze Momentum (Energy Detection)
The TTM Squeeze momentum engine measures whether energy is building or releasing and in which direction.
Squeeze state: When Bollinger Bands compress inside Keltner Channels, volatility is contracting and a directional breakout is loading. This state is displayed as an orange background tint and flagged on the dashboard as ⚡ SQZ. An FVG retest that coincides with a squeeze release is one of the highest-quality setups the system can detect — the gap provides the structural level, the squeeze provides the breakout energy.
Momentum direction: Calculated via linear regression of price relative to the midpoint of the recent high-low range. Positive and rising = bull momentum. Negative and falling = bear momentum.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Layer 3 — Volume Delta (Institutional Pressure)
A proprietary volume pressure model that splits each candle's volume into estimated bullish and bearish components based on the close position within the high-low range, smoothed by EMA. A secondary OBV slope confirms the dominant pressure direction over the configured lookback.
Bull vote: Bull volume EMA exceeds bear, delta EMA is positive, and OBV slope is rising — three independent volume signals all confirming buying pressure.
Bear vote: The full inverse.
An FVG retest with genuine volume delta confirmation means real capital is flowing into the gap zone, not just price drifting back. This is the distinction between a high-probability institutional retest and a low-energy drift that is likely to fail.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Layer 4 — VWAP Bias (Institutional Session Reference)
The Volume Weighted Average Price anchored to the session provides the clearest single reference for institutional directional bias. Price above VWAP means institutions are net buyers for the session. Price below means net sellers.
Bull vote: Close above VWAP.
Bear vote: Close below VWAP.
A bull FVG retest that occurs while price is above VWAP is a with-institution trade. A bull FVG retest while price is below VWAP is counter-institutional — the gap exists, the retest is clean, but the session-level bias is working against the entry. This distinction is worth one full confluence point and often determines whether a retest succeeds or fails.
The VWAP filter can be toggled off, and the VWAP line itself can be shown or hidden independently.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Layer 5 — ADX Directional Strength (+DI / -DI)
The ADX filter in VOID operates at two levels. First, the ADX value must meet the minimum threshold (default: 18) confirming the market is trending rather than ranging. Second, the directional component is used — +DI versus -DI — to confirm that the ADX strength is aligned with the signal direction.
Bull vote: ADX above threshold and +DI exceeding -DI — the trend strength is directionally bullish.
Bear vote: ADX above threshold and -DI exceeding +DI — the trend strength is directionally bearish.
This is fundamentally different from a simple ADX on/off gate. An ADX reading of 25 with +DI above -DI in a bull FVG setup is confirming. An ADX reading of 25 with -DI above +DI in a bull FVG setup means the trend strength is bearish — directionally opposed to the signal — and this layer will not vote for it.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🏷 Signal Firing Logic
A VOID signal fires when all of the following are simultaneously true:
A valid FVG retest is detected (overlap + candle rejection + CE rejection if enabled + age check)
The confluence score meets or exceeds the configured minimum (default: 3 of 5 layers)
ADX confirms a trending market (value above minimum threshold)
Session filter confirms active hours
Signal cooldown has elapsed since the last signal (default: 8 bars) — prevents repeated signals during extended retest zones
EMA trend alignment condition is met if the Require EMA Trend Alignment setting is enabled
Edge triggering: The signal fires only on the bar where all conditions first become true simultaneously — not on every bar they remain true. Each triangle on the chart represents a distinct, fresh confluence event.
Score label: Every signal prints a label (e.g., 4/5 FVG ) showing the live confluence score at signal time. The FVG suffix confirms this is an institutional gap retest entry, not a generic momentum entry.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 FVG-Anchored Stop Loss Placement
VOID includes a purpose-built stop loss mode unique to FVG trading: Place SL Beyond FVG Edge (default: on).
When enabled, the stop loss for a bull retest entry is placed at the bottom of the retested FVG minus an ATR buffer — not below the current bar's low. For a bear retest, the stop is placed at the top of the retested FVG plus an ATR buffer.
Why this matters: The FVG boundary is the institutional invalidation level. If price closes beyond the far edge of the gap, the imbalance has been fully absorbed — the institutional thesis for the retest is gone and the trade is structurally invalid. Using the FVG edge as the stop base produces stops that are:
Structurally meaningful — anchored to the actual invalidation level, not an arbitrary ATR distance from entry
Tighter when gaps are narrow — better risk-reward on high-quality, precise gaps
Wider when gaps are large — providing the trade room to breathe within the full institutional zone
When this setting is off, the stop reverts to a standard ATR-based distance from the bar's low or high — consistent with the Pulse Scalper behavior.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🛡 Dynamic ATR Exit System
All three exit mechanisms from the VOID exit engine work together on every open trade:
Stop Loss: Placed at the FVG far edge (when enabled) or bar low/high, minus/plus an ATR buffer (default: 1.2×). Your maximum risk boundary. Does not move.
TP1 — Partial Target (50%): 1.8× ATR from entry. Scale out half the position here and move the remainder to breakeven. A small circle marker appears at the TP1 bar.
TP2 — Full Target: 3.5× ATR from entry. Full position exits and the system resets. A labeled TP marker confirms the exit on the chart.
ATR Trailing Stop: A dynamic stop that advances with price every bar — always positioned 1.5× ATR behind the current bar's low (bull) or high (bear). Plotted as a live orange line. In strong institutional continuation moves, the trail captures significantly more than the fixed TP2 target. In weak retests that stall early, the trail cuts the loss before the fixed SL is reached — providing a tighter actual exit than the structural stop.
All exit levels are plotted as live lines on the chart for the duration of the trade and cleared automatically on exit.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Live Dashboard
The real-time dashboard displays the complete internal state of the indicator across four sections, updated on every bar.
FVG STATE
Bull FVGs — count of currently active, unfilled bull FVGs being tracked
Bear FVGs — count of currently active, unfilled bear FVGs being tracked
Retest — live retest detection status: ▲ BULL RETEST or ▼ BEAR RETEST when a valid gap touch is occurring, — NONE otherwise. This updates in real time so you can see a retest developing before the full signal fires
MARKET
Session — ✓ ACTIVE or ✗ OFF-HOURS. Confirms whether the session filter gate is open
ADX — live ADX value with ✓ or ✗ pass/fail. Confirms whether market structure is trending strongly enough to support FVG retest entries
CONFLUENCE
L1 EMA — current ribbon state: ▲ BULL, ▼ BEAR, or — FLAT
L2 Momentum — current momentum state: ⚡ SQZ (squeeze building), ▲ BULL, ▼ BEAR, or — FLAT. The squeeze state is the highest pre-signal alert condition
L3 Vol Delta — current volume pressure: ▲ BULL, ▼ BEAR, or — NEUTRAL
L4 VWAP — current VWAP position: ▲ ABOVE (institutional bull bias) or ▼ BELOW (institutional bear bias)
L5 ADX Dir — ADX directional vote: ▲ BULL (+DI dominant), ▼ BEAR (-DI dominant), or — FLAT
Bull Score — live 0–5 score. Background highlights yellow-green when the minimum threshold is met
Bear Score — live 0–5 score. Background highlights red when the minimum threshold is met
POSITION
Position — current tracked position: ▲ LONG, ▼ SHORT, or — FLAT with background color highlight
Stop Loss — the active SL level (FVG-anchored or ATR-based depending on settings), color-coded by direction
TP1 / TP2 — the active first take-profit level; TP2 is tracked internally and triggers the full exit marker
Bars in Trade — bars elapsed since entry, tracking trade duration
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 Chart Visual System
FVG Boxes (yellow-green / red) — active imbalance zones extending forward in real time. Color shifts to gray on fill
CE Dashed Lines — the 50% midpoint of every active FVG. The key level for CE rejection filtering
Formation Dots — small squares marking the exact bar a new qualifying FVG was detected
▲ Triangle (below bar) — bull retest entry signal. All conditions met
▼ Triangle (above bar) — bear retest entry signal. All conditions met
Score Label (e.g. 4/5 FVG) — confluence score at signal time, printed on every entry triangle
EMA Ribbon Fill — yellow-green fill during bull EMA structure, red during bear, gray during flat
VWAP Line (purple) — optional, toggleable session VWAP reference
Orange Squeeze Background — active during Bollinger/Keltner squeeze conditions
Yellow-green background tint — active during open long trades
Red background tint — active during open short trades
SL Line — fixed stop loss level, active while trade is open
TP1 Line — first partial take-profit target
TP2 Line (bright) — full exit target
Trail Line (orange) — dynamic trailing stop, advances with price every bar
TP marker — confirms TP2 hit and full exit
SL marker — confirms stop loss or trail triggered
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 How to Trade with AlphaX VOID — Step by Step
Step 1 — Read the FVG State
Check the dashboard: how many active bull and bear FVGs are on the chart?
Multiple active FVGs in one direction indicate a well-defined institutional order cluster — a zone with stacked imbalances that price is likely to respect strongly on retest
Zero active FVGs in a direction means no institutional retest opportunity exists yet — wait for a new gap to form
Step 2 — Watch for Retest Alert on the Dashboard
The RETEST row updates in real time. ▲ BULL RETEST or ▼ BEAR RETEST appearing means price is currently inside a valid FVG zone with a rejection candle forming
This is your cue to check the confluence score rows. Watch the bull or bear score building in real time on the current bar — if it is approaching or has crossed the threshold, a signal may be seconds away
Step 3 — Enter on the Signal Triangle
A ▲ triangle below the bar is a confirmed bull FVG retest entry. All conditions — FVG retest quality, confluence score, ADX, session, cooldown, trend alignment — are met simultaneously
A ▼ triangle above the bar is a confirmed bear FVG retest entry
Read the score label. A 5/5 signal is the maximum confluence available — all five layers and the gap retest aligned simultaneously. These are the highest-conviction setups VOID produces
Enter on the close of the signal bar or the open of the next bar
Step 4 — Manage the Trade with Live Exit Lines
The SL line is your structural invalidation. If you used the FVG-anchored SL, price closing beyond this level means the institutional gap has been fully absorbed — the thesis is invalid
Watch the orange Trail Stop advancing with price as the trade moves in your favor
At TP1, scale out 50% of the position. Move your stop to breakeven on the remainder
Let the trailing stop manage the rest — it captures whatever continuation the institutional imbalance produces
Step 5 — Exit and Reset
A TP marker confirms TP2 hit. Full exit and system reset
An SL marker confirms stop or trail triggered. Accept the loss and wait — the FVG that was retested is now filled or invalidated, and a new setup will develop from the next qualifying gap
Never re-enter immediately after a stopped trade. Wait for the confluence score to rebuild and a new qualifying gap to form or a fresh retest of a different active gap
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ Identifying Low-Quality Conditions — When Not to Trade
Stand aside when:
ADX ✗ on the dashboard — the market is not trending. FVG retests in ranging markets are frequently absorbed rather than rejected, producing whipsaw exits
RETEST shows ▲ or ▼ but no triangle appears — a retest is occurring but the confluence score or other filters are blocking the signal. This is the system explicitly telling you the quality threshold is not met — do not override it manually
Session ✗ OFF-HOURS — thin liquidity environments produce unreliable FVG reactions. The institutional actors who created the gap are not active
Multiple gap fills in quick succession — if several FVGs are filling rapidly without producing entries, the market is in a trending impulse phase eating through old imbalances rather than respecting them. Wait for the new gaps being created by this impulse to age and become valid retest candidates
Score stuck at 1 or 2 of 5 — the confluence environment is fragmented. Too few layers agree for a reliable institutional retest
Orange squeeze background present but score below threshold — energy is coiling but the directional confluence is not established. Wait for the squeeze to release in a clear direction with score confirmation before acting
What to do:
Monitor the dashboard for the RETEST row and confluence scores building simultaneously — the ideal setup shows both developing on the same bar
Prioritize gaps with the CE Rejection filter active — CE-rejected retests are the cleanest institutional entries available
Wait for ADX to confirm — a trending ADX above threshold combined with a directional +DI/-DI alignment is the ideal background for FVG retest entries
The highest-quality VOID setup: active squeeze on the dashboard, price retesting a fresh FVG at the CE level, 5/5 confluence score, ADX ✓, session ✓. These conditions together rarely occur — when they do, they produce the strongest continuation moves the system identifies
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ Key Features
🕳 Real-time FVG detection engine — identifies all qualifying bull and bear Fair Value Gaps with displacement and minimum gap size filters
📦 Full FVG lifecycle tracking — every gap stored in memory arrays with top, bottom, direction, age, and fill state updated on every bar
📐 CE (Consequent Encroachment) filter — requires price to reclaim the 50% midpoint of the gap on retest, eliminating weak, indecisive touches
🧠 5-layer confluence gate — EMA Ribbon, Squeeze Momentum, Volume Delta, VWAP Bias, and ADX Directional Strength must agree before a retest signal fires
📊 Live confluence scoring — bull and bear scores updated every bar, displayed on the dashboard before the signal appears
🎯 FVG-anchored stop loss — places the SL at the structural invalidation level (the far FVG edge) rather than a generic ATR distance, producing structurally meaningful risk levels
⚡ Squeeze momentum integration — TTM-style Bollinger/Keltner squeeze detection flags pre-breakout energy buildup with orange background tint and dashboard state
📡 VWAP session bias — confirms whether a retest is with or against institutional session direction
🔬 ADX directional filter — uses both the ADX value and +DI/-DI directionality, not just a simple trend/no-trend gate
🛡 Dynamic ATR trailing stop — orange line advances with price every bar, capturing extended institutional continuation moves beyond the fixed TP2 level
📈 EMA ribbon with trend alignment enforcement — prevents counter-trend FVG entries that carry the lowest success rate
🕐 Session filter — restricts entries to active market hours, eliminating thin-liquidity false retest reactions
⏱ Signal cooldown — prevents repeated signals during extended retest zones, ensuring each entry represents a distinct high-quality event
📊 21-row live dashboard — FVG State, Market, Confluence, and Position sections updated in real time
🔔 10 alert conditions — new FVG formation, retest entry, TP1/TP2 hits, stop hits for both bull and bear
🎨 Fully cohesive dual-tone color system — yellow-green for all bullish elements, red for all bearish elements, orange for squeeze and trail, gray for filled gaps and neutral states
⚙ Fully configurable — FVG parameters, confluence layers, EMA periods, squeeze settings, VWAP filter, ADX threshold, exit multipliers, session window, and all colors are independently adjustable
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙ Settings Reference
Fair Value Gaps
Show FVG Zones — toggle FVG boxes on or off
Show CE (50%) Lines — toggle the consequent encroachment midpoint lines
Max Active FVGs — maximum number of FVGs stored in memory simultaneously (default: 40)
Zone Extend (bars) — how many bars forward the FVG box and CE line project (default: 30)
Max FVG Age for Entries — gaps older than this bar count are excluded from retest scanning (default: 120)
Min Gap Size (ATR x) — minimum gap width as a multiple of ATR required for gap registration (default: 0.15)
Min Displacement (body x) — middle candle body must exceed average body by this multiplier (default: 1.15)
Require CE Rejection — close must reclaim the 50% gap midpoint on retest (default: on — strongly recommended)
Hide Filled FVGs — removes boxes and CE lines for gaps that have been fully mitigated (default: off)
EMA Ribbon
Fast EMA — fastest ribbon line (default: 8)
Slow EMA — intermediate ribbon line (default: 21)
Signal EMA — macro trend anchor (default: 50)
Show EMA Ribbon — toggle ribbon fill and lines
Squeeze Momentum
BB Length / BB Mult — Bollinger Band parameters for squeeze detection (defaults: 20 / 2.0)
KC Length / KC Mult — Keltner Channel parameters (defaults: 20 / 1.5)
Momentum Length — linear regression period for momentum direction (default: 12)
Volume Delta
Volume MA Length — EMA smoothing for bull and bear volume estimates (default: 14)
OBV Slope Length — lookback for OBV slope directionality (default: 10)
VWAP
Use VWAP Filter — when on, Layer 4 requires close to be on the correct side of VWAP (default: on)
Show VWAP Line — toggle the VWAP line on the chart (default: off)
Confluence Gate
Min Layers Required — minimum confluence votes needed for a signal (default: 3 of 5)
Session Filter — toggle active hours restriction
Active Session — configurable session window (default: 0700-2000)
Signal Cooldown — minimum bars between consecutive signals (default: 8)
Require EMA Trend Alignment — enforces minimum EMA directional alignment even when full ribbon is not stacked (default: on)
ADX Filter
Use ADX Filter — toggle the trend quality and directional gate
ADX Length — calculation lookback (default: 14)
ADX Minimum — threshold below which all signals are suppressed (default: 18)
Exit Settings
ATR Length — lookback for all ATR exit calculations (default: 10)
SL ATR Mult — stop loss ATR buffer beyond FVG edge or bar low/high (default: 1.2)
TP1 ATR Mult — first take-profit target (default: 1.8)
TP2 ATR Mult — full exit target (default: 3.5)
Use ATR Trailing Stop — toggle dynamic trailing stop
Trail ATR Mult — trailing distance from current bar's extreme (default: 1.5)
Show Exit Levels — toggle SL, TP1, TP2, and trail lines on the chart
Place SL Beyond FVG Edge — anchors stop to the structural gap invalidation level (default: on)
Display
Show Confluence Score Label — prints live score on every signal triangle
Show Dashboard — toggle the full dashboard panel
Dashboard Position — Top Left / Top Right / Bottom Left / Bottom Right
Colors
Bull / Bull Bright — yellow-green family for all bullish signals, fills, ribbons, and labels
Bear / Bear Bright — red family for all bearish signals, fills, ribbons, and labels
Squeeze — orange for squeeze tint and trailing stop line
Bull FVG / Bear FVG — gap box fill and border colors
Filled FVG — neutral gray for mitigated gaps
EMA Fast / Slow / Signal — individual EMA line colors
Ribbon Fill Bull / Bear / Flat — ribbon fill colors for each trend state
VWAP Line — VWAP plot color (default: purple)
SL / TP / TP2 / Trail Lines — individual exit level line colors
Long Zone BG / Short Zone BG — active trade background tints
Bull Label Text / Bear Label Text — text color for score labels on bull and bear signals
Dash Text / Dash BG / Dash Header / Dash Section / Dash Frame — full dashboard color control
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 Alert Conditions (10 total)
FVG Formation Alerts
New Bull FVG Formed — a qualifying bullish Fair Value Gap has been detected. Watch for retest entry
New Bear FVG Formed — a qualifying bearish Fair Value Gap has been detected. Watch for retest entry
Entry Alerts
Bull FVG Retest Entry — all conditions met: bull FVG retest, CE rejection, confluence score, ADX, session
Bear FVG Retest Entry — all conditions met for a short institutional retest entry
Exit Alerts
Bull TP1 Hit — price reaches the first bull take-profit. Scale out 50%
Bull TP2 Hit — price reaches the full bull exit target. Position closed
Bull Stop Hit — stop loss or trailing stop triggered on a long position
Bear TP1 Hit — price reaches the first bear take-profit. Scale out 50%
Bear TP2 Hit — price reaches the full bear exit target. Position closed
Bear Stop Hit — stop loss or trailing stop triggered on a short position
All alert messages are formatted as const strings for clean webhook and notification platform integration.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 Recommended Settings by Instrument & Timeframe
The default configuration is optimized for XAUUSD, major forex pairs, and crypto on M1–M5 :
Min Layers at 3/5 — strong confluence without requiring perfection on every bar
CE Rejection on — the single most important FVG quality filter. Leave this enabled in all configurations
ADX minimum at 18 — slightly more permissive than the Pulse Scalper default, accounting for the structural quality already provided by the FVG retest condition
FVG-anchored SL on — structurally superior stop placement for all FVG-specific entries
Max FVG Age at 120 bars — covers approximately 2 hours on M1, 10 hours on M5. Sufficient for intraday imbalances without trading excessively old gaps
For other instruments or timeframes, adjust:
Higher timeframes (M15, H1, H4) — increase Max FVG Age to 200–300, increase Retest Cooldown to 15–25, increase TP2 to 4.5–5.5× ATR, raise Min Confidence to 4/5
Crypto (BTC, ETH) — increase Min Gap Size to 0.25–0.35× ATR to filter micro-gaps in volatile crypto price action, increase KC Mult to 2.0 for the squeeze layer
Indices (NAS100, US30) — use defaults with session tightened to 09:30–16:00. Increase displacement multiplier to 1.3 for cleaner gap quality on index moves
More signals — lower Min Layers to 2, disable CE Rejection, increase Max FVG Age, reduce Cooldown
Fewer, higher-quality signals — raise Min Layers to 4 or 5, keep CE Rejection on, raise ADX minimum to 22–25, reduce Max FVG Age to 60–80 bars
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
👥 Who This Is For
🏦 Smart money and institutional price action traders — VOID is built on the core concept that institutional order flow creates imbalances and returns to fill them. This is the foundational logic of ICT methodology applied with quantitative confluence filters
🥇 Gold (XAUUSD) and forex scalpers — FVGs are particularly reliable on gold and major forex pairs where institutional order flow is most dominant
📊 Crypto and index traders — the displacement and gap size filters adapt the system to higher-volatility instruments without producing noise
🎯 Precision entry traders — the CE rejection filter and FVG-anchored stop produce tighter, more structurally defined entries than generic momentum systems
🧠 Systematic traders — the 5-layer confluence score provides a quantitative quality metric for every retest event, not just a visual signal
📉 Traders who want to stop chasing breakouts — VOID forces you to wait for price to return to the institutional level, eliminating the discipline failure of entering on extended, overheated moves
⚠ Traders who struggle with stop placement — the FVG-anchored SL system provides structurally meaningful stop levels determined by the market's own imbalance boundaries, not arbitrary ATR multiples
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 Notes
All signals are confirmed on bar close — the indicator is non-repainting by design. FVG boxes and CE lines may extend or update visually on the current bar, but no signal is generated until bar close confirmation
The CE Rejection filter is strongly recommended. Disabling it allows signals on any touch of the FVG box, including weak wicks that are unlikely to produce clean continuation moves
Maximum 500 labels, 500 lines, and 500 boxes are rendered. On very low timeframes with extended chart history, the oldest FVG boxes, CE lines, and signal markers may be automatically removed by PulseWire's rendering limits. Reduce Max Active FVGs if this becomes an issue
FVG fill state is based on bar close — a wick through the gap boundary that closes inside or above the zone does not mark the gap as filled. Only a close beyond the boundary constitutes a fill
The VWAP calculation resets at the start of each session. On 24-hour crypto instruments, the VWAP anchors to the chart's visible history. For best VWAP behavior on crypto, consider disabling the VWAP filter (Layer 4) and relying on the remaining four layers
Gap age counting begins from the formation bar. A gap formed 5 bars ago on M5 is 25 minutes old — very fresh. The same gap age on H1 is 5 hours old — potentially stale. Adjust Max FVG Age to your timeframe context
The Trade Status section tracks position direction from signal to exit within a single chart session — it does not connect to your broker or brokerage account
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ Disclaimer
This indicator is a technical analysis and visualization tool intended for educational and informational purposes only. It does not constitute financial advice or a recommendation to buy or sell any financial instrument. All signals are generated from historical and real-time price data using mathematical calculations — their accuracy or profitability is not guaranteed. Past performance of any signal type does not guarantee future results. Always conduct your own analysis, use proper risk management, and consult a licensed financial advisor before making any trading decisions. The author accepts no responsibility for any losses incurred from the use of this indicator.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Built for traders who understand that price always returns to where it left unfinished business — and who want a system precise enough to be there when it does. Indicator

Fair Value Gap Zones MTF + Wait CloseFair Value Gap Zones MTF + Wait Close
Fair Value Gap Zones MTF is a market imbalance and liquidity indicator designed to automatically identify and project Fair Value Gap (FVG) zones across customizable timeframes.
Fair Value Gaps represent areas where price moves aggressively enough to leave an imbalance between buyers and sellers, creating regions that may later act as areas of interest for reaction, continuation, retracement, or liquidity interaction.
This indicator allows for multi-timeframe FVG analysis, optional displacement filtering, customizable gap thresholds, and dynamic zone management to provide greater flexibility across different trading styles and market environments.
Features:
• Automatic bullish and bearish Fair Value Gap detection
• Multi-timeframe (MTF) support
• Optional "Wait Until Bar Close" confirmation logic
• Multiple minimum gap sizing methods:
• ATR-based
• Percentage-based
• Fixed points-based
• Optional displacement candle requirement
• Box or line display modes
• Optional FVG midline plotting
• Extend zones into future price action
• Adjustable zone count limits
• Optional automatic deletion when zones become filled
• Fully customizable colors and styles
Alerts Included:
• New Bullish Fair Value Gap
• New Bearish Fair Value Gap
Potential use cases:
• Identify market imbalances
• Locate potential retracement areas
• Monitor liquidity interaction zones
• Add confluence to existing strategies
• Study continuation versus rebalancing behavior
• Analyze higher timeframe market structure
Interpretation:
Bullish Fair Value Gap
Indicates an imbalance created by aggressive upward movement where price may revisit the area before continuing.
Bearish Fair Value Gap
Indicates an imbalance created by aggressive downward movement where price may revisit the area before continuing.
Midline
Displays the midpoint of the imbalance and can act as an additional area of interest.
Displacement Filter
Allows filtering for stronger moves by requiring a larger displacement candle before creating a zone.
This indicator is designed to provide a flexible way to visualize potential market imbalances while allowing traders to adapt the behavior to different instruments and strategies.
About TrendGenY Indicators
TrendGenY indicators are built from market experience, creative concepts, and a constant pursuit of unique perspectives. Rather than following conventional ideas, the focus is on uncovering alternative insights and viewing market behavior through different angles to reveal information that traditional tools may overlook and help traders build a more meaningful edge in the market. Indicator

Indicator

Indicator

Indicator

Indicator

Guter FVG IndikatorDieses Pine Script v6 ist ein erweiterter Fair Value Gap Indikator auf Basis des ursprünglichen FVG-Heatmap-Konzepts von Hash Capital Research.
Der Indikator erkennt automatisch Bullish und Bearish Fair Value Gaps, zeichnet diese direkt im Chart ein und verwaltet aktive Zonen inklusive optionaler Mitigation-Logik, Midline, Labels und Dashboard.
Was macht der Indikator?
Der Indikator sucht nach klassischen 3-Kerzen-Fair-Value-Gaps:
Bullish FVG: wenn high < low
Bearish FVG: wenn low > high
Gefundene Zonen werden als Boxen im Chart angezeigt. Optional wird zusätzlich die 50%-Mittellinie der FVG-Zone eingezeichnet.
Wichtige Funktionen
automatische Erkennung von Bullish und Bearish FVGs
ATR-basierter Mindestfilter für Gap-Größe
optionaler Prozentfilter für Mindestgröße des FVGs
einstellbare Mitigation-Regeln:
Full Fill
50% Fill
First Touch
optionale Entfernung gefüllter Zonen
Midline-Anzeige für die 50%-Zone
Labels für neue FVGs und gefüllte Zonen
Dashboard mit Regime-Auswertung
Alerts für neue Bullish/Bearish FVGs
Neue Dashboard-Erweiterung
Zusätzlich zeigt das Dashboard jetzt die nächsten aktiven FVGs zur aktuellen Preisposition an:
Long FVG 1
Long FVG 2
Short FVG 1
Short FVG 2
Dabei werden nur aktive FVG-Zonen berücksichtigt.
Ein Long FVG entspricht einem Bullish FVG.
Ein Short FVG entspricht einem Bearish FVG.
Die Distanz wird immer zur Mittellinie des jeweiligen FVGs berechnet:
distanceToMidPercent = ((zone.midpoint - close) / close) * 100
Für die Sortierung wird die absolute Distanz verwendet. Dadurch werden die nächstgelegenen FVGs unabhängig davon gefunden, ob sie oberhalb oder unterhalb des aktuellen Preises liegen.
Ausschlussregel für sehr nahe FVGs
FVGs, deren Mittellinie bereits sehr nahe am aktuellen Preis liegt, werden nicht mehr im Dashboard angezeigt.
Wenn die Distanz zur Midline kleiner oder gleich 0.2% ist, wird diese Zone ignoriert:
math.abs(distanceToMidPercent) <= 0.2
Das soll verhindern, dass bereits fast erreichte FVGs weiterhin als relevante „nächste“ Ziele angezeigt werden.
Farblogik im Dashboard
Long FVGs werden cyan/grünlich angezeigt
Short FVGs werden rot/pink angezeigt
FVGs nahe am Ausschlussbereich, also unter 0.5%, werden orange angezeigt
Wenn kein passendes FVG vorhanden ist, erscheint n/a
Regime Dashboard
Das Dashboard zeigt außerdem Statistiken zur bisherigen FVG-Füllung:
aktuelles Marktregime
durchschnittliche Fill-Dauer
Median-Fill-Dauer
schnelle Fills
langsame Fills
Sample Size
aktive Zonen
Das Regime basiert auf der Geschwindigkeit, mit der historische FVGs gefüllt wurden. Dadurch kann der Indikator Hinweise geben, ob der Markt eher mean-reverting, trending oder gemischt ist.
Wofür kann der Indikator genutzt werden?
Dieses Tool kann helfen, aktive Fair Value Gaps besser zu verfolgen und potenzielle Zielbereiche im Chart schneller zu erkennen.
Besonders nützlich ist die Anzeige der nächsten Long- und Short-FVGs, da sie direkt zeigt, welche aktiven FVG-Midlines dem aktuellen Preis am nächsten liegen.
Der Indikator ist nicht als eigenständiges Handelssystem gedacht, sondern als visuelles Analysewerkzeug zur Unterstützung bei Marktstruktur, Liquiditätszonen und möglichen Reaktionsbereichen.
Hinweis
Dieses Skript stellt keine Finanzberatung dar. Es dient ausschließlich zu Analyse- und Bildungszwecken. Trading ist mit Risiko verbunden. Nutze den Indikator immer zusammen mit eigener Analyse, Risikomanagement und einem klaren Handelsplan.
Erklärung der Marktregime
Das Dashboard versucht anhand der historischen FVG-Fill-Geschwindigkeit einzuschätzen, in welchem Marktumfeld sich der Chart aktuell eher befindet.
Dabei werden drei Regime unterschieden:
1. CHOPPY / MEAN-REVERT
Dieses Regime erscheint, wenn viele FVGs relativ schnell wieder gefüllt werden.
Das deutet häufig auf einen seitwärts laufenden, unruhigen oder stark zurücklaufenden Markt hin. Preisbewegungen halten in solchen Phasen oft nicht lange an, sondern kehren schnell zu vorherigen Ungleichgewichten zurück.
Möglicher Trading-Ansatz:
eher vorsichtig mit Breakout-Trades sein
FVGs können häufiger als kurzfristige Ziele genutzt werden
Mean-Reversion-Setups können besser funktionieren
Gewinne eher schneller sichern
nicht zu aggressiv auf starke Trendfortsetzung setzen
2. TRENDING / DISPLACEMENT
Dieses Regime erscheint, wenn FVGs langsamer oder seltener gefüllt werden.
Das kann darauf hindeuten, dass der Markt stärker in eine Richtung läuft und Ungleichgewichte länger offen bleiben. In solchen Phasen kann Momentum wichtiger sein als sofortige Rückläufe.
Möglicher Trading-Ansatz:
eher mit dem Trend arbeiten
Pullbacks in Richtung aktiver FVGs beobachten
FVGs können als mögliche Re-Entry- oder Discount/Premium-Zonen dienen
nicht jedes offene FVG sofort als Fill-Ziel behandeln
laufende Trends nicht zu früh gegenhandeln
3. MIXED / TRANSITIONAL
Dieses Regime erscheint, wenn weder schnelle noch langsame Fills klar dominieren.
Der Markt befindet sich dann oft in einer Übergangsphase. Es kann zu Richtungswechseln, wechselnder Volatilität oder unklarer Struktur kommen.
Möglicher Trading-Ansatz:
selektiver handeln
auf zusätzliche Bestätigung warten
kleinere Positionsgrößen oder konservativeres Risiko nutzen
wichtige FVGs mit Marktstruktur, Liquidität und höheren Zeiteinheiten kombinieren
keine zu starke Annahme über Trend oder Mean Reversion treffen
Wichtig
Die Regime-Anzeige ist keine Kauf- oder Verkaufsempfehlung. Sie beschreibt nur, wie sich FVGs in der jüngeren Vergangenheit verhalten haben. Am besten funktioniert sie als Kontextfilter zusammen mit Marktstruktur, Liquidität, Session-Zeiten, Volumen und sauberem Risikomanagement. Indicator

CandelaCharts - First P.FVG Killzone📝 Overview
The First P.FVG Killzone indicator automatically maps out user-defined trading sessions (Killzones) and highlights the First Presented Fair Value Gap (FVG) that forms within them.
Based on ICT concepts, killzones are specific time windows where high probability setups often occur. The first FVG to form in these sessions can act as a crucial reference point for the market's direction. This tool helps traders visualize the session range, the first institutional imbalance, and historical sweep probabilities.
📦 Features
Customizable Killzone Sessions (Asia, London, NY AM, NY Launch, NY PM, and Custom sessions)
First Presented FVG Detection within each session
Session Range Visualization (High, Low, and Mean lines with invalidation tracking)
FVG Visibility Filters (All, Bullish, Bearish, None)
Advanced FVG Styling (Midline, Borders, Labels, Extension Modes)
Session Dividers and Timeframe Separators
Historical Sweep Statistics (Probability of session High/Low sweeps)
⚙️ Settings
General: Adjust global text size and visibility of the brand watermark.
Imbalance Settings: Control the filtering, styling, and extension behavior (Fixed, Session End, Full) of the First P.FVG.
History: Set the total number of historical sessions to display.
Sessions (First to Eighth): Toggle visibility, set timeframes, and customize colors for each killzone.
Styles: Customize the appearance of the session box, borders, labels, and extended High/Low/Mean lines.
Statistics: Enable and configure historical probability tracking for session sweeps (Total Sweep vs. Session Overlap).
Dividers: Manage the style, width, and color of vertical session dividers and timeframe separators.
⚡️ Showcase
Killzone Sessions
Visualizing the different killzones with their defined ranges.
First Presented FVG
Highlighting the first FVG that forms inside the session.
Sweep Statistics
Displaying the historical probability of the session high or low being swept.
📒 Usage
The indicator is highly customizable, allowing you to use various session models and automatically detect the first Fair Value Gap (FVG) that forms within each defined session.
How to use in trading
The first Fair Value Gap of a specific session often sets the tone for subsequent price action. Price frequently gravitates towards and interacts with these initial imbalances later in the trading day. Because of this, the First Presented FVG can serve as a key intraday reference point, acting as strong dynamic support or resistance (S/R) levels. Traders can watch these extended FVG zones for high-probability continuation setups or potential reversal points when the price retraces back into them.
Below are some common reference times you can use when setting up your sessions:
ICT Killzones:
Asia: 2000-0000
London: 0200-0500
NY AM: 0930-1100
NY Launch: 1200-1300
NY PM: 1330-1600
Classic Sessions:
Sydney: 1700-0200
Tokyo: 1900-0400
London: 0300-1200
New York: 0800-1700
Harmonic Series:
Origin: 0000-0300
Prime: 0300-0600
Ascent: 0600-0900
Apex: 0900-1200
Meridian: 1200-1500
Entropy: 1500-1800
Vector: 1800-2100
Convergence: 2100-0000
🚨 Alerts
This script provides alert options for when a new First Presented FVG is formed in any of the configured Killzones.
Bearish Signal
A bearish signal is triggered when the first bearish P.FVG is formed within an active Killzone.
Bullish Signal
A bullish signal is triggered when the first bullish P.FVG is formed within an active Killzone.
⚠️ Disclaimer
Trading involves significant risk, and many participants may incur losses. The content on this site is not intended as financial advice and should not be interpreted as such. Decisions to buy, sell, hold, or trade securities, commodities, or other financial instruments carry inherent risks and are best made with guidance from qualified financial professionals. Past performance is not indicative of future results.
Indicator
