OPEN-SOURCE SCRIPT

[ A L P H A X ] Structure Flow Pro

4 571
AlphaX Structure Flow Pro — Market Structure Engine, HPZ Order Blocks, Fair Value Gaps, Liquidity Sweeps, Equal Highs/Lows & SMC Confluence Signals

AlphaX Structure Flow Pro is a professional-grade Smart Money Concepts indicator built on a pivot-driven market structure engine that detects swing highs and lows in real time, identifies Market Structure Breaks with momentum Z-score validation and Body-Confirmed Breaks, discovers and scores Order Blocks using a proprietary High Probability Zone algorithm, maps Fair Value Gaps and Liquidity Sweeps as they form, identifies Equal Highs and Lows as liquidity pools, and synthesizes every active condition into a tiered SMC Confluence Score — all displayed on a live dashboard with 15+ alert conditions. Designed for traders who operate within the institutional Smart Money framework on any liquid instrument and timeframe.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

📸 Visual Overview
snapshot

Full chart view showing Market Structure swing lines, MSB/BMS labels, HPZ Order Blocks with POC lines, FVG zones, Liquidity Sweep markers, Equal High/Low connections, SMC tiered entry labels, and the live Dashboard panel on XAUUSD

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

🔬 The Market Structure Engine — How It Works

At the core of AlphaX Structure Flow Pro is a real-time pivot-based swing detection system that continuously tracks confirmed swing highs and swing lows using a configurable lookback window. Every confirmed pivot is labeled, connected, and used as the structural reference for all break logic downstream.

Each confirmed pivot produces:

  • A dotted swing line connecting the current and previous swing high or swing low — a live map of whether price is building higher highs and higher lows, or lower highs and lower lows
  • Small compact H and L labels at every swing point to mark the structural sequence clearly


From these pivots, the engine monitors two distinct types of structural break — each progressively more powerful than the last:

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

1 ─ Market Structure Break (MSB)

A confirmed close beyond the last tracked swing high or low, validated by a Momentum Z-Score filter. The Z-Score measures how many standard deviations the current bar's price change sits above or below its 50-bar mean. Only breaks where momentum is statistically significant above your configured threshold are accepted — low-conviction wicks, slow grinds, and false closes through structure are automatically ignored.

When a valid MSB fires:
  • A horizontal line is drawn from the breached pivot to the current bar, anchored at the exact structural level
  • An MSB ▲ or MSB ▼ label appears at the midpoint of that line
  • The breached swing level is reset so the engine never double-fires on the same break


━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

2 ─ Break of Market Structure (BMS)

A stricter and more powerful structural confirmation. In addition to closing beyond the pivot, BMS requires the breaking candle to have a body-to-range ratio above 50% — the break must be driven by a full-bodied candle, not a wick spike. BMS fires as a compact BMS label when it occurs without a simultaneous MSB, giving you a clear visual distinction between a momentum-confirmed break and a body-confirmed break.

How to read them together:
  • MSB — momentum is statistically significant but the candle body is below 50% — a valid break, treat it with context
  • BMS — the candle closed through structure with conviction — higher-probability structural shift
  • When both fire simultaneously, only the MSB label is shown as it already captures the event


Together, MSB and BMS form the structural backbone from which all Order Block discovery, FVG anchoring, and SMC Confluence scoring is triggered.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

📦 Order Block Engine with HPZ Scoring

Every Market Structure Break triggers an automatic search backward through the preceding candles to identify the originating Order Block — the last candle moving against the direction of the break before price impulsed away. For a bullish MSB the engine finds the last bearish candle within the lookback window. For a bearish MSB it finds the last bullish candle.

Each discovered Order Block is assigned a Quality Score from 0 to 100 built from four independent factors:

Momentum Strength
The absolute magnitude of the Momentum Z-Score at the time of the MSB. Stronger impulsive moves away from the OB produce higher scores — a zone that launched a 3-sigma move ranks far above one that launched a 0.5-sigma drift.

Volume Percentile
The current bar's volume ranked against its last 100 bars using percentile rank. High-volume structural breaks indicate institutional participation — OBs discovered on high-volume breaks score significantly higher.

