Time-Price Volume Heatmap with Liquidity SweepsWhat it does
Most volume tools compress everything into a single vertical profile, so you can see at which price volume traded, but not when. This script splits the lookback window into a grid of time columns × price rows and paints each cell by how much volume was actually traded inside it — producing a time-and-price heatmap of where activity concentrated as the market moved.
On top of that map it tracks the resting liquidity pools that price left behind, and flags the exact bar where each pool is taken.
How it is calculated
The heatmap
The lookback window (default 300 bars) is divided into Time Resolution columns (default 16) and Price Resolution rows (default 26), built between the highest high and lowest low of the window.
For every bar, its volume is distributed evenly across all price rows its high-low range covers. A bar spanning 5 rows adds one fifth of its volume to each. This approximates where inside the candle the activity sat, rather than assigning it all to the close.
Each cell is normalised against the busiest cell in the grid and coloured on a 3-stop gradient. Transparency scales with intensity, so cold zones stay faint and hot zones glow. Cells below Min Intensity are not drawn at all — this keeps the chart readable and stays inside the 500-object limit.
Point of Control Rows are summed across all columns; the heaviest row is drawn as the POC line. The panel also shows POC Density — that row's share of total mapped volume. A high number means volume is concentrated on one shelf; a low number means it is spread out.
Liquidity pools Confirmed pivot highs and lows (Pivot Strength, default 8) mark levels where stop orders typically rest. Each is drawn as a dotted line extending right, labelled with its price. When price trades through a level it is re-drawn solid grey and marked SWEPT, and the sweep counter increments. Levels older than Level Max Age are removed automatically.
Volume bursts Volume is converted to a z-score over Volume Window bars. Two dot sizes mark bars above the strong (2σ) and extreme (3.5σ) thresholds — useful for spotting which bar actually did the damage at a level.
Volume Pressure Volume of up-closes minus volume of down-closes across the window, expressed as a percentage of total. A rough directional bias for the mapped period.
How to read it
Hot zones = price spent time and volume there. They tend to act as magnets and as friction; moves through them are usually slower.
Cold gaps = thin areas. Price often travels through them quickly.
A sweep followed by an immediate move back inside the previous range is the classic liquidity-grab pattern. The sweep marker plus an extreme volume dot on the same bar is the strongest version of it.
POC as reference: the panel tells you whether price is above or below the heaviest shelf. Indicator

Swing Reversal Auto Targets [JPT] - Module 1🔷 OVERVIEW
Swing Reversal Auto Targets is an original Pine Script® v6 indicator that automatically detects confirmed Swing Highs and Swing Lows, identifies market structure, and builds a visual framework for potential reversal opportunities.
The indicator classifies price action into Higher Highs (HH), Higher Lows (HL), Lower Highs (LH), and Lower Lows (LL), allowing traders to follow trend development and identify key reversal zones without manually drawing market structure.
🔷 HOW IT WORKS
The indicator continuously scans price using confirmed pivot swings.
Bullish Structure
A bullish structure develops when the market forms:
• Higher Low (HL)
• Higher High (HH)
These swings indicate that buyers are maintaining control of the trend.
Bearish Structure
A bearish structure develops when price forms:
• Lower High (LH)
• Lower Low (LL)
These swings indicate increasing selling pressure and a possible downtrend.
Every confirmed swing is automatically labeled and plotted on the chart using non-repainting pivot confirmation.
🔷 VISUAL FEATURES
• Automatic Swing High Detection
• Automatic Swing Low Detection
• Higher High (HH) Labels
• Higher Low (HL) Labels
• Lower High (LH) Labels
• Lower Low (LL) Labels
• Dynamic Swing Support Levels
• Dynamic Swing Resistance Levels
• Horizontal Swing Projection
• Historical Swing Visualization
• Clean Market Structure Display
• Customizable Colors
🔷 MARKET STRUCTURE ENGINE
The built-in Swing Engine automatically classifies market structure using confirmed pivot points.
Supported structure:
• Higher High (HH)
• Higher Low (HL)
• Lower High (LH)
• Lower Low (LL)
This helps traders quickly recognize trend continuation and possible reversal areas.
🔷 INPUTS
Available settings include:
• Pivot Length
• Show Swing Labels
• Show Swing Levels
• Extend Swing Levels
• Bullish Color
• Bearish Color
🔷 ALERTS
Built-in alerts are available for:
• New Swing High
• New Swing Low
These alerts can be connected to PulseWire's notification system.
🔷 COMMON WORKFLOW
A typical workflow is:
Wait for a confirmed Swing High or Swing Low.
Observe the HH, HL, LH, or LL label generated by the indicator.
Use the dynamic swing levels as potential support or resistance.
Combine the market structure with your own trend analysis, price action, or additional confirmation before making trading decisions.
🔷 MARKETS
This indicator can be used on:
• Forex (including AUDUSD)
• Gold (XAUUSD)
• Cryptocurrency
• Stocks
• Indices
• Futures
• Commodities
It is compatible with multiple timeframes and trading styles.
🔷 BEST PRACTICES
Many traders combine swing structure with:
• Trend Analysis
• Support & Resistance
• Break of Structure (BOS)
• Change of Character (CHoCH)
• Fair Value Gaps (FVG)
• Order Blocks
• EMA 50 / EMA 200 Trend Filter
• Higher Timeframe Analysis
These concepts are optional but can provide additional context when evaluating market structure.
🔷 UPCOMING FEATURES
Future updates may include:
• EMA 50/200 Trend Filter
• Swing Reversal Buy/Sell Signals
• Automatic Entry Price
• Stop Loss Calculation
• TP1, TP2, TP3 Auto Targets
• Risk/Reward Visualization
• Dashboard
• Advanced Alert System
🔷 DISCLAIMER
This indicator is provided as a technical analysis tool for educational and informational purposes only. It highlights confirmed swing structures based on historical price action and does not predict future market movements or guarantee trading results. Always perform your own analysis, apply proper risk management, and consider additional market factors before making trading decisions.
Jos-ProTrader
📈 Follow for more PulseWire indicators, Forex, Gold, and Crypto market analysis, educational content, and future script updates.
Trade smart. Protect your capital. Indicator

SMC Volume Boost Matrix v6◆ Overview
SMC Volume Boost Matrix v6 is an advanced PulseWire indicator that combines Smart Money Concepts with volume analysis to help traders identify high-probability trading opportunities. By analyzing market structure together with volume momentum, the indicator highlights areas where institutional participation may be increasing, giving traders additional context for trend continuation and potential reversals.
The indicator is designed to simplify market analysis while providing clear visual information for decision-making across multiple financial markets.
◆ Features
• Smart Money Concepts (SMC) based market structure analysis
• Volume boost detection for stronger market confirmation
• Automatic Bullish and Bearish trend identification
• Clear BUY and SELL signal visualization
• Dynamic trend confirmation using price and volume
• High-volume breakout detection
• Early momentum shift recognition
• Professional on-chart visualization
• Real-time signal generation
• Customizable settings for different trading styles
• Suitable for Forex, Crypto, Stocks, Indices, and Commodities
• Compatible with scalping, intraday, and swing trading
◆ How It Works
SMC Volume Boost Matrix v6 monitors both price structure and trading volume simultaneously.
When market structure aligns with increasing volume, the indicator identifies stronger directional momentum. A bullish market structure supported by rising volume may indicate increasing buying pressure, while a bearish structure with strong volume may indicate increasing selling pressure.
Instead of relying on volume or price alone, the indicator combines multiple market factors to provide more informed trading signals.
◆ How To Use
Add SMC Volume Boost Matrix v6 to your PulseWire chart.
Choose the timeframe that matches your trading strategy.
Wait for a confirmed BUY or SELL signal after market structure and volume conditions align.
Use the indicator together with key support and resistance levels, liquidity zones, or your existing trading plan for additional confirmation.
Apply proper risk management before entering any trade, including defining your stop-loss and profit targets. Indicator

Indicator

TJR Smart Money Model [JOAT]TJR Smart Money Model
An original, non-repainting build of the smart-money day-trading sequence: sweep liquidity, wait for a market-structure shift, confirm with SMT, then enter the retrace — timed to killzones.
What it is
Most "smart money" tools just spray BOS and CHoCH labels wherever price crosses a line. This one follows the actual process the method teaches, as an ordered sequence, and only signals when each step has happened in the right order. It is written from scratch; it implements widely-taught price-action concepts (liquidity, structure, displacement, SMT, killzones) rather than reusing anyone's code.
The sequence it trades
• Liquidity sweep — price raids an obvious swing high or low (where stops rest) and closes back inside. The failed raid, not the level itself, is the trigger. Sweeps are tagged, and the swept buy-side and sell-side liquidity are drawn and labelled.
• Market structure shift (MSS) — after the sweep, a displacement candle (a body larger than an ATR multiple) must break the short-term structure in the opposite direction. Structure is tracked one break per level: each swing can only produce one BOS or CHoCH, so the labels land exactly where the shift occurs instead of being repeated on every bar. This is the direct fix for the "random label" problem common to naive structure scripts.
• SMT divergence — an optional confluence filter. Set a correlated instrument and the tool checks whether that instrument confirms the sweep's new extreme. If your symbol makes a new low but the correlated one does not (or the mirror for highs), that break in correlation is flagged as SMT and can be required for entries. It is read with lookahead disabled, so it never borrows future data.
• Entry — once the MSS confirms, the tool marks the discount/premium zone: the fair-value gap left by the displacement, or the 50% equilibrium of the reversal leg. A signal fires when price retraces into that zone and reacts, inside a user-selected killzone (London and New York AM by default). The stop rests beyond the swept liquidity — the level that invalidates the idea — and targets ladder out in R multiples inside red-risk and green-reward boxes with labelled entry, stop and take-profit prices.
The dashboard
An adjustable "process card" shows exactly which stage the market is in right now — hunting a sweep, swept and awaiting an MSS, or shifted and awaiting the entry retrace — plus the bias, the SMT state, the active killzone, a conviction reading, the current signal, and a live first-target-before-stop tally computed on closed bars only.
How to use it
• Works on any asset and timeframe; it was designed for intraday index, forex and futures trading but the logic is scale-independent.
• For SMT, pair correlated instruments (for example two related indices, or two correlated currency pairs). Leave the correlated symbol blank to trade the model without the SMT filter.
• Set the killzones and timezone to the session you actually trade, or disable the killzone filter to see signals around the clock.
• Read the dashboard stage before acting: the model is a sequence, and the highest-quality entries are the ones where sweep, shift, SMT and killzone all agree.
Settings
Pivot strength, displacement size, sweep-to-MSS and MSS-to-entry windows, fair-value-gap and order-block controls, equilibrium band thickness, SMT symbol and toggle, killzone windows/timezone, candle paint, risk padding and target R multiples, plus dashboard controls.
Originality and usefulness
The value is the ordered, gated state machine: a sweep must precede a displacement-qualified structure shift, which arms an equilibrium/FVG entry, optionally cross-checked against a correlated instrument and a session window. The once-per-level structure logic and the confirmed-bar evaluation make the labels and signals precise and non-repainting — which is what separates this from a pile of overlaid smart-money drawings.
Notes and limitations
• The model is selective by design; on quiet days or ranges it may produce few or no setups. That is intended.
• SMT is only meaningful with a genuinely correlated symbol; a poor pairing produces misleading divergence.
• Displacement and sweeps are defined algorithmically and may differ slightly from a discretionary trader's manual reading.
• The win tally reflects only past bars on the current chart and is not a prediction of future results.
• Educational and analytical tool, not financial advice. Manage your own risk.
— made with passion by officialjackofalltrades
Indicator

Smart Trend Dashboard ProSmart Trend Dashboard Pro is an all-in-one trend confirmation indicator designed to help traders identify high-probability trading opportunities with a clean and simple dashboard. It combines EMA crossover signals, an RSI filter, and multi-timeframe trend confirmation in one place, allowing traders to make faster and more confident decisions.
How It Works
The indicator generates BUY and SELL signals using EMA crossovers while filtering weak setups with RSI. It also checks the trend on two higher timeframes and displays everything in a dashboard so you can instantly see whether the market is bullish, bearish, or neutral before entering a trade.
Key Features
• Smart BUY and SELL signals
• Multi-Timeframe Trend Confirmation
• EMA Trend Detection
• RSI Momentum Filter
• Live Dashboard
• Trend Colored Candles
• Built-in Trading Alerts
• Fully Customizable Settings
Markets Supported
This indicator can be used on almost every liquid financial market, including:
• Forex
• Gold (XAUUSD)
• Silver (XAGUSD)
• Cryptocurrency
• Stocks
• Indices
• Commodities
Since it is based on price action and trend analysis, it works across different asset classes.
How to Use
Add Smart Trend Dashboard Pro to your PulseWire chart.
Wait for the dashboard to confirm the market trend.
Only take BUY trades when the higher timeframe trend is bullish.
Only take SELL trades when the higher timeframe trend is bearish.
Use the RSI filter to avoid weak or overextended entries.
Always combine the signals with proper risk management and your own market analysis.
Best Timeframes
• Scalping: 1M–5M
• Intraday: 15M–1H
• Swing Trading: 4H–1D
Smart Trend Dashboard Pro is designed to simplify market analysis by combining trend, momentum, and multi-timeframe confirmation into one easy-to-read dashboard, helping traders reduce false signals and improve trade selection. Indicator

