OPEN-SOURCE SCRIPT
[ A L P H A X ] SURGE

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