Candle Body Ratio
The proportion of the breaking candle that is body versus wick. A full-bodied impulsive candle away from the OB signals conviction. A wick-heavy or indecision candle signals a weaker origin.

OB Size Relative to ATR
The Order Block's height measured against the current 14-period ATR. Compact, well-defined OBs close to 1 ATR score proportionally — excessively large or tiny zones are naturally discounted.

These four factors are combined into the final Quality Score displayed on every OB label. Zones that score above your configured HPZ Threshold (default 75%) are promoted to High Probability Zones ⬡ and rendered with a brighter border and a distinct ⬡HPZ badge — the highest-conviction institutional zones on your chart.

HPZ Order Blocks rendered with enhanced borders and ⬡HPZ badge — standard OBs shown with dimmer styling for instant visual hierarchy

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Order Block Management

Active Order Blocks are not static — AlphaX Structure Flow Pro manages every zone dynamically bar by bar:

  • Live extension — every active, unmitigated OB extends its right edge forward to the current bar automatically, keeping your zones current at all times
  • Point of Control (POC) line — a dashed line at the exact midpoint of every OB, showing the most important price level within the zone
  • Mitigation detection — when price trades into the OB (low below OB bottom for bullish, high above OB top for bearish), the zone is marked as mitigated and dimmed to neutral gray
  • Historical mode — mitigated OBs remain visible on the chart dimmed for reference, letting you study how price reacted after mitigation
  • Present mode — mitigated OBs are deleted automatically, keeping the chart clean with only live unmitigated zones visible
  • Extend Broken OBs — optionally continue extending mitigated zones for up to 50 bars after mitigation for post-mitigation analysis
  • Overlap filtering — optionally hide new OBs that overlap existing active zones, preventing zone clustering in congested areas
  • OB Reliability tracker — the dashboard shows a live percentage of how many total OBs have been mitigated versus left untouched, giving you a real-time measure of how well price is respecting the zones on your current instrument and timeframe


━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

📊 Fair Value Gaps (FVG)

AlphaX Structure Flow Pro detects Fair Value Gaps — three-candle imbalances where price moved so fast that the market left an unfilled gap between candle one's high/low and candle three's low/high.

  • Bullish FVG — candle three's low is above candle one's high — an upward gap in price action that the market may return to fill
  • Bearish FVG — candle three's high is below candle one's low — a downward gap


A minimum FVG size filter (ATR × your configured factor) prevents micro-gaps from cluttering the chart — only imbalances of meaningful size relative to current volatility are plotted.

Each FVG is drawn as a shaded box that extends forward bar by bar. When price trades back into the gap, the box is marked as filled and dimmed to neutral, stopping its extension. The dashboard tracks how many FVGs remain unfilled at all times, and the SMC Confluence engine uses unfilled FVGs above and below price as draw-on-liquidity targets when scoring entry signals.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Liquidity Sweeps

A Liquidity Sweep is one of the most important Smart Money patterns — institutions engineer price to run stop-loss liquidity beyond obvious highs or lows, then reverse sharply. AlphaX Structure Flow Pro identifies these events in real time.

Bullish Sweep — the candle's low breaks below the lowest low of the recent lookback window but the candle closes back above that level as a bullish close. Stops below recent lows were hunted, liquidity was absorbed, and price reversed upward.

Bearish Sweep — the candle's high breaks above the highest high of the recent lookback window but the candle closes back below that level as a bearish close. Stops above recent highs were hunted.

Each sweep is marked with a compact ⚡ label at the wick extreme. Sweeps feed directly into the SMC Confluence scoring system — a bullish sweep adds 20 points to the Bull SMC Score because it signals smart money accumulation, and a bearish sweep adds 20 points to the Bear SMC Score for the same reason in reverse.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Equal Highs and Equal Lows (EQH / EQL)

Equal Highs and Equal Lows are areas where price has printed two swing highs or two swing lows at nearly the same level — these levels represent clusters of resting stop-loss orders and are prime targets for institutional liquidity sweeps.

AlphaX Structure Flow Pro detects EQH and EQL automatically by comparing consecutive confirmed pivots. When two swing highs are within your configured ATR-scaled tolerance of each other, an EQH label and dotted connection line are drawn. When two swing lows match, an EQL label appears.