FVG + Order Block Toolkit [ForexCracked]🔷 OVERVIEW
Two of the most-watched smart money footprints on one clean chart. This toolkit auto-draws Fair Value Gaps and Order Blocks as zones, keeps only the ones that still matter, and shows a live count in a compact dashboard. Fair value gaps are drawn as soft fills and order blocks as bordered blocks, so you can tell the two apart at a glance. It is free and open-source.
🔷 HOW IT DETECTS THE ZONES
Fair Value Gaps: a three-candle imbalance. A bullish FVG is marked when the low of the current candle sits above the high of the candle two bars back, leaving an untraded gap. A bearish FVG is the mirror. Gaps smaller than your Min FVG size (measured in ATR) are filtered out so the chart stays clean.
Order Blocks: displacement based. When a candle closes with a body larger than your Displacement setting (in ATR), the toolkit marks the last opposing candle before that move as the order block. A strong bullish move leaves a bullish order block on the last down candle, and the reverse for bearish.
🔷 ZONE MANAGEMENT
Every zone extends to the right until price closes through it (mitigated) or it passes the Max zone age. That means the boxes on your chart are the ones that are still unmitigated, not old clutter.
🔷 THE DASHBOARD
A compact, positionable panel shows the live count of unmitigated bullish and bearish Fair Value Gaps and Order Blocks, plus a total. Drop it in any corner.
🔷 HOW TO USE
Treat the zones as areas of interest, not automatic trades. Watch for price to return to an unmitigated order block or fair value gap in the direction of your higher-timeframe bias, then confirm with your own analysis and use a stop. Higher timeframes produce fewer and stronger zones.
🔷 SETTINGS
Fair Value Gaps: show on/off, Min FVG size (x ATR), colours. Order Blocks: show on/off, Displacement (x ATR), OB lookback, colours. General: Max zone age, Extend right, Info panel + position.
🔷 ALERTS
New Fair Value Gap, and New Order Block.
Free and open-source. Educational tool, not financial advice. Indicator

Quant SMC Pro [JOAT]QUANT SMC PRO
A complete Smart Money Concepts engine rebuilt from first principles — pivots, structure, order blocks, fair value gaps, liquidity, premium/discount, HTF context, and a 0–100 confluence score per zone — wired together so every element actually talks to every other element. This is the SMC toolkit you build when you have read enough versions of "BOS / CHoCH / OB" to know that the difference between a coin-flip and a real signal is the quality of the underlying pivots, the filter on the order-block detection, and the scoring of how much confluence each zone actually carries.
Pivot engine — adaptive, not arbitrary
A clean structure read is impossible if the pivots themselves are noisy. Quant SMC Pro ships two pivot engines and lets you pick:
Adaptive ZigZag (default) — a pivot is confirmed only after price retraces by an ATR-multiple from the candidate extreme. The threshold is volatility-aware, so the engine produces clean swing structure across very different instruments without retuning.
Fixed Window — the classic N-bar look-left, N-bar look-right confirmation. Use it on instruments where you want strict symmetry rather than ATR-relative confirmation.
A separate, lighter minor-pivot window drives the minor structure layer so you can see internal liquidity grabs without polluting the major read.
Market structure
Both major and minor structure are tracked. BOS (break of structure) and CHoCH (change of character) are labelled in the palette colour at the breaking bar. MSS (market structure shift) is only printed when the requireDisp gate is satisfied: the breaking candle must be a real impulse — strong body, range above an ATR multiple. This single filter eliminates the bulk of the "CHoCH on a doji" false positives that plague off-the-shelf SMC scripts.
// Displacement requirement for MSS confirmation (illustrative)
float bodyAbs = math.abs(close - open)
float rangeBar = high - low
bool isImpulse = bodyAbs >= rangeBar * 0.6 and rangeBar >= ta.atr(14) * dispMult
bool isMSS = isCHoCH and isImpulse
Order Blocks — two detection methods
OBs are detected at the structural origin of the move that broke structure, not blindly at the last opposite candle. Two methods are exposed:
Structural Extreme (default, stricter) — scans backward inside the walk-back window and selects the most-extreme qualifying opposite-color candle. This is the cleaner output and the one you want on a working chart.
Last Opposite Candle — the simpler heuristic. Useful for comparison and for replicating the look of older SMC scripts.
Optional above-average-volume filtering, configurable mitigation rule (wick-touch vs close-through), per-side count cap (1–10), and a structural walk-back window let the OBs stay relevant instead of cluttering up old territory.
Fair Value Gaps — ATR-filtered
FVGs use the standard three-candle imbalance definition, but only register when the gap exceeds a configurable ATR multiple. This is the difference between a clean chart and a wallpaper of 1-tick gaps. Hard caps on count per side, optional extension bars, and an optional "keep mitigated FVGs faded" toggle (off by default to prevent accumulation) round out the controls.
JOAT enhancements (new vs every other SMC script)
Three concepts most public SMC scripts skip — implemented here as proper, gated layers:
Inversion FVGs (iFVG) — when an FVG is mitigated and the polarity flips within a configurable bar window, the gap is re-rendered with a multi-stop gradient so you can see the flipped zone. Off by default because it adds visual density; turn it on when you specifically want to read polarity flips.
Breaker Blocks — an OB that gets mitigated and then holds on the opposite side for a configurable bar count is re-tagged as a Breaker Block in its own palette color. This is one of the strongest re-entry concepts in SMC and almost never implemented correctly in public scripts.
Mitigation Block tag — the first OB created after a BOS is tagged "MB" so you can read which block carries the most structural significance.
Liquidity — equal highs / lows and real sweeps
Equal highs / lows are detected with an ATR-relative tolerance over a configurable scan depth. Liquidity sweeps are detected against actual structural pivots (the minor-pivot output, not a rolling ta.highest ) — so a sweep is registered when a wick punctures a recent pivot extreme and the bar closes back inside, which is what the term actually means in the textbook. A cooldown prevents double-prints of the same sweep.
Premium / Discount array
Two equilibrium methods:
AVWAP Equilibrium (default) — equilibrium is anchored to the most recent major structure event, so the PD array drifts with trend rather than re-anchoring on every minor pivot. This is the institutional read.
Range Midpoint — the classic 50% of the most recent major leg.
A toggleable multi-stop gradient render paints premium and discount as shaded regions instead of just lines. Configurable stop count keeps it tunable.
HTF context
Optional previous-day, previous-week, and previous-month H / L overlays in their own per-timeframe colours. Optional midpoint lines. When enabled, the HTF read also contributes to the confluence score — because no zone is really meaningful without HTF agreement.
Confluence Score (0–100)
Every order block carries an aggregate confluence score derived from:
Zone size relative to ATR
Displacement quality of the move that produced it
Volume on the originating bar relative to the rolling average
Overlap with active FVGs
(Optional) HTF level proximity
A "Hide zones below score" input lets you mute lower-quality blocks. A separate alert threshold fires when a zone above your minimum score is created. The score is also rendered into the confluence heatmap dashboard.
Dashboard (confluence heatmap)
A compact, monospaced table positionable to any of nine corners with a per-row vertical alpha gradient. Reads the current bias, nearest premium / discount zone, count of active OBs, count of active FVGs, and the highest confluence score on the chart. Background transparency is user-controlled so it never visually competes with structure.
How to read it
The intended workflow is structure-first, confluence-second. Wait for a BOS or MSS in the direction you want to trade. Look at the OB or breaker block at the origin of the move — its confluence score is your edge proxy. If the zone has an iFVG or active FVG overlap, the score will reflect it. HTF agreement (previous-day midpoint, previous-week high, etc.) is the final filter. Liquidity sweeps before the structural break are a particularly clean confluence — they indicate the move broke because liquidity was taken first.
Originality / what's reused
The SMC vocabulary (BOS, CHoCH, MSS, OB, FVG, premium/discount) is, of course, public-domain market-structure language. The implementations here — the adaptive ATR-confirmed pivot engine, the structural-extreme OB scan, the iFVG gradient render, the breaker block detection, the mitigation block tagging, the AVWAP-anchored PD array, the confluence-score aggregation, and the heatmap dashboard — are written from scratch and tuned together. No third-party code is reused.
Open source
Published open-source under the default Mozilla Public License 2.0. The source is fully readable: every helper function is documented inline, every input has a tooltip, and the file is sectioned with banner headers so you can navigate it like a textbook chapter. If you want to fork it, please keep the credit and please make it materially better — that is what open-source SMC actually needs.
Limitations
SMC is a structural read, not a signal generator — Quant SMC Pro does not print buy/sell labels. It prints zones and structure; you decide the entry. Equal H/L detection and structural sweeps rely on minor-pivot output, so on very illiquid instruments those layers may be sparse. Confluence scoring is heuristic by definition — it ranks zones by features that historically correlated with significance; it does not predict reactions.
—
-made with passion by jackofalltrades
Indicator

SmartBreak Fibo [TraderHook]SmartBreak Fibo
Stop drawing your setups by hand. SmartBreak watches market structure in real time, and the moment price breaks a structural swing — a BOS (Break of Structure) or CHoCH (Change of Character) — it instantly maps a full Fibonacci trade plan on your chart: entry, stop, and three targets. No manual fib dragging, no guesswork on where to place levels.
How it works
The engine tracks swing highs/lows and detects every structural break (BOS / CHoCH).
On each break, a Fibonacci is anchored from the broken swing (level 1) to the opposing swing (level 0).
Entry is plotted at the 0.618 retracement, Stop-Loss at level 0 (the swing extreme).
Three take-profits sit at fib extensions 2.0 / 2.618 / 3.618 .
A green box shows the profit zone (entry → TP3), a red box shows the risk zone (entry → SL).
Why traders like it
Setups appear the instant structure breaks — you decide whether to take them, the levels are already there.
Long breaks are marked green, short breaks red — direction is readable at a glance.
Fully adjustable: entry level, all three TPs, pivot sensitivity, colors, and how many recent setups stay on screen.
"ChoCh only" mode if you prefer to trade reversals over trend continuations.
Settings
Pivot Period — structure sensitivity (higher = bigger swings only).
Entry / TP1 / TP2 / TP3 — every fib level is yours to tune.
Number of recent setups — keep the chart clean with just the latest, or show history.
Long / Short setups — toggle either side on or off.
Credits
The market-structure engine (ZigZag, swing classification, BOS/CHoCH) is based on the open-source work of TFlab , used under the Mozilla Public License 2.0. The Fibonacci trade-box system is by TraderHook. Published open-source — feel free to study and build on it.
Disclaimer
This is a visualization tool, not financial advice or a signal service. The take-profit levels are mechanical Fibonacci extensions — they do not predict that price will reach any target. Always backtest and manage your own risk before trading. Indicator

Indicator

Indicator

Order Block Detector [SMC ChartSense]# SMC ChartSense — Order Block Detector
**Order block detection with mandatory FVG (Fair Value Gap) confirmation.** Each zone marked must have a 3-bar FVG at the anchor candle — institutional displacement that left a literal gap in price. Most basic OB scripts flag every breakout candle as an order block; this script filters to only the zones that came with displacement footprint, producing a cleaner chart with fewer but more meaningful zones.
## How it works
The script tracks swing pivots at a configurable length and waits for a confirmed break — a candle that closes beyond the prior swing high or low. When a break occurs, it searches back through the recent bars to identify the deepest counter-direction candle (lowest low for a bullish OB, highest high for a bearish OB). This becomes the OB anchor.
The anchor is then validated against the FVG requirement: there must be a 3-bar gap at the anchor index (bar A high below bar C low for bullish, bar A low above bar C high for bearish). No FVG, no OB. This is the central quality filter.
Validated zones extend forward from the anchor and remain active until invalidated — either when price closes through the zone or when the wick touches the far side, depending on user preference.
## Features
- FVG validation gate at the anchor candle (3-bar gap requirement)
- Configurable swing pivot length for structural sensitivity
- User-tunable OB anchor lookback (5–100 bars)
- Wick-based or body-based zone definition
- Configurable mitigation trigger: Close-through or Wick-touch
- Auto-pruning of oldest OBs when active count exceeds limit
- Optional faded display of mitigated zones for historical study
- Built on Pine v6 with clean, maintainable architecture
## Inputs
**Structure Detection**
- *Swing Pivot Length* — Higher values produce fewer, more significant pivots. Lower values produce more frequent pivots of smaller structural significance. Default: 5.
**Quality Filters**
- *OB Anchor Lookback Bars* — How far back from a confirmed pivot break to search for the OB anchor candle. Default 30 covers most timeframes; reduce for scalping, increase for higher TFs.
- *Anchor OB to Wick (vs Body)* — Wick mode uses the full candle range. Body mode uses open/close only (tighter zones).
- *Mitigation Trigger* — Close mode invalidates when a candle closes through the zone. Wick mode invalidates on first wick touch.
**Visualization**
- Bull/Bear OB colors (customizable)
- Max OBs Per Side (caps active display, oldest auto-pruned)
- Show OB Labels (off by default — boxes alone are usually sufficient)
- Show Midline (50% level inside each OB, dotted)
- Keep Mitigated OBs Visible (faded gray boxes remain for historical reference)
## Built-in alerts
- New Bull OB formed
- New Bear OB formed
- Bull OB touched (price entered zone)
- Bear OB touched (price entered zone)
## Suggested use
Best on liquid intraday markets — major forex pairs, crypto perps, index futures, large-cap equities — at timeframes from 5m to 4h. Default settings are tuned for 15m–1h ranges; adjust Swing Pivot Length down to 3 for scalping or up to 8–10 for higher-TF trend trading.
Use this as a context tool. The zones identify where institutional displacement occurred — actual entries should incorporate your own analysis: HTF bias, structural alignment with current market regime, risk-reward planning, and confirmation from other tools.
## Part of the SMC ChartSense suite
One of several focused SMC tools. Designed to work alongside other SMC ChartSense scripts for a coherent analytical workflow across the SMC vocabulary.
## Disclaimer
This is a technical analysis tool. It does not provide investment advice or trade recommendations. The author is not a SEBI-registered Research Analyst. Use at your own risk; do your own due diligence. Indicator

Indicator

[ A L P H A X ] Structure EdgeAlphaX Structure Edge — Swing Structure Detection, BOS, CHoCH, Structure Levels, Premium/Discount Zones, Swing Forecast & Fibonacci Extensions
AlphaX Structure Edge is a professional-grade Smart Money Concepts indicator that maps the complete picture of market structure directly on your chart. It detects confirmed swing pivots, identifies Break of Structure and Change of Character events in real time, draws adaptive structure levels with touch-count strength scoring, visualizes the Premium and Discount range between the last major swing high and low, and projects the next probable swing target using a statistical forecast engine built from your instrument's own historical swing behavior. Every element works together as a single unified system — from the first confirmed pivot to the forecast target and its Fibonacci extensions.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📸 Visual Overview
AlphaX Structure Edge on XAUUSD — swing pivot markers, BOS and CHoCH labels, structure level lines with pill labels, Premium/Discount/EQ band, forecast corridor with step markers, target zone, and Fibonacci extensions
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔬 Swing Pivot Detection
The foundation of Structure Edge is a robust pivot detection engine built on ta.pivothigh and ta.pivotlow — Pine's native confirmed pivot functions. A pivot is only confirmed once the required number of bars on both sides have closed without making a new extreme, meaning every pivot you see on the chart is structurally confirmed and non-repainting.
The Swing Length setting controls how many bars on each side are required to confirm a pivot. Larger values produce fewer but stronger, more institutionally significant pivots. Smaller values are more sensitive and catch minor structure swings.
Every confirmed swing high is marked with a small red triangle above the bar. Every confirmed swing low is marked with a small green triangle below the bar. These markers appear at the actual pivot bar, offset by the confirmation delay, and give you a clean visual map of the market's structural sequence at a glance.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 Break of Structure (BOS) and Change of Character (CHoCH)
Market structure is defined by the sequence of highs and lows price is printing. AlphaX Structure Edge tracks this sequence in real time and identifies two critical structural events:
Break of Structure (BOS)
A BOS occurs when price closes beyond the last confirmed swing level in the direction of the current trend — confirming that the trend is continuing. A bullish BOS means price closed above the last confirmed swing high, extending the bullish structure. A bearish BOS means price closed below the last confirmed swing low, extending the bearish structure.
BOS events are marked with a dashed horizontal line drawn from the broken swing level to the close bar, and a compact BOS label. Bull BOS uses green tones. Bear BOS uses red tones. BOS signals that the prevailing trend remains intact and confirms continuation.
Change of Character (CHoCH)
A CHoCH occurs when price closes beyond the last confirmed swing level in the opposite direction of the current trend — the first sign that market character is changing. If the trend has been bullish and price closes below the last confirmed swing low, the structure is printing a CHoCH. If the trend has been bearish and price closes above the last confirmed swing high, the same event occurs in the bullish direction.
CHoCH events are marked with a solid line and a prominent CHoCH ▲ or CHoCH ▼ label. CHoCH is not a confirmed reversal — it is the earliest available warning that the current trend may be ending and new structure is forming. The distinction between BOS and CHoCH is critical:
A BOS in the direction of the trend → trend continuation. Stay aligned with the bias.
A CHoCH against the trend → character is changing. Be alert for reversal setups forming.
A CHoCH followed by a BOS in the new direction → structural reversal confirmed.
Both events are confirmed on bar close only — no repainting.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Structure Levels with Touch-Count Strength Scoring
Every confirmed swing pivot creates a Structure Level — a horizontal line drawn from the pivot bar forward in time with a right-side pill label showing the exact price and touch count.
Structure levels are not static zones. AlphaX Structure Edge manages every level dynamically bar by bar:
Touch counting: When price enters the level's sensitivity band without closing through it, the touch counter increments. Levels that have been tested two or more times display a ×N badge on their pill label — showing exactly how many times the market has respected that level. When the Highlight Tested Levels option is enabled, multi-touch levels are rendered with a stronger, more opaque line — making the most significant levels immediately visible without reading the labels.
Age fading: Unbroken levels gradually fade in opacity as they age relative to the Max Level Age setting. Fresh levels are more prominent; old untested levels fade toward transparency. This keeps the chart focused on recently relevant structure without manually cleaning up old levels.
Break detection: When price closes beyond a level by more than the sensitivity threshold, the level is considered broken. Its line switches to a dotted style and fades to a low-opacity color — remaining visible as a reference point for prior structure without competing for attention with active levels.
Auto-removal: Broken levels are removed 30 bars after breaking. Unbroken levels older than the Max Level Age setting are removed automatically.
Structure levels with pill labels — multi-touch levels show ×N badge and are rendered with stronger color
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 Premium / Discount / Equilibrium Band
Between the last confirmed swing high and swing low lies the institutional trading range . AlphaX Structure Edge visualizes this range as a unified band divided into three zones:
PREM (Premium) — the upper half of the range. Price is trading above the midpoint, meaning it is relatively expensive compared to the recent range. Smart money institutions are more likely to be distributing (selling) in this zone.
DISC (Discount) — the lower half of the range. Price is below the midpoint and relatively cheap. Smart money institutions are more likely to be accumulating (buying) in this zone.
EQ (Equilibrium) — the exact midpoint of the range, marked with a dotted line. This is the fair value level of the current swing range. Price often finds temporary resistance or support at this level before continuing to one extreme or the other.
The band updates dynamically on every bar using the most recent confirmed swing high and low — it always reflects the current structural context, not a fixed historical range.
How to use the Premium/Discount band:
In a bullish structure (after a BOS up), look for long entries from the Discount zone. Price pulling back into Discount during an uptrend is a Smart Money accumulation opportunity.
In a bearish structure (after a BOS down), look for short entries from the Premium zone. Price rallying into Premium during a downtrend is a distribution opportunity.
EQ acts as a decision point — price reacting from EQ suggests conviction in the current direction. Price grinding through EQ without reaction suggests the move has momentum behind it.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔮 Swing Forecast Engine
AlphaX Structure Edge contains a statistical forecast engine that projects the next probable swing target based on your instrument's own historical swing behavior — not a fixed percentage or ATR multiple.
How the forecast is calculated:
Every time a swing direction change occurs, the engine records the size of the completed swing as a percentage move and its duration in bars. These values accumulate over the last N swings (controlled by the History Samples setting). When the last bar is reached, the engine aggregates these historical swings using your chosen method and projects the next swing from the current pivot:
Weighted — the most recent swings carry more weight than older ones. Best for instruments where recent behavior is more predictive than distant history.
Average — all samples are weighted equally. More stable and resistant to individual outliers.
Median — uses the middle value of all recorded swings, ignoring extremes entirely. Best when your instrument occasionally prints unusually large or small swings that skew the average.
The standard deviation across all recorded swings determines the uncertainty band — how wide the forecast corridor is. A narrow corridor means your instrument moves consistently. A wide corridor means swing sizes vary significantly and the target should be treated with lower confidence.
Forecast visuals:
Forecast Corridor — a semi-transparent box from the current pivot to the projected target area, sized by the uncertainty band. Bull forecasts use green tones. Bear forecasts use red tones.
Center Trajectory — a dashed line from the current pivot price to the projected target, showing the expected path of the move.
Step Markers — three small horizontal tick marks along the trajectory at evenly spaced intervals, creating a visual stepping path feel along the projected route.
Target Zone — a tighter box at the end of the corridor showing the exact projected target level and the projected percentage move. When the target overlaps with an existing structure level, the target box changes color to match the level and displays a ⬡ confluence badge — highlighting a higher-probability target.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📐 Fibonacci Extensions with Structure Confluence Highlighting
Beyond the forecast target, AlphaX Structure Edge draws up to five Fibonacci extension levels projected from the current swing origin. Five levels are available with independently toggleable and configurable ratios:
Level 1 — 1.000 (100% of the projected move, the base target)
Level 2 — 1.272 (127.2%)
Level 3 — 1.618 (161.8%)
Level 4 — 2.000 (200%, disabled by default)
Level 5 — 2.618 (261.8%, disabled by default)
All five levels are fully customizable — you can change the ratio values to any number you prefer, not just the classic Fibonacci sequence.
Structure confluence highlighting: When a Fibonacci level falls within the sensitivity band of an existing active structure level, that fib line is rendered with a thicker width and stronger color, and a ⬡ badge appears on its label. Fib levels that coincide with prior structure are meaningfully stronger targets than those in open price space — the highlighting makes these confluences immediately visible without manual comparison.
Fibonacci extensions beyond the forecast target — ⬡ badges highlighting levels that overlap with active structure levels
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📋 Live Dashboard
The dashboard gives a real-time text summary of every structural condition in a compact panel:
STRUCTURE — current structure trend: ▲ BULLISH, ▼ BEARISH, or — UNDEFINED. Highlighted in the corresponding color when a clear bias is active.
LAST PIVOT — whether the most recently confirmed pivot was a high or low.
BOS — whether a BOS occurred on the current bar and in which direction. Highlighted when active.
CHoCH — whether a CHoCH occurred on the current bar and in which direction. Highlighted when active.
LEVELS — count of active unbroken structure levels currently on the chart.
FORECAST — the projected direction and average percentage move based on current swing history.
CONFLUENCE — shows ⬡ YES — HIGH PROB when the forecast target overlaps with an active structure level. This is one of the most important rows — a forecast target with structure confluence is a significantly higher-probability setup.
SAMPLES — how many swing samples have been loaded versus the configured maximum.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ Key Features
🔬 Robust swing pivot detection using ta.pivothigh / ta.pivotlow — non-repainting, confirmed on bar close
📈 BOS detection — dashed line and label at the broken swing level, directional color coded
⚠ CHoCH detection — solid line and label at the first counter-trend structural break, the earliest reversal warning
📊 Structure levels with touch counting — lines + pill labels, multi-touch levels highlighted with ×N badge and stronger color
🎯 Premium / Discount / EQ band — institutional range visualization updating dynamically from the current swing high and low
🔮 Statistical swing forecast — projects next target from historical swing % data using Weighted, Average, or Median aggregation
📐 Forecast uncertainty corridor — width driven by standard deviation of historical swings, narrower when price moves consistently
⬡ Target confluence detection — forecast target and fib levels highlighted when they overlap with active structure levels
📏 Five configurable Fibonacci extension levels — all ratios adjustable, individually toggleable
📋 Live 8-row dashboard — structure trend, last pivot, BOS, CHoCH, level count, forecast, confluence, sample count
🔔 8 alert conditions — swing high/low confirmed, bull/bear BOS, bull/bear CHoCH, any BOS, any CHoCH
✅ Zero repainting — all signals confirmed on bar close
🎨 Full AlphaX visual theme — yellow-green for bullish, red for bearish, dark background dashboard, consistent throughout
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙ Settings Reference
Detection
Swing Length — bars required on each side to confirm a pivot (default: 16)
Market Structure
Show BOS — toggle BOS lines and labels
Show CHoCH — toggle CHoCH lines and labels
Show Premium / Discount / EQ Band — toggle the institutional range visualization
Structure Levels
Show Structure Levels — toggle all level lines and pill labels
Level Sensitivity (ATR×) — controls the touch detection band and break threshold, scaled to ATR(200)
Max Level Age (bars) — how long an unbroken level remains before automatic removal
Highlight Tested Levels — render multi-touch levels with stronger color and show ×N badge
Swing Forecast
History Samples — number of recent swing legs used for the projection calculation (default: 20)
Calculation — aggregation method: Weighted (recent swings count more), Average (equal weight), Median (ignores outliers)
Projection Width — how many bars to the right the corridor and target are drawn
Show Forecast Corridor — toggle the corridor box and center trajectory
Show Target Zone — toggle the target box and percentage label
Show Fib Extensions — toggle Fibonacci extension lines and labels
Level 1–5 — independently enable/disable each Fib level and set its ratio
Dashboard
Show Dashboard — toggle the dashboard panel
Position — Top Right, Top Left, Bottom Right, Bottom Left
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 How to Trade with AlphaX Structure Edge — Step by Step
Step 1 — Establish the structural bias
Check the STRUCTURE row on the dashboard — is it ▲ BULLISH or ▼ BEARISH?
A confirmed BOS in the bullish direction with a sequence of higher highs and higher lows = bullish structure. Only look for long setups.
A confirmed BOS in the bearish direction with lower highs and lower lows = bearish structure. Only look for short setups.
If a CHoCH just printed, the structure is transitioning. Wait for a BOS in the new direction before committing to the new bias.
Step 2 — Identify your entry zone
In bullish structure, price should be pulling back. Look for the pullback to enter the Discount zone below EQ. This is where smart money accumulates.
In bearish structure, price should be rallying back. Look for the rally to enter the Premium zone above EQ. This is where smart money distributes.
Check whether an active structure level sits inside the Discount or Premium zone — a level that has been tested multiple times (×N badge) inside the Discount during an uptrend is a high-confluence long entry zone.
Step 3 — Confirm the entry with structure signals
Wait for price to reach your identified zone — Discount during uptrends, Premium during downtrends.
Look for a BOS in the trend direction after the pullback. A new BOS confirming the trend is resuming from Discount (bull) or Premium (bear) is your entry trigger.
If you see a CHoCH appear at the zone — price briefly broke the swing level against the trend but then reversed — this is a classic liquidity sweep. If price then resumes in the trend direction with a new BOS, this is a high-probability entry.
Step 4 — Use the forecast target for your take profit
Check the forecast corridor — where is the projected target? This is your primary TP reference.
If the CONFLUENCE row shows ⬡ YES — HIGH PROB, the forecast target coincides with an active structure level. This level is likely to act as resistance (in a bull move) or support (in a bear move). Consider taking full or partial profit at the target zone.
Use the Fibonacci extension levels for secondary targets. The 1.272 and 1.618 levels are particularly significant. Any Fib level with a ⬡ badge overlapping a structure level is a priority target.
Step 5 — Manage with structural signals
If a CHoCH prints against your open trade, the structure is warning you. Tighten your stop or reduce position size.
If a BOS prints in your trade direction during the move, the structure is extending — the forecast target may be exceeded. Consider trailing your stop to the most recent BOS level.
If price reaches the forecast target zone but fails to break through, and a CHoCH appears, the move may be complete. Close the trade.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 Alert Conditions
Swing High Confirmed — new swing high confirmed after full bar-close validation
Swing Low Confirmed — new swing low confirmed after full bar-close validation
Bull BOS — price closed above the last confirmed swing high in a bullish continuation
Bear BOS — price closed below the last confirmed swing low in a bearish continuation
Bull CHoCH — price closed above the last swing high against a bearish structure — potential reversal up
Bear CHoCH — price closed below the last swing low against a bullish structure — potential reversal down
Any BOS — fires on any BOS event regardless of direction
Any CHoCH — fires on any CHoCH event regardless of direction
All alert messages include {{ticker}} and {{interval}} for webhook integration.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
👥 Who This Is For
🥇 Smart Money Concepts traders — built specifically around the SMC framework of BOS, CHoCH, structure levels, Premium/Discount, and institutional swing targets
📉 Forex and Gold traders — works across all liquid instruments where swing structure drives price behavior
📊 Swing traders and intraday traders — the forecast engine adapts to both short and longer timeframe swing behavior automatically
🧠 Systematic traders — BOS and CHoCH provide objective, non-discretionary structural signals with zero repainting
📈 Traders who want one complete structure tool — pivots, BOS, CHoCH, levels, Premium/Discount, forecast, and Fibs in a single indicator
🔔 Alert-driven traders — 8 alert conditions with clean webhook-ready messages for every structural event
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 Notes
All pivot detections and BOS/CHoCH signals are confirmed on bar close — this indicator does not repaint. Signals visible on historical bars will not change or disappear.
The forecast engine requires a minimum of 2 completed swing samples before it begins projecting. The SAMPLES row on the dashboard shows how many have loaded. The more samples loaded, the more statistically stable the forecast becomes.
Increasing the Swing Length reduces the frequency of pivots and structural signals but increases their significance — each event represents a larger, more meaningful market structure event. Decreasing it produces more frequent signals on smaller structural moves.
The Level Sensitivity (ATR×) setting controls both the touch detection radius and the break threshold simultaneously. Increasing it creates a wider zone around each level — more touches are registered and a larger close is needed to break it. Decreasing it is more precise but may register fewer touches on fast-moving instruments.
The forecast target is a statistical projection based on historical average swing behavior — not a guarantee. It represents the most probable outcome given recent history. Always use proper risk management and do not treat the forecast target as a certain price destination.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ 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 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 read price through the lens of structure — where every swing tells a story and every break means something. Indicator