The ATR-scaled tolerance ensures the detection adapts to current market volatility — what counts as "equal" on a calm Asian session is different from a high-volatility London open, and the indicator adjusts automatically.

Equal Highs and Equal Lows marked with purple dotted lines — clear visual identification of stop-hunt targets above and below current price

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

🧠 SMC Confluence Scoring System

Every signal in AlphaX Structure Flow Pro feeds into a real-time SMC Confluence Engine that evaluates all active conditions simultaneously and produces a score from 0 to 100 for both the bullish and bearish side. Only scores that meet your configured minimum threshold generate a visible entry label — weak, ambiguous, or isolated setups never reach the chart.

Bull SMC Score Factors:

  • Market Structure Break (30 points) — an MSB bull fires adds 30 points as the core structural trigger. A BMS bull without simultaneous MSB adds 20 points.
  • Liquidity Sweep (20 points) — a bullish sweep on the current bar adds 20 points — smart money has absorbed sell-side liquidity
  • Near Bullish HPZ Order Blocks (up to 18 points) — two or more unmitigated bullish HPZ OBs within 2 ATR of price adds 18 points. One HPZ OB nearby adds 10 points.
  • Bearish FVG Draw on Liquidity (up to 10 points) — two or more unfilled bearish FVGs above price (magnets drawing price upward) adds 10 points. One adds 5 points.
  • Momentum Z-Score confirmation (up to 12 points) — strong upward momentum (Z > 2.0) adds 12 points. Moderate (Z > 1.0) adds 7. Mild (Z > 0.5) adds 3.
  • Volume ratio (up to 8 points) — volume spike (×2.0) adds 8, high volume (×1.3) adds 5, above average (×1.0) adds 2
  • Candle body (up to 6 points) — a bullish close with body ratio above 60% adds 6 points. Any bullish close adds 3.
  • Penalties — strong downward momentum (Z < −1.0) deducts 10 points. Two or more nearby bearish HPZ OBs deduct 8 points.


Bear SMC Score Factors are the exact mirror of the above, applied in reverse for all bearish conditions.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Signal Tiers and Entry Labels

Every signal that clears the minimum SMC score threshold is classified into one of three tiers based on its final score:

  • S-Tier — score ≥ 70. Maximum confluence. All major factors aligned. The highest-confidence setups the engine produces.
  • A-Tier — score 55–69. Strong confluence with most major factors present.
  • B-Tier — score at or above your minimum threshold but below 55. Valid setup with meaningful confluence but fewer confirming factors.


Entry labels appear directly on the chart with the tier and score displayed:
  • ▲ S-SMC (82) — bullish S-tier signal with a score of 82
  • ▼ A-SMC (61) — bearish A-tier signal with a score of 61


Label color intensity reflects the tier — S-tier labels use the brightest bull or bear color, A-tier uses the primary color, B-tier uses the dimmed shade. This gives you instant visual priority — your eyes go to the brightest labels first.

A configurable Signal Cooldown prevents back-to-back signals within a set number of bars, eliminating label spam during fast-moving structural events.

S-tier and A-tier entry labels appearing below bars during bullish SMC confluence — label brightness reflects confidence tier at a glance

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

🗓 Session Ranges

AlphaX Structure Flow Pro includes a full Session Range overlay for the four major trading sessions — London, New York, Tokyo, and Sydney — each independently toggleable with customizable colors and time windows.

Session boxes draw in real time as the session opens, expanding their high and low dynamically as price prints new extremes within the session. The session label updates its position to stay centered above the range. Each session closes when its time window ends, leaving the completed range as a permanent reference box for that period.

Use session ranges to:
  • Identify the high and low of a session as key liquidity targets for sweeps
  • Determine whether an MSB or OB formation occurred during a high-liquidity or low-liquidity window
  • Spot the London or New York open as a structural break origin


━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

📊 Live Dashboard

The AlphaX Structure Flow Pro dashboard gives you a complete real-time readout of every active market condition in a compact panel — no need to visually scan the chart for each element individually.

Market Structure section:
  • MSB STATUS — shows whether a Bull MSB, Bear MSB, or no MSB is active on the current bar
  • BMS (BODY) — shows whether a body-confirmed structural break is active
  • MOMENTUM Z — current Z-score reading with direction label (STRONG / MODERATE / MILD / FLAT) and raw value


Order Blocks section:
  • ACTIVE OBs — total count of unmitigated Order Blocks currently on the chart
  • HPZ OBs — count of active High Probability Zone OBs, highlighted when any are present
  • OB RELIABILITY — live percentage of total OBs that have been mitigated since the indicator started tracking — your real-time measure of how well structure is being respected


Liquidity & Imbalance section:
  • LIQ SWEEP — shows whether a Bull or Bear liquidity sweep is active on the current bar
  • OPEN FVGs — count of unfilled Fair Value Gaps currently active
  • DRAW ON LIQ — shows whether price has unfilled FVGs drawing it upward, downward, or on both sides


SMC Confluence section:
  • BULL SMC SCORE — current bullish confluence score with tier label (S-TIER / A-TIER / B-TIER / LOW)
  • BEAR SMC SCORE — current bearish confluence score with tier label
  • HPZ PROXIMITY — shows whether price is near a Bull HPZ zone, Bear HPZ zone, both sides, or neither


Market Conditions section:
  • VOLUME — current volume classified as SPIKE / HIGH / NORMAL / DRY with the live ×ratio
  • ATR (14) — current 14-period ATR value in price terms
  • CANDLE BODY — current candle body ratio classified as STRONG / MODERATE / WEAK with percentage


Active Signal section:
  • SIGNAL — shows the active entry signal direction and tier, or NONE — the single most important row if you need a quick status check


Dashboard position (Top Left / Top Right / Bottom Left / Bottom Right) and text size (Tiny / Small / Normal / Large) are fully configurable.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Identifying Low-Quality Conditions — When NOT to Trade

Knowing when to stay out is just as important as knowing when to enter. AlphaX Structure Flow Pro gives you clear signals that the market is not in a tradeable condition:

How to identify unfavorable conditions:
  • No MSB or BMS on the dashboard — if the MSB STATUS row shows NONE, there is no confirmed structural trigger. No structural break means no Order Block discovery, and no SMC signals should be acted on.
  • Bull and Bear SMC Scores both show LOW — when neither side can build enough confluence to reach even B-tier, the market is either ranging, choppy, or lacking institutional participation. Wait for a clear dominant side to emerge.
  • OB RELIABILITY is very high (above 80–90%) — when nearly every OB is being quickly mitigated, price is not respecting structure and the market is in a sweep-and-reverse or noise regime. Reduce position size or stand aside.
  • No SMC entry labels appearing — the confluence engine is running on every bar. If no labels are printing even after MSB events, the filters are doing their job blocking low-quality setups. Do not lower the threshold to force signals — wait for real confluence.
  • DRAW ON LIQ shows BOTH SIDES — unfilled FVGs above and below simultaneously means price is in the middle of a contested range with equal magnets in both directions. No clean directional edge exists.
  • MOMENTUM Z reads FLAT on the dashboard — flat momentum at a structural level often means a failed break rather than a true MSB. Treat these events with extra caution.


What to do during unfavorable conditions:
  • Wait for a clean MSB or BMS to set the directional bias before considering any entry
  • Look for one dominant side in the SMC Confluence section — both Bull and Bear scores being low simultaneously is a ranging signal
  • Watch for a liquidity sweep followed immediately by an MSB in the same direction — that sequence is one of the highest-probability SMC setups and will produce a strong confluence score when it fires
  • Consider switching to a higher timeframe to find cleaner structure — if the current timeframe is printing rapid alternating MSBs, the higher timeframe trend will show you the dominant direction


━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

🚀 How to Trade with AlphaX Structure Flow Pro — Step by Step

Step 1 — Read the Dashboard
  • Check MSB STATUS and BMS — is there a live structural break?
  • Check Bull and Bear SMC Scores — is one side clearly dominant with a B-tier or higher score?
  • Check DRAW ON LIQ — are unfilled FVGs pulling price in one clear direction?
  • If no clear dominant side and no MSB → do not trade. Wait for structure.