SMC CHOCH BOS Dual Structure + Candle Color v6📊 SMC CHOCH & BOS Dual Structure Indicator — User Guide
This indicator is designed to map market structure using Smart Money Concepts (SMC), combining:
CHOCH (Change of Character)
BOS (Break of Structure)
Swing Structure (macro)
Internal Structure (micro)
Dynamic candle coloring based on structural shifts
It provides a complete framework to understand trend shifts, confirmations, and execution timing.
🧠 CORE CONCEPTS
🔹 CHOCH (Change of Character)
Represents a potential reversal in market direction.
Bullish CHOCH → Market shifts from bearish to bullish
Bearish CHOCH → Market shifts from bullish to bearish
👉 This is the early signal, but not always confirmed.
🔹 BOS (Break of Structure)
Represents trend continuation or confirmation.
Occurs when price breaks previous structure in the direction of the trend
The first BOS after a CHOCH is especially important
👉 This is the confirmation phase.
⚙️ SETTINGS EXPLAINED
🔸 Show Structure
Swing → Displays macro structure (clean, less noise)
Internal → Displays micro structure (faster, more signals)
Both → Combines both for full context
👉 Recommended: Both
🔸 Swing Structure Length
Controls the sensitivity of macro structure.
Higher value → smoother, fewer signals
Lower value → more reactive
👉 Recommended: 8–15
🔸 Internal Structure Length
Controls micro structure detection.
Lower value → faster signals
Higher value → more filtering
👉 Recommended: 2–5
🔸 Confirm Break By Candle Close
ON → Break only confirmed after candle closes (more reliable)
OFF → Break detected instantly (faster, more aggressive)
👉 Recommended: ON
🔸 Candle Color Based On
Defines which structure controls candle coloring:
Swing → slower, trend-based coloring
Internal → faster, execution-based coloring
👉 Recommended:
Swing → for bias
Internal → for entries
🔸 Change Candle Color On
Defines when the trend/color shifts:
CHOCH
Faster reaction
More signals
Higher risk
First BOS After CHOCH
More confirmation
Fewer signals
Higher probability
👉 Recommended: First BOS After CHOCH
🔸 Color Candles
ON → candles follow structural direction
OFF → structure only (lines + labels)
🔸 Colors
Customize:
Swing bullish/bearish
Internal bullish/bearish
Candle colors
🔸 Show BOS/CHOCH Text
Displays text labels directly on structure lines:
No background
Centered on the line
Clean visual style
📈 HOW TO USE (PROFESSIONAL APPROACH)
🔹 1. Define Direction (Swing Structure)
Use Swing CHOCH + BOS to identify overall bias
Only trade in the direction of Swing trend
🔹 2. Execute with Internal Structure
Wait for Internal CHOCH
Then confirm with Internal BOS
👉 This is your entry trigger
🔹 3. Best Setup (High Probability)
✔ Swing trend bullish
✔ Internal CHOCH (pullback ends)
✔ First BOS confirms continuation
👉 That’s your trade
⚠️ COMMON MISTAKES
❌ Trading CHOCH alone
❌ Ignoring higher timeframe structure
❌ Entering after extended moves
❌ Using Internal signals against Swing trend
🔥 SIMPLE RULE SET
CHOCH = potential shift
BOS = confirmation
Swing = direction
Internal = execution
🎯 FINAL THOUGHT
This indicator is not just for signals —
it’s a market structure framework.
If used correctly, it helps you:
Avoid late entries
Trade with structure, not emotion
Align with institutional flow Indicator

[ A L P H A X ] Structure Flow ProAlphaX 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
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 PulseWire'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. Indicator

Phantom Structure Engine [JOAT]Phantom Structure Engine
Overview
Phantom Structure Engine is a comprehensive Smart Money Concepts (SMC) framework built entirely in Pine Script v6 using typed User-Defined Types and methods. It maps institutional price structure across five dimensions simultaneously: swing Break of Structure (BOS), Change of Character (CHoCH), Order Blocks (OB), Fair Value Gaps (FVG), Equal Highs/Lows (EQH/EQL), Liquidity Sweeps, and dynamic Premium/Discount/Equilibrium zones — all rendered with an institutional-grade dark visual palette and managed via object arrays.
Why a Unified SMC Framework?
SMC concepts are deeply interconnected. A BOS creates the context for a valid Order Block. A CHoCH signals a structural regime shift that invalidates existing OBs. A liquidity sweep above an EQH often precedes a reversal into a Discount zone. Displaying these concepts in isolation (as separate indicators) breaks the logical chain between them. Phantom Structure Engine fuses all layers into a single coherent visual, so each element is always read in its correct structural context.
Core Engine — Swing Structure
Two separate pivot engines run concurrently:
- Swing pivots (configurable left/right bars, default 10/10): define the major structure highs and lows used for BOS and CHoCH detection
- Internal pivots (default 3/3): track minor structure shifts for shorter-term intrabar analysis
BOS Detection with Confirmation Counter
Rather than firing on the first close beyond a swing level, the engine counts consecutive closes above the last swing high (or below the last swing low). A BOS only registers when the close count reaches or exceeds the configurable confirmation threshold (default 1, max 5). This suppresses false breaks caused by wicks and momentary spikes while remaining responsive.
- BOS (Break of Structure): Close beyond swing level, structure direction confirmed. Displayed as a horizontal line from the pivot bar to the break bar, with a BOS label.
- CHoCH (Change of Character): BOS that occurs against the prevailing structural direction (e.g., a bullish break when the prior confirmed direction was bearish). Displayed in gold with a dashed line and CHoCH label.
Order Block Detection
When a BOS or CHoCH fires, the engine scans backward (configurable lookback, default 10 bars) for the last opposing candle — a bearish candle before a bullish BOS, or a bullish candle before a bearish BOS. This candle becomes the Order Block zone.
Each OB is drawn with a two-layer box: a wide semi-transparent outer box and a tighter inner highlight. The OB extends forward on every bar and automatically invalidates (turns grey) when price closes through the opposite boundary — the exact behaviour seen when an OB has been mitigated by institutional flow.
Fair Value Gap Detection
A bullish FVG is identified when bar .low > bar .high (a gap in price between the current bar's low and two bars ago's high), indicating that price moved so fast upward that no trading occurred in that range. Bearish FVG is the mirror. FVGs are drawn as dotted-border boxes that extend forward and auto-fill (turn grey) when price returns to close the gap.
Equal Highs / Equal Lows (EQH / EQL)
At each new swing pivot, the engine compares the current pivot value against the previous pivot of the same type. If the absolute percentage difference is less than 0.15%, they are classified as equal and an EQH or EQL label is stamped at the midpoint. These levels represent liquidity pools resting above or below price — targets for institutional sweeps.
Liquidity Sweeps
A sweep is detected when price wicks beyond the last confirmed swing high or low but closes back on the opposite side. This is the classic liquidity grab: price hunts stops above a high (or below a low), then reverses. Sweep labels fire at the wick extreme in gold — one of the highest-probability reversal signals in institutional analysis.
Premium / Discount / Equilibrium Zones
After each confirmed BOS, the engine identifies the full range between the last confirmed swing high and swing low. This range is divided into three zones:
- Premium (top 38.2%): Statistically expensive — short bias in a bearish structure
- Equilibrium (38.2%–61.8%): Fair value — reduce exposure
- Discount (bottom 38.2%): Statistically cheap — long bias in a bullish structure
Previous zones are deleted and redrawn on each new BOS, keeping the chart clean.
Periodic Levels (PDH / PDL / PWH / PWL)
Previous Day High/Low and Previous Week High/Low are fetched via request.security() with lookahead disabled (barmerge.lookahead_off), preventing any future-bar contamination. These levels render as step-line plots and represent the primary reference levels used by institutional order desks at open.
Institutional Funding Candles
Bars where the true range exceeds 1.5× ATR(14) AND volume exceeds 2× the 20-bar volume SMA are highlighted as funding candles. These represent institutional participation bars and are coloured based on the current structural direction: teal (bullish structure), red (bearish structure), gold (neutral).
Dashboard (Top Right)
A compact 2-column, 8-row table displays: current structural direction, active OB count, open FVG count, last confirmed swing high/low values, and current sweep status for both sides.
Inputs Reference
Structure Settings
- Swing Pivot Left/Right Bars (10/10) — major swing sensitivity
- Internal Pivot Left/Right (3/3) — minor structure sensitivity
- BOS Confirmation Closes (1–5) — consecutive closes needed to confirm BOS
- Show BOS Labels / CHoCH Labels / HH-HL-LH-LL labels
Order Blocks
- Show Order Blocks
- OB Lookback Candles (10) — how far back to scan for the OB candle
- Max Active OBs (6) — older OBs are deleted when limit is reached
Fair Value Gaps
- Show Fair Value Gaps
- Max Active FVGs (5)
Premium / Discount
- Show PD Zones / EQH-EQL / Liquidity Sweeps
Periodic Levels
- Show Prev Day H/L / Prev Week H/L
Visual
- Theme: Dark, Light, Auto
- Show Funding Candles
How to Use
1. Apply on any liquid instrument. Allow the warmup period (driven by pivot lookback) before trusting the signals.
2. Read structure direction from the dashboard. BOS labels in teal confirm a bullish shift; CHoCH in gold signals a potential trend reversal.
3. Look for price to pull back into a valid (not invalidated) OB or into the Discount zone before considering long entries. Reverse for shorts.
4. FVG zones often act as magnets — price tends to revisit them before continuing in the BOS direction.
5. Treat Liquidity Sweep labels as potential reversal alerts, particularly when they align with OBs or Discount/Premium zones.
Non-Repainting Design
All BOS, CHoCH, sweep, and FVG signals are gated by barstate.isconfirmed. Periodic levels use close with lookahead_off. No pivot value is read until the required right-bar confirmation period has elapsed. Historical labels never shift position.
Limitations
- SMC is a discretionary framework. This indicator automates detection but cannot replace contextual judgment on higher-timeframe bias.
- In extremely fast-moving markets, FVGs may form and fill within the same session, reducing their relevance as future targets.
- EQH/EQL detection uses a 0.15% price equality threshold — this may need adjustment for very low-priced or highly volatile instruments.
- OBs are detected from the most recent opposing candle before a BOS. On some instruments, the true institutional OB may be further back.
Disclaimer
This indicator is provided for educational and informational purposes only. SMC concepts describe price behaviour patterns and do not guarantee any future market outcome. Always conduct your own analysis and use proper risk management.
Made with passion by officialjackofalltrades
Indicator