Step 2 — Identify the Structural Trigger
  • An MSB ▲ or BMS bull sets your bullish directional bias
  • An MSB ▼ or BMS bear sets your bearish directional bias
  • Do not enter blindly on the MSB label alone — use it to set context, then wait for a tiered SMC signal to confirm


Step 3 — Enter on a Tiered SMC Signal
  • Wait for a ▲ SMC or ▼ SMC label to appear with a tier of B or higher
  • Prioritize S-tier and A-tier signals — these have the most factors aligned
  • Check that an unmitigated HPZ Order Block is nearby in the direction of the trade — HPZ proximity is displayed on the dashboard in real time
  • Place your stop loss beyond the most recent swing low (for longs) or swing high (for shorts), or just beyond the relevant OB's outer edge


Step 4 — Use FVGs and OBs as Targets and Re-Entry Zones
  • Unfilled FVGs in the direction of the trade are natural draw-on-liquidity targets — they show you where price is likely being pulled toward
  • Mitigated OBs (shown dimmed in Historical mode) mark areas where price has already visited and absorbed — useful as reference for prior institutional activity
  • If price pulls back into an unmitigated bullish OB without triggering a new bearish MSB, that is a potential re-entry zone aligned with the original structural break


Step 5 — Monitor for Structural Invalidation
  • If an opposing MSB fires after your entry, the structure has shifted — close or reduce your position
  • If the SMC Score for your trade direction drops to LOW on the dashboard without a new signal, momentum is fading
  • A liquidity sweep against your position that does not produce a reversal SMC signal is a warning — tighten your stop


Step 6 — Watch for Equal Highs/Lows as Exit Targets
  • EQH levels above price during a bull trade are natural exit zones — institutions often sweep equal highs as final liquidity grabs before reversal
  • EQL levels below price during a bear trade serve the same purpose
  • Consider taking partial profit as price approaches an EQH or EQL level, then hold the remainder for a potential sweep and continuation


━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Key Features

  • 🔬 Pivot-based market structure engine with configurable swing lookback — tracks confirmed swing highs and lows in real time
  • 📈 MSB detection with Momentum Z-Score validation — filters out low-conviction structural breaks statistically
  • 💪 BMS detection with candle body ratio confirmation — only full-bodied closes through structure qualify
  • 📦 Order Block discovery anchored to every MSB — automatically finds the originating institutional candle
  • ⬡ Proprietary HPZ Quality Score (0–100) — four-factor scoring system promotes the highest-conviction zones to High Probability Zone status
  • 📍 Point of Control line on every Order Block — shows the midpoint of the zone for precision entries
  • 🔄 Dynamic OB management — live extension, mitigation detection, Historical and Present display modes, overlap filtering, and broken OB extension
  • 📊 Fair Value Gap detection with ATR-scaled minimum size filter — bullish and bearish imbalances mapped and tracked until filled
  • ⚡ Liquidity Sweep detection — wick-beyond plus close-inside logic identifies institutional stop hunts in real time
  • 〰 Equal Highs and Equal Lows detection with ATR-scaled tolerance — automatic identification of resting liquidity pools
  • 🧠 Multi-factor SMC Confluence Scoring Engine — synthesizes structure, sweeps, HPZ OBs, FVG draw, momentum, volume, and candle body into a single 0–100 score per side
  • 🏆 Three-tier signal classification — S-Tier (≥70), A-Tier (55–69), B-Tier (threshold to 54) with color-coded label intensity
  • ⏱ Signal cooldown timer — configurable minimum bars between signals to eliminate label spam
  • ✅ Optional volume confirmation filter — require minimum volume ratio before any signal fires
  • 🗓 Four-session range overlay — London, New York, Tokyo, and Sydney each independently toggleable with custom colors and time windows
  • 📋 Live 7-section dashboard — MSB/BMS status, momentum Z, OB counts, HPZ proximity, FVG draw direction, SMC scores, volume, ATR, and active signal — all in one panel
  • 🎨 Fully customizable color theme — 13 configurable colors covering bull, bear, neutral, FVG, sweep, EQL, and dashboard elements
  • 🔔 15+ alert conditions — MSB bull/bear, BMS bull/bear, S/A/B-tier bull signals, S/A/B-tier bear signals, any SMC signal, bull/bear sweeps, bull/bear FVGs, and MSB + HPZ confluence alerts
  • ⚙ Fully configurable — every lookback, threshold, score, toggle, color, and session window adjustable from the settings panel