Confluence Matrix [JOAT]Confluence Matrix
Introduction
Every component in a professional trading system should serve a purpose, and ideally, no single component should bear the entire weight of decision-making alone. The best entries occur when multiple independent analytical methods all point in the same direction simultaneously — a confluence event that dramatically raises the probability that the observed setup reflects genuine market structure rather than random noise. The Confluence Matrix is built around this philosophy, integrating six distinct analytical modules into a single, cohesive overlay indicator with a unified seven-point scoring framework that gates every trade entry.
The six integrated modules are: HEMA regime analysis (three-layer Hull-EMA Hybrid with two-bar confirmation), Break of Structure and Change of Character market structure (swing pivot-based BOS and CHoCH detection), a triple-smoothed Fibonacci channel (0.618, 1.618, and 2.618 bands around a triple-EMA basis), an ATR compression detection engine (volatility squeeze state), Z-score cumulative impulse detection (statistically significant momentum streaks), and an OLS linear regression combined with cumulative delta proxy and volume RSI. Each module contributes one integer point to a directional score. Entries require a minimum score threshold — meaning price must be supported by a configurable number of simultaneously aligned modules before a position is opened.
Beyond signal generation, the indicator includes a simulated position tracking system that monitors open virtual positions with defined entry prices, take-profit levels, stop-loss levels, and a trailing stop mechanism. This system does not execute real trades — it visualizes what a rule-based system following the indicator's own signals would have done, providing an educational and contextual layer that helps users understand how the signals sequence in live trading conditions. All trade signals are confirmed-bar only, with no look-ahead repainting. The fifteen-row dashboard, ten alert conditions, and extensive visual customization options make this the most comprehensive single-overlay indicator in the JOAT suite.
Core Concepts
1. HEMA Three-Layer Regime with Two-Bar Confirmation
The HEMA (Hull-EMA Hybrid) forms the structural backbone of the regime assessment. Three independent HEMA instances at periods 20, 50, and 100 represent the fast, mid, and slow trend layers. Full bull regime requires ascending order of all three (fast above mid above slow). Full bear regime requires descending order. The two-bar confirmation state machine requires two consecutive bars of raw alignment before the confirmed regime variable updates — preventing rapid back-and-forth flipping on borderline crossovers.
f_hema(src, len) =>
ta.ema(2 * ta.ema(src, len / 2) - ta.ema(src, len), math.round(math.sqrt(len)))
hema1 = f_hema(close, 20)
hema2 = f_hema(close, 50)
hema3 = f_hema(close, 100)
rawBull = hema1 > hema2 and hema2 > hema3
rawBear = hema1 < hema2 and hema2 < hema3
confBull = rawBull and rawBull
confBear = rawBear and rawBear
The CHoCH (Change of Character) logic builds directly from this: a bullish BOS that occurs while confBear is true represents structural bullish momentum emerging from within a confirmed bear regime — the first evidence of potential regime reversal.
2. BOS and CHoCH with Visual Lines
Break of Structure detection uses ta.pivothigh and ta.pivotlow to track prior swing levels. BOS events draw labeled lines on the chart: teal/red for standard BOS continuation, violet-dashed for CHoCH. All line drawing uses line.new() with fixed coordinates on confirmed bars, and extends the right endpoint to the next BOS event for visual continuity across the chart.
chochUp = bosUp and confBear
chochDn = bosDn and confBull
lineStyle = (chochUp or chochDn) ? line.style_dashed : line.style_solid
lineColor = chochUp ? color.purple : bosUp ? color.teal : chochDn ? color.purple : color.red
3. Triple-Smoothed Fibonacci Channel
The Fibonacci channel applies the same triple-EMA smoothing used in the FVC indicator to produce a noise-resistant basis line, then projects Fibonacci-ratio bands (0.618, 1.618, 2.618) both above and below using ATR or standard deviation as the volatility measure. Within the Confluence Matrix, the channel serves a dual purpose: its own slope defines the "fib trend" score contribution, and its band levels serve as reference zones for proximity analysis.
basis = ta.ema(ta.ema(ta.ema(hlc3, basisLen), basisLen), basisLen)
fibTrend = basis > basis ? 1 : basis < basis ? -1 : 0
The 0.618 and 1.618 inner bands are filled with a gradient between basis and inner band, with the fill opacity tied to the confirmed regime — teal fills in bull regime, red fills in bear regime, gray in neutral.
4. ATR Squeeze Detection
The ATR squeeze module uses the same compression ratio logic as the VSO indicator: comparing a short-term EMA-smoothed ATR against a longer baseline to determine whether volatility is contracting or expanding. When volatility is contracting (squeezing), the squeeze score contribution is zero — the market is not yet expressing directional energy. When volatility is expanding, the module contributes to the appropriate directional score.
atrShort = ta.ema(ta.tr(true), sqzLen)
atrLong = ta.ema(atrShort, sqzLen * 2)
squeezing = atrLong > atrShort
sqzOK = not squeezing
5. Z-Score Cumulative Impulse
The Z-score impulse module tracks separate cumulative bull and bear momentum streaks, normalizes them against rolling sma/stdev, and marks statistically significant events with diamond markers (◆) plotted above and below the price bars. These markers are displayed at confirmed bars only. The Z-score values for both directions are shown in the dashboard and contribute one point each to the long and short scores when their respective thresholds are exceeded.
cumBull := close > close ? nz(cumBull ) + (close - close ) : 0
cumBear := close < close ? nz(cumBear ) + (close - close) : 0
zBull = (cumBull - ta.sma(cumBull, zLen)) / ta.stdev(cumBull, zLen)
zBear = (cumBear - ta.sma(cumBear, zLen)) / ta.stdev(cumBear, zLen)
6. OLS Regression, Delta Proxy, and Volume RSI
The sixth analytical layer combines three sub-components. The OLS linear regression (using the same manual implementation as the ARO indicator) provides the Pearson R correlation quality metric and theta angle, which together determine whether the regression score contributes. The cumulative delta proxy (bar-range-based buying/selling pressure estimate) determines the delta directional score. Volume RSI (RSI applied to volume series) provides the volume quality gate. All three sub-components are evaluated in the context of long or short scoring.
regressionScore = pearsonR > minR and math.abs(theta) > minTheta ? (theta > 0 ? 1 : -1) : 0
deltaScore = deltaPos ? 1 : -1
volumeScore = highVol ? (localBull ? 1 : -1) : 0
7. Seven-Point Confluence Scoring
Each of the six modules contributes one integer point to either the long score or the short score (some modules contribute to both). The seven scoring variables (ls1 through ls7 for long, ss1 through ss7 for short) are summed individually so each module's contribution is transparent and auditable. The minimum score threshold (default: 5 of 7) gates entry conditions.
ls1 = confBull ? 1 : 0 // HEMA regime
ls2 = lastBOSDir == 1 ? 1 : 0 // Last BOS direction
ls3 = fibTrend == 1 ? 1 : 0 // Fibonacci channel trend
ls4 = sqzOK ? 1 : 0 // Squeeze OK (not compressing)
ls5 = regressionScore == 1 ? 1 : 0 // Regression + Pearson
ls6 = deltaPos ? 1 : 0 // Delta proxy bullish
ls7 = highVol and localBull ? 1 : 0 // Volume RSI + local trend
longScore = ls1 + ls2 + ls3 + ls4 + ls5 + ls6 + ls7
8. Simulated Position Tracking with Trailing Stop
The position tracker uses persistent var variables to track open trade state. Entry occurs when a BOS trigger or HEMA crossover fires, the score meets the minimum threshold, the bar is confirmed, and no position is currently open in that direction. Stop-loss is set at ATR below the entry for longs (above for shorts). Take-profit is set at a multiple of ATR from entry. The trailing stop mechanism moves the SL to breakeven once the position has moved one ATR in the favorable direction — locking in capital protection once momentum is confirmed.
var int posDir = 0
var float openTP = na
var float openSL = na
var float entryPx = na
longEntry = (bosUp or hemaXover) and longScore >= minScore and barstate.isconfirmed and posDir <= 0
if longEntry
posDir := 1
entryPx := close
openTP := close + atr14 * tpMult
openSL := close - atr14 * slMult
// Trailing stop to breakeven
if posDir == 1 and high - entryPx > atr14
openSL := math.max(openSL, entryPx)
Exits occur on TP hit, SL hit, or confirmed regime flip opposing the position direction (confBear while long, confBull while short).
9. Proximity-Gradient Bar Coloring
Bar colors are driven by the distance between the current close and the HEMA mid layer (hema2), normalized by the range between the fast and slow HEMA layers. This produces a bar coloring scheme that reflects not just direction but the degree of extension relative to the HEMA structure's own internal spread — a more dynamically calibrated proximity measure than a fixed ATR reference.
hemaRange = math.abs(hema1 - hema3)
hemaDist = hemaRange > 0 ? math.abs(close - hema2) / hemaRange : 0
hemaProxAlpha = math.min(math.round(hemaDist * 60), 75)
Features
Six Integrated Modules: HEMA regime, BOS+CHoCH structure, Fibonacci channel, ATR squeeze, Z-score impulse, and OLS regression+delta+volume all active simultaneously.
Seven-Point Scoring System: Each module contributes one point to a transparent, auditable confluence score with configurable minimum threshold for entry.
Two-Bar HEMA Confirmation: Prevents false regime transitions on single-bar HEMA crossovers.
CHoCH Detection: BOS events opposing the confirmed regime are classified as Change of Character and drawn with violet dashed lines.
Z-Score Diamond Markers: Statistically significant momentum streak markers displayed as ◆ above and below bars on confirmed events.
Triple-Smoothed Fibonacci Channel: 0.618, 1.618, and 2.618 bands with regime-conditional gradient fills.
Simulated Position Tracking: Virtual positions with TP, SL, and trailing stop to breakeven — visualizing the signal system in action.
Proximity-Gradient Bar Coloring: HEMA-internal-range-normalized distance drives bar color alpha for structure-relative visual encoding.
BOS Lines: Teal/red for continuation BOS, violet dashed for CHoCH — drawn at confirmed bars with horizontal extensions.
Fifteen-Row Dashboard: Position direction, regime, last BOS, CHoCH state, fib trend, volatility, Pearson R, theta, bull Z, bear Z, volume RSI, delta proxy, long score, short score, and minimum score threshold.
Ten Alert Conditions: Long entry, short entry, long exit, short exit, CHoCH up, CHoCH down, bull impulse, bear impulse, BOS up, BOS down — all as constant string alerts.
Input Parameters
HEMA Settings:
Fast/Mid/Slow Lengths: HEMA layer periods (defaults: 20, 50, 100)
Structure Settings:
Swing Length: Pivot lookback for BOS/CHoCH detection (default: 10)
Fibonacci Channel Settings:
Basis Length: Triple-EMA period (default: 20)
Volatility Type: ATR or StDev (default: ATR)
Volatility Length: Period for volatility measure (default: 14)
Z-Score Settings:
Z Lookback: Rolling window for normalization (default: 50)
Z Threshold: Sigma level for impulse trigger (default: 2.0)
Regression Settings:
Regression Length: Bar count for OLS calculation (default: 50)
Min Pearson R: Minimum |R| for regression score contribution (default: 0.6)
Min Theta: Minimum angle for regression score contribution (default: 5)
Entry/Exit Settings:
Minimum Score: Points required for entry (default: 5)
TP Multiplier: ATR multiple for take-profit level (default: 2.0)
SL Multiplier: ATR multiple for stop-loss level (default: 1.0)
Display Settings:
Show HEMA Layers: Toggle individual HEMA line visibility (default: true)
Show Trend Cloud: Toggle HEMA gradient fill (default: true)
Show Fibonacci Channel: Toggle Fibonacci band fills (default: true)
Show BOS Lines: Toggle structural break lines (default: true)
Show Z Markers: Toggle diamond impulse markers (default: true)
Show Position Lines: Toggle TP/SL/entry lines (default: true)
Show Bar Colors: Toggle proximity gradient bar coloring (default: true)
Show Dashboard: Toggle the fifteen-row table (default: true)
How to Use This Indicator
Step 1: Read the Score Before Acting on Any Signal
The most important discipline when using the Confluence Matrix is to check the long score or short score before taking any action on a signal. A BOS up event alone carries one point; it does not guarantee a high-probability setup. A BOS up event accompanied by a score of 6 or 7 — meaning five or six other modules are simultaneously aligned — is a materially different situation. Begin each analysis session by reading the dashboard scores and understanding which modules are contributing and which are not.
Step 2: Use the CHoCH for Regime Change Awareness
CHoCH events are the most important structural signals in the indicator. A CHoCH up (bullish BOS during a confirmed bear regime) does not mean immediately go long — it means the structural assumption of the prior bear regime is being challenged. Wait for the regime confirmation to update, watch for the long score to rise as modules align with the new potential bull regime, and then consider entry on the next confirmed BOS in the bull direction backed by a high score. The sequence matters: CHoCH first, then regime confirmation, then high-score entry.
Step 3: Let the Simulated Position Tracker Teach Pattern Recognition
The position tracker lines (entry, TP, SL) on the chart are an educational tool. Over time, reviewing where simulated positions were opened and closed relative to the subsequent price action reveals patterns about which score thresholds, which module combinations, and which entry triggers produce the cleanest outcomes on the specific instrument you are analyzing. Use this visual feedback to calibrate your own minimum score setting and module weighting preferences.
Step 4: Manage Visual Complexity Through Selective Display
Six integrated modules produce a significant amount of simultaneous chart information. New users should start with all display elements enabled to understand the full system, then progressively toggle off elements they are not actively using for a given analysis. The dashboard always reflects the underlying calculations regardless of display settings — so even with Fibonacci fills and BOS lines hidden, the score, regime, and all module states remain visible in the dashboard.
Indicator Limitations
The simulated position tracking system is a visual and educational tool only. It does not place real orders, cannot account for slippage, spread, or commission costs, and its results should never be used as a basis for financial decisions. Simulated performance and real-world trading performance are categorically different.
The seven-module scoring system assigns equal weight to all contributing modules. In practice, some modules (e.g., HEMA regime) may carry more structural significance than others (e.g., volume RSI). The equal-weight assumption is a simplification.
Six integrated modules means six sets of parameters to configure. The default settings are calibrated for daily and 4-hour chart analysis on liquid instruments. Heavy optimization of all parameters to historical data risks overfitting — the resulting configuration may perform well on history but fail on new data.
The OLS regression component requires sufficient bars to produce stable Pearson R and theta values. In the first regression-length bars of any chart session, these values will be based on very short windows and should not be treated as reliable quality filters.
All modules operate on the chart's native timeframe. The indicator does not incorporate multi-timeframe analysis internally — users seeking MTF context should reference the MCG indicator in combination.
Proximity bar coloring uses the HEMA internal range (hema1 minus hema3) as the normalizer. When all three HEMA layers are closely clustered (flat, sideways market), this range approaches zero, which can cause division instability in the proximity calculation. A guard for this case is included but the coloring will be less informative during flat HEMA conditions.
The trailing stop to breakeven mechanism fires when the position has moved one ATR in the favorable direction. In very high-volatility conditions with large ATR values, this may mean the SL does not move to breakeven until the position is significantly extended, reducing capital protection in fast-moving markets.
Originality Statement
The Confluence Matrix is the most comprehensive indicator in the JOAT suite and represents an original architectural achievement in the design of multi-module overlay indicators.
The seven-point confluence scoring system — where six independent analytical modules each contribute a single integer vote, and entry is gated by a minimum aggregate threshold — is an original framework for combining heterogeneous technical signals into a unified, transparent decision criterion.
The combination of HEMA regime, BOS/CHoCH structure, Fibonacci channel, ATR squeeze, Z-score impulse, and OLS regression+delta+volume in a single non-repainting overlay indicator with no external indicator dependencies is an original integration not replicated by any single publicly available PulseWire indicator.
The simulated position tracking system with trailing stop to breakeven — driven entirely by the indicator's own scoring and signal conditions, visualized directly on the chart — is an original self-contained feedback mechanism for understanding the system's real-time behavior.
The CHoCH classification (BOS event opposing the confirmed two-bar regime, not merely the raw regime) adds a confirmation layer to the standard CHoCH definition that reduces false change-of-character signals during borderline regime periods.
The proximity bar coloring normalized by the internal HEMA range (hema1 minus hema3) rather than by a fixed ATR reference creates a structure-relative alpha calculation that adapts to the current degree of HEMA layer separation — a more contextually aware coloring approach than fixed-reference alternatives.
The use of ten constant-string alert conditions (not dynamic or computed strings) ensures full compatibility with PulseWire's alert system, including webhook delivery and multi-condition alert construction.
Disclaimer
The Confluence Matrix is provided for educational and informational purposes only. It is a technical analysis tool and does not constitute financial advice. The simulated position tracking feature is for educational visualization only and does not represent actual trade results. No scoring system or multi-indicator confluence framework can guarantee profitable trading outcomes. All trading involves risk, including the potential loss of principal. Users are solely responsible for their own trading decisions. Please consider your individual risk tolerance and consult a licensed financial professional before engaging in any trading activity.
-Made with passion by officialjackofalltrades
Indicator

Nexus Structure Detector [JOAT]Nexus Structure Detector
Introduction
The Nexus Structure Detector is an advanced open-source Smart Money Concepts (SMC) indicator that identifies institutional order flow through Order Blocks, Fair Value Gaps, Liquidity Levels, and Market Structure analysis. This indicator combines multiple SMC methodologies into a unified system that reveals where institutions are positioning their orders and how they manipulate price to fill those orders.
Unlike basic support/resistance indicators, the Nexus Structure Detector provides institutional-grade structure analysis through order block detection, FVG identification, liquidity sweep tracking, and premium/discount zone mapping. The indicator is designed for traders who understand that institutions move markets through systematic order placement and liquidity manipulation.
Why This Indicator Exists
This indicator addresses the need for systematic SMC analysis on PulseWire. By combining order blocks, fair value gaps, liquidity levels, and market structure into one tool, it reveals:
Order Blocks: The last candle before a strong move where institutions placed orders
Fair Value Gaps: Imbalances in price where institutions will likely return to fill orders
Liquidity Levels: Pivot highs/lows where retail stops cluster and institutions hunt liquidity
Market Structure: Break of Structure (BOS) and Change of Character (CHOCH) detection
Premium/Discount Zones: Price positioning relative to range equilibrium
Mitigation Tracking: Monitors when order blocks and FVGs are filled
Core Components Explained
1. Order Block Detection
Order blocks are identified by finding the candle with the most extreme price before a strong directional move. The indicator uses pivot detection to identify swing points, then traces back to find the order block candle:
Bullish Order Block: Forms when price breaks above a pivot low - the candle with the lowest low before the breakout becomes the bullish OB
Bearish Order Block: Forms when price breaks below a pivot high - the candle with the highest high before the breakdown becomes the bearish OB
Order blocks are drawn as boxes extending into the future. When price returns to an order block, institutions are likely to defend that zone. Mitigation occurs when price closes through the order block (wick or close mitigation options available).
2. Fair Value Gap (FVG) Detection
FVGs are three-candle patterns where there's a gap between candle 1's high/low and candle 3's low/high:
Bullish FVG: Current low > high from 2 bars ago (gap up)
Bearish FVG: Current high < low from 2 bars ago (gap down)
FVGs represent imbalances where price moved too quickly, leaving unfilled orders. Institutions often return to these zones to fill orders. The indicator tracks FVG mitigation using touch, wick, close, or average methods.
3. Liquidity Level Tracking
Liquidity levels are identified at pivot highs (Buy Side Liquidity - BSL) and pivot lows (Sell Side Liquidity - SSL). These represent areas where retail traders place stop losses:
Buy Side Liquidity (BSL): Above pivot highs where long stop losses cluster
Sell Side Liquidity (SSL): Below pivot lows where short stop losses cluster
Institutions often push price through these levels to trigger stops and fill their orders. The indicator tracks when liquidity is swept (price moves through the level) and displays swept levels with dotted lines.
4. Market Structure Analysis
The indicator tracks market structure by monitoring higher highs/lows and lower highs/lows:
Bullish Structure: Price making higher highs and higher lows
Bearish Structure: Price making lower highs and lower lows
Break of Structure (BOS): When structure continues in the same direction
Change of Character (CHOCH): When structure shifts direction
Market structure helps identify the current trend and potential reversal points. The indicator combines structure with order blocks and liquidity to identify high-probability setups.
5. Premium/Discount Zones
The indicator calculates the range between the highest high and lowest low over a lookback period (default 50 bars), then divides it into zones:
Premium Zone: Above 50% of the range (75-100%) - ideal for shorts
Equilibrium: At 50% of the range - neutral zone
Discount Zone: Below 50% of the range (0-25%) - ideal for longs
Institutions typically buy in discount zones and sell in premium zones. The indicator displays these zones with dotted lines and tracks current price position.
Visual Elements
Order Block Boxes: Solid boxes showing bullish (green) and bearish (red) order blocks with volume labels
Fair Value Gap Boxes: Dashed boxes showing bullish (cyan) and bearish (orange) FVGs
Liquidity Lines: Horizontal lines at pivot highs (BSL - green) and pivot lows (SSL - red)
Premium/Discount Lines: Dotted lines showing range extremes, 75%, equilibrium, and 25% levels
Mitigation Indicators: Faded boxes and dotted lines show mitigated zones
Information Dashboard: Displays market structure, active OBs/FVGs, liquidity levels, price position, and trading bias
How to Use This Indicator
Step 1: Identify Market Structure
Check the dashboard for current market structure (Bullish/Bearish/Neutral). Trade in the direction of structure for highest probability.
Step 2: Locate Order Blocks
Look for unmitigated order blocks in the direction of structure. Bullish OBs in discount zones and bearish OBs in premium zones offer best setups.
Step 3: Monitor Fair Value Gaps
FVGs often get filled before price continues. Use FVGs as entry zones when they align with order blocks and structure.
Step 4: Watch for Liquidity Sweeps
When price sweeps liquidity (BSL or SSL), it often reverses. Look for liquidity sweeps near order blocks for high-probability reversals.
Step 5: Check Price Position
Use premium/discount zones to determine if price is at an extreme. Buy in discount, sell in premium, avoid equilibrium.
Step 6: Combine Elements for Confluence
Best setups occur when multiple elements align: structure + order block + FVG + liquidity sweep + premium/discount zone.
Best Practices
Trade with market structure, not against it
Wait for price to return to order blocks before entering
Use liquidity sweeps as confirmation, not standalone signals
Combine order blocks with FVGs for highest probability entries
Avoid trading in equilibrium zones - wait for premium or discount
Monitor mitigation - once an OB or FVG is mitigated, it's no longer valid
Use higher timeframe structure to confirm lower timeframe setups
Be patient - wait for all elements to align before entering
Input Parameters
Structure Detection:
Swing Length: Pivot detection period (default: 10)
Max Order Blocks: Maximum OBs to display (default: 3)
Max Fair Value Gaps: Maximum FVGs to display (default: 3)
Max Liquidity Levels: Maximum liquidity lines (default: 3)
Mitigation Rules:
OB Mitigation: Wick or Close (default: Close)
FVG Mitigation: Touch, Wick, Close, or Average (default: Close)
Show Mitigated Zones: Toggle mitigated zone display (default: disabled)
Premium/Discount Zones:
Show PD Zones: Toggle zone display (default: enabled)
Lookback Period: Range calculation period (default: 50)
Visual Configuration:
Bullish/Bearish OB Colors: Customizable order block colors
Bullish/Bearish FVG Colors: Customizable FVG colors
Buy/Sell Liquidity Colors: Customizable liquidity line colors
Show Labels: Toggle zone labels (default: enabled)
Show Volume: Toggle volume display on OBs (default: enabled)
Show Dashboard: Toggle information table (default: enabled)
Originality Statement
This indicator is original in its comprehensive SMC integration. While individual concepts (order blocks, FVGs, liquidity) are established SMC principles, this indicator is justified because:
It combines four distinct SMC methodologies into a unified detection system
The automatic order block detection uses swing analysis to identify the exact candle
FVG tracking with multiple mitigation methods provides flexibility
Liquidity sweep detection with volume confirmation adds institutional context
Premium/discount zone integration provides price positioning context
Market structure tracking with BOS/CHOCH detection guides directional bias
The comprehensive dashboard presents all SMC elements simultaneously
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice. Trading involves substantial risk of loss. Smart Money Concepts are analytical tools, not guarantees of future price movement. Order blocks, FVGs, and liquidity levels do not guarantee profitable trades. Always use proper risk management and never risk more than you can afford to lose.
-Made with passion by officialjackofalltrades Indicator

Indicator