━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Settings Reference

Market Structure
  • Pivot Lookback — bars on each side required to confirm a swing high or low (default: 7, range: 3–21)
  • MSB Momentum Z-Score — minimum standard deviation threshold for a valid Market Structure Break (default: 0.5)
  • Show MSB Lines & Labels — toggle visibility of MSB/BMS lines and labels
  • Show Structure Swings — toggle visibility of swing lines and H/L pivot labels
  • Detect Break of Market Structure (BMS) — enable or disable body-confirmed structural break detection


Order Blocks
  • Max Active OBs — maximum number of unmitigated Order Blocks kept on the chart at once (default: 10)
  • OB Lookback (candles) — how many candles back the engine searches for the originating OB after an MSB (default: 10)
  • Extend Broken OBs — continue extending mitigated OBs for up to 50 bars after mitigation
  • Hide Overlapping OBs — skip new OBs that overlap existing active zones
  • Display Mode — Historical (keep mitigated OBs dimmed) or Present (delete mitigated OBs automatically)
  • HPZ Threshold Score (%) — minimum quality score required for HPZ promotion (default: 75%)
  • Show OB Point of Control — toggle the midpoint POC dashed line on Order Blocks


Liquidity & Imbalance
  • Show Fair Value Gaps — toggle FVG detection and display
  • Min FVG Size (ATR × factor) — minimum gap size as a multiple of ATR to qualify as a valid FVG (default: 0.05)
  • Show Liquidity Sweeps — toggle sweep detection and ⚡ markers
  • Sweep Lookback (bars) — lookback window for determining the recent high/low that is swept (default: 20)
  • Show Equal Highs / Lows — toggle EQH and EQL detection and display
  • EQL Tolerance (ATR × factor) — how close two pivots must be to qualify as equal, scaled to ATR (default: 0.1)


Smart Money Confluence (SMC)
  • Enable SMC Confluence Engine — master toggle for the scoring system and all entry labels
  • Min SMC Score to Signal — minimum confluence score required to display an entry label (default: 30)
  • Signal Cooldown (bars) — minimum bars between consecutive signals in the same direction (default: 3)
  • Require Volume Confirmation — only fire signals when volume ratio meets the minimum threshold
  • Min Volume Ratio — minimum volume-to-SMA ratio required when volume filter is enabled (default: 0.7)


Sessions
  • Show Session Ranges — master toggle for the session overlay
  • London / New York / Tokyo / Sydney — independently toggle each session with configurable time window and color


Dashboard
  • Show Dashboard — toggle the dashboard panel on or off
  • Position — Top Left / Top Right / Bottom Left / Bottom Right
  • Size — Tiny / Small / Normal / Large


Appearance
  • Label Size — controls the size of all MSB, BMS, sweep, EQH/EQL, and entry labels (Tiny / Small / Normal)


Colors
  • Bull Primary / Bright / Dim — three shades of the bullish color family for OBs, labels, and signals
  • Bear Primary / Bright / Dim — three shades of the bearish color family
  • Neutral / Neutral Light — colors for mitigated zones and inactive states
  • Text Light — color for dashboard row labels
  • Dashboard Background — background color of the dashboard panel
  • FVG Bull / Bear Color — colors for bullish and bearish Fair Value Gap zones
  • Liquidity Sweep Color — color for sweep ⚡ labels
  • Equal Hi/Lo Color — color for EQH and EQL lines and labels


━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