[ A L P H A X ] Structure - Smart Money Concepts [SMC]AlphaX Structure — Smart Money Concepts: BOS, CHoCH, Order Blocks, FVG, Liquidity Sweeps, Equal H/L, Displacement & Live Dashboard
AlphaX Structure is a comprehensive Smart Money Concepts (SMC) and ICT-methodology visualization tool that automatically maps market structure, institutional order flow zones, imbalances, and liquidity levels on your chart. It detects Break of Structure, Change of Character, Order Blocks with touch tracking, Fair Value Gaps with real-time fill percentage, liquidity sweeps, equal highs and lows, displacement candles, premium and discount zones — all presented through a clean, professional interface with a live dashboard showing market context at a glance.
Built for traders who analyze markets through the lens of institutional order flow and smart money behavior.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📐 Market Structure — BOS & CHoCH
The foundation of smart money analysis is understanding where structure breaks and when character changes .
Break of Structure (BOS)
A BOS occurs when price breaks a swing high or swing low in the direction of the existing trend — confirming that the current trend is continuing. BOS is plotted as a dashed horizontal line at the broken level with a "BOS" label offset slightly above or below for clear visibility.
Bullish BOS — price closes above a prior swing high while the market is already in a bullish structure. This confirms buyers remain in control and the uptrend is intact.
Bearish BOS — price closes below a prior swing low while the market is already in a bearish structure. This confirms sellers remain dominant and the downtrend continues.
Change of Character (CHoCH)
A CHoCH occurs when price breaks a swing high or swing low against the direction of the existing trend — signaling a potential trend reversal. CHoCH is plotted as a dotted horizontal line (visually distinct from BOS) with a "CHoCH" label.
Bullish CHoCH — price closes above a swing high while the market was previously bearish. This is the first structural sign that sellers may have lost control and a bullish reversal is forming.
Bearish CHoCH — price closes below a swing low while the market was previously bullish. This warns that buyers may be exhausted and a bearish reversal could be underway.
CHoCH is the earliest structural reversal signal. When you see a CHoCH followed by a BOS in the new direction, the trend shift is confirmed.
The indicator tracks the internal market trend state automatically. Once a bullish CHoCH fires, all subsequent structure breaks in the same direction are classified as BOS (continuation) until a bearish CHoCH resets the trend — and vice versa.
Swing Classification
When swing point labels are enabled, each pivot is classified as:
HH — Higher High (bullish continuation)
HL — Higher Low (bullish continuation)
LH — Lower High (bearish continuation)
LL — Lower Low (bearish continuation)
This gives you the complete market structure sequence — HH + HL = uptrend, LH + LL = downtrend — at a glance without manually marking swings.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📦 Order Blocks (OB) — With Touch Tracking
Order Blocks are the last opposing candle before a strong move — the zone where institutional orders were placed. AlphaX Structure detects Order Blocks automatically using two methods:
Engulfing Pattern Detection — a candle that fully engulfs the prior candle's body, indicating aggressive institutional entry
Strong Displacement Detection — a candle that breaks through two prior bars' highs or lows, showing powerful directional commitment
Each Order Block is drawn as a filled box spanning the body of the origin candle. The box extends forward in time, remaining on the chart as a potential reaction zone.
What makes this unique — Touch Counting:
Most SMC indicators simply show or hide Order Blocks. AlphaX Structure tracks how many times price retests each Order Block and displays the count directly on the label:
OB — fresh, untested Order Block
OB ×1 — price has retested this zone once
OB ×2 — price has retested this zone twice
OB ×3+ — multiple retests — the zone is weakening
This is critical information. A fresh OB with zero touches is the highest probability reaction zone. An OB that has been tested 3 or more times is significantly weaker — institutional orders at that level have likely been filled, and the zone may fail on the next test.
Mitigation:
When price closes through an Order Block (beyond its far edge), the OB is considered mitigated . It grays out and stops extending — visually clearing the chart while preserving the historical record of where the zone existed.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ Fair Value Gaps (FVG) — With Fill Percentage
A Fair Value Gap is a three-candle imbalance where the wick of the first candle and the wick of the third candle do not overlap — creating a gap in price that represents inefficient price delivery. These gaps act as magnets that price tends to return to and fill.
Bullish FVG — gap between the high of candle 1 and the low of candle 3 (upward imbalance). Price tends to pull back down to fill this gap before continuing higher.
Bearish FVG — gap between the low of candle 1 and the high of candle 3 (downward imbalance). Price tends to push back up to fill this gap before continuing lower.
Each FVG is drawn as a dotted-border box with a midpoint line through the center. The midpoint represents the 50% level of the imbalance — often the precise level where price reacts.
What makes this unique — Real-Time Fill Percentage:
AlphaX Structure calculates and displays how much of each FVG has been filled as price returns to the zone:
FVG — unfilled gap, no price has entered the zone
FVG 35% — price has partially filled 35% of the gap
FVG 72% — price has filled most of the gap
FVG ✓ — gap has been fully mitigated (price closed through the entire zone)
This gives you precision that no standard FVG indicator provides. A gap that is 70% filled but holding at the midpoint is behaving differently than one that was filled in a single candle. The fill percentage helps you judge whether the imbalance has been respected (potential bounce) or is being aggressively closed (continuation through).
A minimum FVG size filter (in ticks) is available to remove insignificant micro-gaps that clutter the chart on lower timeframes.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💰 Liquidity Sweeps
Liquidity sweeps occur when price wicks beyond a recent high or low but closes back inside the range — indicating a stop hunt or liquidity grab by institutional players. This is one of the most important concepts in ICT methodology.
Buy-side Sweep — price wicks above the recent highest high (grabbing buy-stop liquidity) but closes back below with a bearish candle. This often precedes a reversal lower. Labeled as "$ sweep" above the bar.
Sell-side Sweep — price wicks below the recent lowest low (grabbing sell-stop liquidity) but closes back above with a bullish candle. This often precedes a reversal higher. Labeled as "$ sweep" below the bar.
The lookback period for defining "recent" highs and lows is configurable, allowing you to tune sensitivity from tight scalping sweeps to broader swing-level liquidity grabs.
Liquidity sweeps are most powerful when they occur at key levels — equal highs/lows, Order Block zones, or previous day/week extremes. When a sweep aligns with an OB or FVG, the probability of a reaction increases significantly.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚖ Equal Highs & Equal Lows (EQH / EQL)
When two consecutive swing highs or swing lows form at approximately the same price, they create a liquidity pool . Retail traders place stops just beyond these levels, and institutional players know exactly where those stops are clustered.
EQH (Equal Highs) — two swing highs at nearly identical prices. A dashed line extends forward marking this level as a target for buy-side liquidity sweeps. Market makers frequently drive price above equal highs to trigger stops before reversing.
EQL (Equal Lows) — two swing lows at nearly identical prices. A dashed line marks this as a sell-side liquidity target. Expect price to sweep below before potentially reversing.
The tolerance for what counts as "equal" is configurable as a percentage (default 0.02%). This prevents false matches while catching genuinely significant double-top and double-bottom liquidity formations.
Equal Highs and Equal Lows are prime targets — when you see price approaching an EQH from below or an EQL from above, be prepared for either a sweep-and-reverse or a clean breakout. The market structure context (BOS vs CHoCH) and the presence of nearby Order Blocks will help you determine which scenario is more likely.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔥 Displacement Candles
Displacement represents aggressive institutional commitment — a candle whose body is significantly larger than normal, showing that smart money entered with force. AlphaX Structure identifies displacement candles using two criteria:
The candle body must exceed the Average True Range (ATR) multiplied by a configurable factor (default 2.0×)
The body must occupy more than 60% of the total candle range (strong body-to-wick ratio — institutional candles close near their extreme, not in the middle)
Bullish displacement candles are marked with a diamond below the bar. Bearish displacement candles are marked with a diamond above the bar.
Displacement candles are the engine behind structure breaks . When a BOS or CHoCH is accompanied by a displacement candle, the move has genuine institutional backing. When structure breaks occur on weak, indecisive candles, the break is more likely to fail.
Additionally, displacement candles often create Fair Value Gaps . When you see a displacement diamond next to an FVG box, you know the imbalance was created by a powerful move — making that FVG a higher-probability reaction zone.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💪 Candle Strength Dots
An optional feature that marks individual candles based on their relative strength compared to the ATR:
Strong Bullish Candle — body exceeds 1.2× ATR with body ratio above 55%, bullish close. Dot appears below the bar.
Strong Bearish Candle — same criteria, bearish close. Dot appears above the bar.
This is a quick visual filter for identifying which candles represent genuine conviction versus noise. Disabled by default to keep the chart clean — enable it when you want granular candle-level analysis.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 Premium & Discount Zones
The indicator calculates the current trading range using a configurable lookback period and divides it into:
Premium Zone — the upper 25% of the range, shaded with the bear color. In ICT methodology, the premium zone is where smart money sells. Buying in premium is inherently risky.
Discount Zone — the lower 25% of the range, shaded with the bull color. This is where smart money buys. Selling in discount is inherently risky.
Equilibrium (EQ) — the exact 50% midpoint of the range, marked with a dotted cross line. This is the fair value level. Price above EQ is in premium territory; price below EQ is in discount territory.
The Premium and Discount zones are drawn using boxes and lines that do not affect the chart's price scale — your candles will always display at their natural size regardless of the range lookback setting.
The dashboard displays your exact position within the range as a percentage: "DISCOUNT 18%" means price is in the lower 18% of the range — deep discount. "PREMIUM 85%" means price is in the upper portion — extended and vulnerable to pullback.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📋 Live Dashboard
A comprehensive real-time reference panel that updates on every bar, providing complete market context without needing to scan the chart:
STRUCTURE — current market structure direction: ▲ BULLISH, ▼ BEARISH, or — NEUTRAL, based on the most recent BOS or CHoCH
EMA BIAS — longer-term directional bias based on price position relative to 50 and 200 EMA alignment
ZONE — whether price is currently in PREMIUM, UPPER EQ, LOWER EQ, or DISCOUNT territory, with exact percentage
EQ LEVEL — the exact price of the current range equilibrium, formatted to the instrument's tick size
RSI (14) — current RSI value, color-coded: green in oversold territory, red in overbought, neutral in the middle
VOLATILITY — current volatility regime (HIGH / NORMAL / LOW) based on ATR as a percentage of price, with the exact ATR value
VOLUME — current volume relative to the 20-period average: SPIKE (>2×), ABOVE AVG (>1.3×), NORMAL, or DRY (<0.7×)
ORDER BLOCKS — number of currently active (unmitigated) Order Blocks, broken down by bullish and bearish count
FAIR VALUE GAPS — number of currently active (unfilled) FVGs, broken down by bullish and bearish count
SWING HIGH — the most recent confirmed swing high price
SWING LOW — the most recent confirmed swing low price
The dashboard title "A L P H A X S T R U C T U R E" is displayed in the signature yellow-green theme color. All values are color-coded to match their significance — bullish values in yellow-green, bearish values in red, neutral in gray.
Dashboard position (Top Left, Top Right, Bottom Left, Bottom Right) and text size (Tiny, Small, Normal) are fully configurable.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎨 Visual Design Philosophy
AlphaX Structure follows a strict dual-tone color theme for maximum clarity:
Yellow-Green (#c8e624) — all bullish elements: bullish BOS, bullish OBs, bullish FVGs, equal lows, discount zones, bullish displacement, sweep recoveries
Red (#ff1744) — all bearish elements: bearish BOS, bearish OBs, bearish FVGs, equal highs, premium zones, bearish displacement, sweep rejections
Gray (#555555) — neutral and mitigated elements: mitigated OBs and FVGs, equilibrium line, inactive zones
Structure labels (BOS, CHoCH, OB, FVG, EQH, EQL) are offset from their reference lines by a dynamic ATR-based spacing value. This ensures labels never sit directly on top of the lines they reference — maintaining readability at any zoom level and on any instrument.
All label sizes are configurable from a single setting (Tiny, Small, Normal, Large), and structure line widths for BOS and CHoCH are independently adjustable.
Mitigated zones are visually dimmed — OB and FVG boxes turn gray with increased transparency, clearly distinguishing active zones from historical ones without removing them from the chart entirely.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 How to Read AlphaX Structure — Step by Step
Step 1 — Identify the Trend
Check the dashboard: what does STRUCTURE say? What does EMA BIAS say?
If both agree (both bullish or both bearish), you have a confirmed directional environment
If they disagree, the market may be in transition — wait for alignment
Step 2 — Locate Key Levels
Identify active Order Blocks — these are your primary reaction zones
Note any unfilled FVGs — price is likely to return to these imbalances
Check for Equal Highs or Equal Lows — these are liquidity targets
Step 3 — Determine Premium or Discount
Check the ZONE reading in the dashboard
In a bullish trend, look for entries in DISCOUNT or LOWER EQ
In a bearish trend, look for entries in PREMIUM or UPPER EQ
Avoid entering long in deep premium or short in deep discount — you are fighting the range
Step 4 — Wait for Confluence
The highest probability setups occur when multiple elements align at the same price level
Example: A bullish OB with zero touches sitting inside the discount zone, with an unfilled bullish FVG overlapping the same area, and a recent sell-side liquidity sweep just below — this is a textbook smart money long entry
Example: A bearish CHoCH forms at a premium zone equal high, followed by a displacement candle creating a bearish FVG — this is a high-probability short setup
Step 5 — Monitor Displacement
When structure breaks occur, check for displacement diamonds
BOS or CHoCH with displacement = high conviction move
BOS or CHoCH without displacement = weaker break, may fail or consolidate
Step 6 — Track FVG Fill Progress
As price returns to an FVG, watch the fill percentage update in real time
If price fills to 50% (the midpoint line) and rejects — the FVG is acting as support or resistance
If price fills beyond 70% — the imbalance is mostly resolved, the level is losing significance
If the label shows "FVG ✓" — the gap is fully mitigated, it is no longer a valid zone
Step 7 — Count OB Touches
Fresh OBs (zero touches) are the strongest — institutional orders are still there
OBs with 1–2 touches are still valid but weakening
OBs with 3+ touches — expect the zone to break on the next test. Consider trading the break rather than the bounce
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ Key Features Summary
📐 Automatic Break of Structure (BOS) and Change of Character (CHoCH) detection with proper trend state tracking
📦 Order Blocks with real-time touch counting — know exactly how many times each zone has been tested
⚡ Fair Value Gaps with live fill percentage — see partial fills update as price enters the zone
✓ FVG mitigation checkmark — clear visual confirmation when an imbalance is fully resolved
💰 Liquidity sweep detection — buy-side and sell-side stop hunts automatically identified
⚖ Equal Highs and Equal Lows — institutional liquidity pool targets marked with extension lines
🔥 Displacement candle detection — identify the high-conviction institutional candles behind structure breaks
💪 Optional candle strength dots — quick visual filter for strong vs weak bars
🎯 Premium and Discount zones with equilibrium line — know whether you are buying cheap or expensive
📋 12-row live dashboard — structure, EMA bias, zone, RSI, volatility, volume, active OB/FVG counts, swing levels
🏷 HH / HL / LH / LL swing classification labels — complete market structure sequence at a glance
🎨 Clean dual-tone color theme — yellow-green bullish, red bearish, gray neutral — no visual clutter
📏 ATR-based label spacing — labels never overlap their reference lines regardless of instrument or timeframe
⚙ Fully configurable — label size, line widths, max drawings, transparency, lookback periods, all from the settings panel
🔔 18 alert conditions covering every event type including combined alerts for multi-condition monitoring
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙ Settings Reference
Structure
Swing Detection Length — number of bars on each side to confirm a pivot (default: 5)
Show Break of Structure — toggle BOS lines and labels
Show Change of Character — toggle CHoCH lines and labels
Show Swing Points — toggle HH/HL/LH/LL labels at pivots
Max Structure Lines — limit on total BOS/CHoCH drawings (default: 15)
Order Blocks
Show Order Blocks — toggle OB detection and drawing
Remove Mitigated OBs — gray out and stop extending OBs that price has closed through
Max Order Blocks — maximum active OB drawings (default: 8)
Bullish / Bearish OB Color — independent color pickers
OB Fill Transparency — control how transparent the OB fill appears (default: 88)
Fair Value Gaps
Show Fair Value Gaps — toggle FVG detection and drawing
Remove Mitigated FVGs — gray out and checkmark FVGs that price has fully closed through
Max FVG Boxes — maximum active FVG drawings (default: 10)
Bullish / Bearish FVG Color — independent color pickers
FVG Fill Transparency — control fill transparency (default: 90)
Min FVG Size (ticks) — filter out micro-gaps below this threshold
Liquidity
Show Liquidity Sweeps — toggle sweep detection labels
Liquidity Lookback — how many bars to look back for the recent high/low that defines the sweep level (default: 20)
Buy-side / Sell-side Sweep Color — independent color pickers
Equal H/L
Show Equal Highs / Lows — toggle EQH/EQL detection
Equal Level Tolerance % — how close two swing pivots must be to qualify as "equal" (default: 0.02%)
Equal Highs / Lows Color — independent color pickers
Premium & Discount
Show Premium/Discount — toggle zone boxes and equilibrium line
Range Lookback — how many bars to calculate the current range (default: 50)
Discount / Premium Zone Color — independent color pickers
Displacement
Show Displacement Candles — toggle displacement diamond markers
ATR Multiplier — how many times larger than ATR the candle body must be (default: 2.0)
ATR Period — the ATR calculation period (default: 14)
Bull / Bear Displacement Color — independent color pickers
Candle Strength
Show Candle Strength Dots — toggle strong candle markers (default: off)
Strength ATR Period — ATR period for strength comparison (default: 14)
Appearance
Label Size — Tiny, Small, Normal, or Large for all chart labels
Structure Line Width — thickness of BOS lines (default: 1)
CHoCH Line Width — thickness of CHoCH lines (default: 2)
Dashboard
Show Dashboard — toggle the information panel
Dashboard Position — Top Left, Top Right, Bottom Left, or Bottom Right
Dashboard Text Size — Tiny, Small, or Normal
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 Alert Conditions (18 Total)
Individual Alerts:
Bullish BOS — fires when a bullish Break of Structure is confirmed
Bearish BOS — fires when a bearish Break of Structure is confirmed
Bullish CHoCH — fires when a bullish Change of Character is detected
Bearish CHoCH — fires when a bearish Change of Character is detected
Buy-side Liquidity Sweep — fires when price sweeps above recent highs and closes back below
Sell-side Liquidity Sweep — fires when price sweeps below recent lows and closes back above
Bullish FVG Formed — fires when a new bullish Fair Value Gap is created
Bearish FVG Formed — fires when a new bearish Fair Value Gap is created
Bullish OB Formed — fires when a new bullish Order Block is detected
Bearish OB Formed — fires when a new bearish Order Block is detected
Bullish Displacement — fires when a bullish displacement candle is confirmed
Bearish Displacement — fires when a bearish displacement candle is confirmed
Combined Alerts:
Any Bullish Structure Break — fires on either bullish BOS or bullish CHoCH
Any Bearish Structure Break — fires on either bearish BOS or bearish CHoCH
Any Liquidity Sweep — fires on either buy-side or sell-side sweep
Any FVG Formed — fires on either bullish or bearish FVG
Any OB Formed — fires on either bullish or bearish Order Block
Any Displacement Candle — fires on either bullish or bearish displacement
All alert messages are prefixed with and include ticker, interval, and price for clean webhook and notification integration.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
👥 Who This Is For
🧠 ICT and SMC traders — every core concept is mapped automatically: BOS, CHoCH, OB, FVG, liquidity sweeps, EQH/EQL, premium/discount, displacement
🥇 Gold (XAUUSD) traders — gold's price action is heavily driven by institutional order flow and liquidity sweeps; this tool maps exactly where those events occur
📉 Forex traders — applicable to all major and minor pairs; session-based liquidity sweeps are particularly effective on EURUSD, GBPUSD, and USDJPY
📊 Index traders — works on US30, NAS100, SPX500, DAX — Order Blocks and FVGs are core institutional concepts on indices
📈 Traders who want clean charts — every element uses the same dual-tone theme with proper spacing, mitigation graying, and configurable drawing limits. No clutter, no overlapping elements
⚠ Traders learning SMC methodology — the indicator maps every concept in real time, making it an excellent study tool for understanding how structure, order flow, and liquidity interact
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 Notes
Designed for intraday to swing timeframes — M1 through H4. Works on daily and weekly charts but intraday timeframes provide the best resolution for OB and FVG detection.
Premium and Discount zones are drawn using boxes and lines on the last bar only — they do not affect the chart's vertical price scale. Your candles will always display at their natural size.
Structure detection uses bar close confirmation — a swing high or low must be confirmed by the configured number of bars on each side before it is recognized as a pivot.
The maximum number of drawings for OBs, FVGs, structure lines, and EQ lines are all independently configurable. Older drawings beyond the limit are automatically removed.
Touch counting on Order Blocks uses a de-duplication method — price must leave the OB zone and re-enter to count as a new touch. Consecutive bars inside the same OB count as one touch.
FVG fill percentage is calculated based on the deepest penetration into the gap — even if price subsequently leaves the zone, the fill percentage reflects the maximum penetration achieved.
All calculations are non-repainting — signals are confirmed on bar close.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ 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 structure levels, Order Blocks, Fair Value Gaps, and liquidity levels shown are derived from historical price data and their significance as support, resistance, or reaction zones is not guaranteed. Smart Money Concepts and ICT methodology are interpretive frameworks — they describe market behavior patterns but do not predict future price action with certainty. Past reactions at these levels do not guarantee future reactions. 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 read the market the way institutions move it. Indicator

ICT/SMC Sessions + SMT DivergencePro ICT/SMC Structural Suite: Sessions, SMT Divergence & RTH Gaps
Overview
The ICT/SMC Structural Suite is a highly optimized, "pure structure" indicator designed for traders utilizing Inner Circle Trader (ICT) and Smart Money Concepts (SMC). Unlike traditional indicators that rely on lagging oscillators or moving averages, this script focuses entirely on Time and Price Geometry.
It provides an all-in-one visual overlay for institutional trading sessions, Opening Prices, Fair Value Gaps (FVGs), real-time SMT Divergences, and a highly advanced Regular Trading Hours (RTH) Gap engine. It is engineered to be lightweight, incredibly fast, and meticulously anchored to "America/New_York" time to natively handle Daylight Saving Time (DST) shifts without user intervention.
Core Features & Technical Breakdown
1. Asset-Aware RTH Gap Engine
One of the most complex challenges in charting is accurately mapping the daily RTH gap on continuous Extended Trading Hours (ETH) charts, especially over the weekend.
The Logic: This script uses a custom state-management system to bypass the Sunday overnight session on Futures. It isolates the true Regular Trading Hours (session.regular), explicitly locking the Friday close and drawing a dynamic gap box to the Monday 09:30 AM open.
Asset-Aware: The engine dynamically reads syminfo.type. If you are trading Futures (e.g., ES/NQ), it tracks the close until 16:15 EST. If you switch to Equities (e.g., AAPL/NVDA), it automatically snaps back to 16:00 EST, preventing after-hours earnings volatility from breaking your gap levels.
Quartiles: Automatically calculates and plots the 25%, 50% (Consequent Encroachment), and 75% levels inside the gap.
2. Real-Time Multi-SMT Divergence
Traditional divergence indicators wait for a candle to close before signaling. This script utilizes a custom real-time evaluation engine.
The Logic: The script establishes historical swing points using a 5-bar pivot lookback (ta.pivothigh / ta.pivotlow). It then compares your active, live tick against those historical pivots. If the current ticker sweeps a previous high/low, but your correlated assets fail to do so, a real-time label flashes on the chart.
Customization: Supports up to 5 concurrent assets. Includes a built-in VIX tracker (auto-inversed) and 4 customizable tickers (e.g., NQ, YM, DXY) with toggleable inversion logic.
3. Institutional Time Sessions
Visualizes key accumulation and distribution zones via clean, customizable background boxes.
Tracks Equity Pre-Market (EPM), London, Asia, and CBDR (Central Bank Dealers Range).
DST Proof: All sessions are mathematically forced to America/New_York time in the background, meaning your 09:30 AM open and macro times will never drift when Daylight Saving Time begins or ends.
4. 1st AM FVG Detector
Automatically detects and highlights the very first Fair Value Gap (FVG) that forms exclusively during the opening volatility window (09:31 AM – 10:30 AM EST). This box is extended forward in time as a high-probability draw on liquidity or retracement POI for the remainder of the session.
5. ICT Macros & Opening Prices
Macros: Highlights the 14 standard ICT Macro windows (e.g., 09:50-10:10, 10:50-11:10) with non-intrusive, bottom-anchored X-axis labels to keep your price action completely uncluttered. Includes an optional End-of-Day (15:15) macro toggle.
True Daily Opens: Plots the Midnight (00:00) Open, NY (08:30) Open, and Equity (09:30) Open as extended horizontal rays.
6. Higher Timeframe (HTF) Liquidity Levels
Automatically pulls and plots the Previous Day High/Low (PDH/PDL) and Previous Week High/Low (PWH/PWL) without requiring you to change timeframes.
How to Use This Script
This indicator is not a "buy/sell" signal generator; it is a structural mapping tool designed to give you contextual awareness of institutional order flow.
Trading the RTH Gap: The RTH gap box acts as a powerful magnetic zone. Traders can look for price to rebalance into the gap, using the internal 50% line (Consequent Encroachment) as a target or a bounce level.
Validating Reversals with SMT: When price pushes into a Higher Timeframe Liquidity Level (like PDH or PWL), look for an SMT Divergence label to appear. If ES sweeps the high but NQ fails to make a higher high, the divergence adds high-probability confluence to a reversal setup.
Opening Price Lenses: Use the Midnight and 08:30 Opens as your daily bias gauge. If price is above the Midnight Open, the daily profile is expansive (bullish); look for manipulation moves below the open to accumulate longs (Judas Swing).
Under the Hood (For Pine Geeks)
This script was heavily refactored for enterprise-grade execution speed. Repetitive drawing logic has been extracted into single-pass functions, state arrays are trimmed using optimized while loops, and request.security calls are fully gated by boolean toggles to prevent API overhead when custom tickers are disabled. Indicator

SMC Crypto Swing Sniper (MTF Edition)The "SMC Crypto Swing Sniper" is an hybrid trading system. It´s evolved it from a pure price-action script into a data-driven order flow and momentum powerhouse.
1. The Macro Compass (Trend & Momentum)
Moving away from guessing candle patterns to using hard data:
The 4H Dashboard: Tracks Bitcoin, BTC Dominance, USDT Dominance, and your current ticker on a fixed 4H basis. It combines Trend (EMA crossover), RSI, MACD, and ADX/DMI. This instantly tells you if the market has real momentum (BULL/BEAR when ADX > 25) or is just chopping sideways (WEAK when ADX < 25).
Fixed Moving Averages: The 4H EMA 50, 4H WMA 200, and the Monthly VWAP dictate your overall macro bias. They are your ultimate directional filter (e.g., only look for long setups if the price is above these levels).
2. The Battlefield (SMC Zones & S/R)
This is the Price Action core that tells you exactly WHERE to look for trades:
Static 1H Price Filter: Three horizontal lines (Resistance / Mid / Support) that strictly lock onto the high, low, and average of the last 50 hours, regardless of what timeframe you are currently viewing. This is your local playing field.
Clean Order Blocks & FVGs: The script dynamically draws institutional zones with an elegant 80% transparency and no borders. They auto-delete to keep your chart clean only when truly invalidated (price breaking completely through an OB or fully filling a gold FVG).
Market Structure: Automated BOS (Break of Structure) and CHoCH (Change of Character) lines pinpoint local trend shifts.
3. The Order Flow Trigger (Sniper Execution)
Here, we measure real money exchanging hands to time the entry:
Whale Volume: Candles paint white when the volume spikes 200% above the 20-period moving average, highlighting Smart Money stepping in.
Rolling CVD (Cumulative Volume Delta): Your strongest weapon. Instead of endlessly adding volume history, it uses a rolling 21-bar period with a sharp sensitivity (Fractal = 2). When price makes a new low, but selling pressure is visibly dying out in the CVD, the script prints a Divergence Arrow. This is your early warning system!
Your Trading Workflow Summarized:
Check the Dashboard/MAs for direction -> Wait for price to tap an SMC Zone or 1H S/R line -> Pull the trigger when CVD Divergence or Whale Volume confirms the reversal. Indicator