🔔 Alert Conditions

  • Bull Market Structure Break — fires on every bullish MSB
  • Bear Market Structure Break — fires on every bearish MSB
  • Bull Break of Market Structure (Body Close) — fires on every bullish BMS
  • Bear Break of Market Structure (Body Close) — fires on every bearish BMS
  • S-Tier Bull SMC Signal — bullish signal with score ≥ 70
  • A-Tier Bull SMC Signal — bullish signal with score 55–69
  • B-Tier Bull SMC Signal — bullish signal below 55 but above minimum threshold
  • S-Tier Bear SMC Signal — bearish signal with score ≥ 70
  • A-Tier Bear SMC Signal — bearish signal with score 55–69
  • B-Tier Bear SMC Signal — bearish signal below 55 but above minimum threshold
  • Any SMC Signal — fires on any bullish or bearish signal regardless of tier
  • Bull Liquidity Sweep — wick below recent lows with bullish close
  • Bear Liquidity Sweep — wick above recent highs with bearish close
  • Bullish Fair Value Gap — new bullish FVG formed
  • Bearish Fair Value Gap — new bearish FVG formed
  • Bull MSB + HPZ Confluence — bullish MSB with at least one nearby unmitigated HPZ OB
  • Bear MSB + HPZ Confluence — bearish MSB with at least one nearby unmitigated HPZ OB


All alert messages include {{ticker}} and {{interval}} placeholders for clean webhook and bot integration.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

🎯 Recommended Settings by Use Case

The default configuration is tuned for intraday trading on liquid instruments including XAUUSD, forex majors, and indices on M1 to M15 timeframes.

For tighter, higher-conviction signals:
  • Increase Min SMC Score to 45–55 — only S-tier and strong A-tier setups fire
  • Enable Require Volume Confirmation and set Min Volume Ratio to 1.0–1.3
  • Increase Pivot Lookback to 9–12 for larger, more significant swing points
  • Set HPZ Threshold to 80% to tighten HPZ qualification


For more signals and aggressive scalping:
  • Reduce Min SMC Score to 20–25
  • Reduce Signal Cooldown to 1–2 bars
  • Reduce Pivot Lookback to 3–5 for faster swing detection
  • Keep Volume Confirmation off


For higher timeframes (H1, H4, Daily):
  • Increase Pivot Lookback to 10–15
  • Increase OB Lookback to 15–20
  • Increase Min SMC Score to 40–50
  • Increase Sweep Lookback to 30–50


For ranging or news-driven markets:
  • Enable Hide Overlapping OBs to reduce zone clutter
  • Switch Display Mode to Present to keep only live zones visible
  • Monitor DRAW ON LIQ on the dashboard — if both sides show FVGs, avoid directional trades


━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

👥 Who This Is For

  • 🥇 Smart Money Concepts traders — built specifically around the MSB → OB → FVG → Sweep framework that institutional-style traders use
  • 📉 Forex and Gold traders — fully applicable to XAUUSD, forex majors and minors, and all liquid currency pairs
  • 📊 Index traders — works on US30, NAS100, SPX500, DAX, and all major equity indices
  • 🧠 Systematic and rule-based traders — the confluence scoring system provides a quantitative, objective framework rather than purely subjective visual reads
  • 📈 Traders who want one complete SMC system — structure, OBs, FVGs, sweeps, EQH/EQL, sessions, scoring, and dashboard in a single indicator rather than layering five separate tools
  • Traders who struggle with overtrading — the minimum score filter, cooldown, and volume gate physically prevent low-quality signals from reaching the chart
  • 🔔 Alert-driven traders and bot operators — 17 alert conditions with clean webhook-ready message formatting cover every meaningful event the indicator can detect


━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

📝 Notes

  • Session range features use the time zone of each configured session string — set your London and New York session times to match your chart's time zone if ranges appear offset
  • The Momentum Z-Score is calculated over a 50-bar rolling window — on very short histories or immediately after a chart loads, early bars may have lower Z-Score values until the window fills
  • OB Reliability percentage starts from zero when the indicator first loads and builds over time as OBs are discovered and mitigated — it is most meaningful after a full session of price action
  • The SMC Confluence Engine evaluates conditions on bar close — all signals are non-repainting and confirmed on the closed bar
  • With max_boxes_count, max_lines_count, and max_labels_count each set to 500 and max_bars_back at 500, on very low timeframes with extended chart history the oldest visual elements may be automatically removed by TradingView's rendering limits — this is a platform constraint, not an indicator limitation
  • The HPZ proximity check uses a 2 ATR radius around the current close price — zones further away than 2 ATR are not counted in the SMC score even if they are unmitigated and visible on the chart


━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

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 demand structure, confluence, and precision from their Smart Money analysis.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.