[ A L P H A X ] Impulse Bands - Adaptive Trend EngineAlphaX Impulse Bands — ATR-Normalized Adaptive Trend Engine, Impulse Freshness System, Multi-Confluence Confidence Scoring & Smart Retest Detection
AlphaX Impulse Bands is a professional-grade adaptive trend following system built on a proprietary ATR-normalized impulse detection engine that continuously measures the strength, direction, and freshness of every price move. It delivers dynamic bands that physically breathe with volatility — tightening during fresh, high-conviction impulses and expanding during stale, uncertain market conditions. Three visual layers — the Trend Cloud, entry labels, and precision retest lines — work together with a multi-factor confidence scoring system and a triple-timeframe Williams %R confirmation gate to produce only the highest-quality signals. Designed for active traders across crypto, forex, indices, and commodities on any timeframe.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔬 The Impulse Engine — How It Works
At the core of AlphaX Impulse Bands is the ATR-Normalized Impulse Engine — a proprietary system that measures momentum in a way that is consistent and comparable across all instruments and timeframes.
Most adaptive band systems measure impulse by dividing price movement against MAD (Mean Absolute Deviation), which produces readings that vary wildly between low-volatility forex and high-volatility crypto. AlphaX Impulse Bands solves this by normalizing against ATR (Average True Range) instead — the same unit every professional volatility model uses. The result is an impulse score that means the same thing whether you are trading XAUUSD on M1 or BTC on H4.
How the impulse is calculated:
Raw Impulse — measures how far price has moved over the Impulse Lookback period, divided by ATR. If this movement exceeds the threshold (1.0×ATR), a new impulse event is registered.
Impulse Direction — records whether the detected impulse is bullish or bearish, held in state until the next impulse event fires.
Impulse Decay — once registered, the impulse strength decays each bar at the configured Decay Rate. This creates a natural fade — recent moves carry full weight, older moves gradually lose influence.
Impulse Freshness — a normalized 0–100% score derived from current impulse strength. Fresh = high confidence. Stale = caution.
Impulse Momentum — the rate of change of freshness across the last 3 bars. Used by the confidence scoring system to distinguish an impulse that is building from one that has already peaked and is fading.
This multi-layer approach means the indicator is not just reacting to where price is — it is continuously answering the question: how energetic is the current move, and is that energy rising or falling?
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📐 The Adaptive Bands — Breathing With Volatility
The bands are not fixed-width channels. They are living boundaries that respond to both market volatility and impulse freshness simultaneously.
Band structure:
Basis EMA — a trend-length EMA of close, forming the center reference line plotted as a subtle gray line
MAD (Mean Absolute Deviation) — the volatility engine. Unlike ATR, MAD measures the average deviation of closes from their recent mean — capturing the texture of price noise directly
Band Multiplier — dynamically calculated each bar as a blend between Band Min and Band Max, weighted by current Impulse Freshness
The key relationship:
When a fresh impulse fires → Freshness = high → Multiplier moves toward Band Min → Bands tighten — price is in a high-conviction directional move, the bands hug it closely
As the impulse decays → Freshness falls → Multiplier moves toward Band Max → Bands expand — uncertainty is rising, the bands widen to reflect the broader range of possible outcomes
A very stale market with no active impulse → Freshness near zero → Full Band Max width → Maximum caution zone
This means the bands are effectively a real-time confidence visualizer . A trader glancing at the chart immediately understands: tight bands = strong move in progress, wide bands = market searching for direction.
Band Squeeze Detection:
The dashboard continuously displays band width as a percentage of price. When this drops below 2%, the dashboard flags SQUEEZE — a powerful pre-breakout warning that a large directional move is loading. Wider than 7% is flagged as WIDE — indicating elevated uncertainty or a post-impulse cool-down.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
☁ The Trend Cloud
The Trend Cloud is a gradient-filled area plotted around price that provides instant visual identification of trend direction and structural support/resistance.
How the cloud is constructed:
Cloud Outer — the outer boundary of the cloud, positioned at the lower band during a bull trend and the upper band during a bear trend
Cloud Inner — the inner boundary, sitting 45% of MAD inside the outer boundary — this inner line is the key level the Retest Engine watches
Cloud Fill — gradient-shaded between inner and outer: yellow-green for bullish trend, red for bearish trend, opacity-graded for visual depth
Reading the cloud:
Price riding above an expanding yellow-green cloud → strong bull trend, cloud is acting as dynamic support
Price riding below an expanding red cloud → strong bear trend, cloud is acting as dynamic resistance
Cloud thin or collapsed → no meaningful impulse active, potential consolidation or trend transition zone
Cloud color switching rapidly → choppy market, reduce position size or stand aside
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Signal System — Three Layers
AlphaX Impulse Bands produces three distinct signal types, each serving a specific role in the trade lifecycle:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1 ─ Entry Labels ( ▲ S/A/B % / ▼ S/A/B % )
Entry labels fire when the indicator detects a confirmed trend flip — price breaking through the outer band with sufficient impulse and WPR confirmation. Each label carries two pieces of information:
Tier — S, A, or B. Determined by the confidence score at signal time (S = 70%+, A = 55–69%, B = 25–54%)
Confidence % — the raw score from the confidence engine, printed directly on the label
Label colors reflect tier quality:
S-Tier — brightest yellow-green (bull) or bright red (bear) — highest conviction setup
A-Tier — primary yellow-green or primary red — strong setup
B-Tier — dimmer shades — valid but lower conviction, consider smaller size
A Signal Cooldown prevents multiple labels firing on the same trend flip during fast, multi-bar breakouts. Only signals that pass the minimum confidence threshold, the WPR confirmation gate, and the cooldown check are displayed.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2 ─ Retest Lines ( ✦ )
After a trend flip is confirmed and the Signal Buffer period has passed, the Retest Engine activates. It watches for price to pull back into the Cloud Inner boundary — the institutional re-entry zone where trends historically find continuation.
When a valid retest is detected:
A ✦ diamond marker appears at the retest bar — yellow-green for bull retests, red for bear retests
A horizontal retest line is drawn from the retest bar extending forward by the configured number of bars — giving you a clear price level to watch for re-entry or stop placement
A Retest Cooldown prevents line spam — minimum 55 bars between consecutive retest lines by default
Retest signals represent the continuation trade opportunity — where traders who missed the initial flip can enter at a structurally superior price, with the cloud now acting as confirmed support or resistance behind them.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
3 ─ Exit Markers ( ✕ )
Exit markers appear when one of two conditions is met:
Trend Flip Exit — the opposite trend signal fires, indicating the trend has definitively reversed
WPR Exhaustion Exit — the Fast WPR crosses through the configured exit level (default: above -15 for longs, below -85 for shorts), indicating momentum exhaustion in the direction of the trade. A minimum bars-in-trade requirement prevents premature WPR exits on the opening bars of a position.
Exit markers are not necessarily a signal that the trend is over. They indicate that the current momentum leg is likely complete . Use them to:
Take partial or full profit at the exhaustion point
Tighten stop loss to protect gains
Wait for the next ✦ retest signal before re-entering if the trend remains intact
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🧠 Multi-Confluence Confidence Scoring
Every entry signal is evaluated in real time by the AlphaX Confidence Engine — a multi-factor scoring system that produces a score from 0 to 100 and assigns it a tier. Only signals meeting your configured minimum threshold are displayed.
Bull Confidence Factors:
Trend Flip Freshness (up to 25 points)
Maximum score awarded only when the signal fires on the exact bar of the trend flip — confirming you are at the very beginning of the move, not chasing it
Impulse Freshness (up to 20 points)
The higher the current freshness reading, the more points awarded. A fully fresh impulse (80%+) scores 20 points; a stale impulse (below 20%) scores zero
Impulse Direction Alignment (up to 10 points)
Full points when the internal impulse direction agrees with the signal direction. Zero when it conflicts — a powerful cross-check that catches whipsaw moves where price crossed the band but momentum is still against you
WPR Oversold Depth (up to 15 points)
How deeply the Fast WPR penetrated oversold territory. Deeper = higher spring-loaded reversal potential = more points. WPR below -95 scores the maximum; WPR above -80 scores zero
WPR Cross Timing (up to 10 points)
A confirmed WPR cross back above the oversold level scores 10 points. Fast upward velocity scores 7. General bullish recovery scores 4
WPR Multi-Timeframe (up to 8 points)
Triple WPR convergence (all three timeframes in oversold) scores 8 points. Medium WPR alone in oversold scores 5
WPR Slow Alignment (up to 5 points)
When the Slow WPR confirms the macro trend direction, additional points are awarded
Candle Quality (up to 5 points)
A bullish close with body ratio above 50% scores 5 points. Any bullish close scores 2. Bearish closes score zero
Volume Surge (up to 5 points)
Volume 1.5× or more above the 20-bar SMA scores 5 points. Volume above the SMA scores 2
Impulse Momentum (up to 5 points)
When impulse strength is actively building (positive momentum) additional points are awarded — distinguishing a move that is accelerating from one that is about to stall
Penalty Deductions:
Slow WPR in extreme overbought territory → -8 points (macro trend fighting the signal)
Fast WPR still in overbought zone → -5 points
Impulse nearly completely stale (freshness below 10%) → -10 points
Extreme WPR velocity (likely spike or wick move) → -5 points
The bear confidence scoring system mirrors this structure in reverse, with all conditions flipped for short setups.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📡 Triple WPR Confirmation Gate
All signals pass through the WPR Confirmation Gate before being displayed. This is a separate binary filter — independent of the confidence score — that blocks signals when the oscillator context fundamentally disagrees with the signal direction.
The gate requires at least one of the following to be true before a bull signal can fire:
Fast WPR is in oversold territory
Fast WPR has just crossed back above the oversold level
Fast WPR is in a bullish recovery pattern (rising for 2+ bars)
WPR Slow and Medium are both in the bullish alignment zone
The same logic applies in reverse for bear signals. This gate can be toggled off in settings for traders who want band crossings alone to trigger signals, but it is on by default — and is one of the primary reasons AlphaX Impulse Bands produces significantly fewer false signals than typical adaptive band systems.
Three WPR timeframes run simultaneously and feed both the gate and the confidence scoring:
WPR Fast (8) — the primary signal oscillator, reacts immediately to price action
WPR Medium (21) — the intermediate trend filter, confirms the broader momentum context
WPR Slow (55) — the macro trend anchor, determines whether the overall market structure supports the signal
Triple WPR Convergence — when all three timeframes simultaneously reach extreme levels — is flagged on the dashboard as ALL OVERSOLD or ALL OVERBOUGHT and awarded maximum bonus points in the confidence engine. This is the highest-quality WPR condition the system can detect.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Live Dashboard
The real-time dashboard displays the complete internal state of the indicator across five sections, updated on every bar close.
IMPULSE ENGINE
Impulse Strength — qualitative label (EXTREME / STRONG / MODERATE / WEAK / FADING) based on the raw impulse value
Freshness — current freshness percentage with qualitative state (FRESH / ACTIVE / FADING / STALE). Highlighted in yellow-green when above 70% — the highest-confidence zone
Impulse Direction — the direction of the most recent registered impulse (BULLISH / BEARISH)
Band Width — current band width as a percentage of price, with SQUEEZE or WIDE flags when applicable
OSCILLATORS
WPR Fast / Med / Slow — current values with zone labels (OB / OS / MID for fast and medium, BULL / BEAR / NEUT for slow)
WPR Velocity — the rate of change of Fast WPR (FAST UP / RISING / FLAT / FALLING / FAST DOWN) — critical for timing entries within a move
WPR Alignment — whether Slow and Medium WPR are in the bull zone, bear zone, or neutral
Triple WPR — flags ALL OVERSOLD or ALL OVERBOUGHT when all three timeframes converge, with background color highlight
TREND STATE
Trend — current trend direction (BULLISH / BEARISH / UNDEFINED) with background color highlight
Trend Bars — the number of consecutive bars the current trend direction has been active
Price vs EMA — how far the current close is from the Basis EMA as a percentage, with directional color coding
CONFIDENCE
Bull Conf / Bear Conf — current confidence scores with tier labels (S-TIER / A-TIER / B-TIER / BELOW MIN)
Volume — current volume state (SPIKE / HIGH / NORMAL / DRY) with the volume ratio multiplier
TRADE STATUS
Position — current tracked position (LONG / SHORT / FLAT) with background highlight
Entry Price — the close price at which the active signal fired
Open P&L — live unrealized profit and loss in both price and percentage terms, color-coded green/red
WPR Exit Watch — warns ⚠ NEAR BULL EXIT or ⚠ NEAR BEAR EXIT when the Fast WPR is approaching the configured exhaustion level — giving you advance notice before the exit trigger fires
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ Identifying Choppy / Low-Quality Market Conditions
Knowing when not to trade is just as valuable as knowing when to enter. AlphaX Impulse Bands gives you multiple clear visual and dashboard cues that the market is in a low-quality state:
Visual cues to stand aside:
Bands are very wide and expanding — the dashboard Band Width reading is high and climbing. No active impulse is driving direction — the market is searching, not trending
Trend Cloud is thin or collapsing — when the cloud inner and outer converge, there is no structural trend backing any move. Wait for the cloud to separate and take on clear color
Freshness dashboard shows STALE — the last impulse has fully decayed and no new one has fired. Any price movement is low-energy and likely to reverse or stall
WPR Alignment shows NEUTRAL — neither the slow nor medium WPR are confirming a directional bias. Signals firing in this environment carry the lowest reliability
Rapid trend color switching — if candles are alternating rapidly between yellow-green and red, the system is detecting micro-trend flips. The cooldown will block most signals, but the underlying message is clear: this is a range, not a trend
No entry labels appearing despite trend flips — when the bands are crossing but no labels appear, the confidence engine and WPR gate are filtering them out. This is the system explicitly telling you: these setups do not meet the quality threshold
What to do:
Do not force entries — wait for a fresh impulse to register (Freshness dashboard turns FRESH with yellow-green highlight)
Wait for Band Width to compress into SQUEEZE territory — this signals energy is coiling for a directional move
Look for Triple WPR convergence on the dashboard — ALL OVERSOLD or ALL OVERBOUGHT are the highest-conviction pre-signal states
After a trend flip label, wait for the first ✦ retest signal before committing capital — the retest confirms the trend has real momentum behind it and is not a false start
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 How to Trade with AlphaX Impulse Bands — Step by Step
Step 1 — Read the Dashboard
Check Freshness: is the market FRESH or STALE?
Check Band Width: is it squeezing or expanding?
Check WPR Alignment: do the oscillators agree on direction?
If all three are neutral or negative → do not trade. Wait for setup conditions to develop.
Step 2 — Wait for a Trend Flip Label
A ▲ label below the bar (bull) or ▼ label above the bar (bear) sets your directional bias
Read the tier and confidence printed on the label. S-Tier is the strongest; B-Tier warrants smaller size
Do not enter directly on the label — the optimal entry comes next
Step 3 — Enter on Retest ( ✦ )
After the Signal Buffer period passes, watch for price to pull back into the Cloud Inner zone
When a ✦ diamond appears, this is the structured re-entry — a continuation setup at a technically superior price with the cloud now acting as confirmed dynamic support or resistance behind you
Place your stop loss beyond the retest level or just outside the opposite cloud boundary
Step 4 — Monitor with the Dashboard
Watch the WPR Exit Watch row — when it flashes ⚠ NEAR EXIT, begin preparing your exit
Watch Freshness — if it drops to FADING or STALE during your trade, the momentum behind the move is diminishing
Additional ✦ retest signals during the same trend are opportunities to add to your position or re-enter after a partial take-profit
Step 5 — Exit on ✕ Mark
A gray ✕ marker indicates either a confirmed trend flip or WPR exhaustion
Take partial or full profit
If no opposing trend label has appeared, wait for the next ✦ retest to confirm the trend is continuing before re-entering
Step 6 — Trend Ends
An opposing trend label (e.g., a ▼ label after you were long) confirms the trend has reversed
Close any remaining position from the prior trend
The new label resets the cycle — the dashboard Trade Status updates to the new position, and the Retest Engine resets its buffer for the new direction
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ Key Features
🔬 ATR-normalized impulse engine — consistent behavior across all instruments and timeframes, no manual recalibration needed
📈 Dual-layer volatility model — MAD for band texture, ATR for impulse normalization, combined into a single adaptive system
🌊 Freshness decay system — impulse strength and confidence degrade naturally over time, preventing stale signals from carrying full weight
☁ Adaptive Trend Cloud — breathes with volatility, tightens during fresh impulses, expands during uncertainty
📡 Triple WPR confirmation gate — Fast (8), Medium (21), and Slow (55) Williams %R must agree before signals fire
🏷 Tiered entry labels (S / A / B) with live confidence % — know the quality of every signal at a glance
✦ Intelligent retest engine — configurable buffer, cooldown, line extension, and width. Draws only meaningful retest levels, never spams
🧠 10-factor confidence scoring engine — freshness, impulse direction, WPR depth, timing, multi-timeframe, candle quality, volume, momentum, and penalty deductions
📊 26-row live dashboard — Impulse Engine, Oscillators, Trend State, Confidence, and Trade Status sections updated in real time
💹 Live Open P&L tracking — entry price and unrealized P&L displayed directly on the dashboard in price and percentage
⚠ WPR Exit Watch — advance warning before exhaustion exits fire, so you are never caught off guard
🎨 Cohesive dual-tone color theme — yellow-green for all bullish elements, red for all bearish elements, gray for neutral and exits
🔔 15 alert conditions — tiered entries, combined entries, exits, retests, Triple WPR states, freshness fade, and trend flips
⚙ Fully configurable — all periods, thresholds, multipliers, display toggles, colors, and filter modes are adjustable from the settings panel
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙ Settings Reference
Core Engine
Trend Length — EMA period for the basis line and cloud anchor (default: 19)
Impulse Lookback — bars over which the raw impulse move is measured (default: 5). Lower = more reactive
Impulse Decay — per-bar decay multiplier for impulse freshness (default: 0.97). Higher = impulses stay fresh longer
MAD Length — lookback for Mean Absolute Deviation calculation, controls band volatility sensitivity (default: 20)
Adaptive Bands
Band Min (Fresh Impulse) — tightest band multiplier applied during a fully fresh impulse (default: 1.5)
Band Max (Stale Impulse) — widest band multiplier applied when impulse has fully decayed (default: 2.2)
ATR Period — lookback for ATR-based impulse normalization (default: 14)
WPR Context
WPR Fast / Medium / Slow — three independent Williams %R periods (defaults: 8 / 21 / 55)
WPR Oversold / Overbought — extreme zone thresholds used by the gate and confidence engine (defaults: -82 / -18)
Signal Filters
Min Confidence % — minimum score required for a signal to be displayed (default: 25%)
Signal Cooldown — minimum bars between consecutive entry labels (default: 3)
Require Volume Confirm — when enabled, signals are blocked if current volume is below the Min Volume Ratio threshold
Min Volume Ratio — minimum volume relative to 20-bar average required when volume filter is active (default: 0.7×)
Require WPR Confirmation — when enabled, signals only fire when WPR agrees with the trend direction. On by default — this is the primary noise gate
Retest Engine
Show Retest Levels — toggle retest lines and ✦ markers on or off
Signal Buffer — bars to wait after a trend flip before the retest engine activates (default: 10)
Retest Cooldown — minimum bars between consecutive retest line draws (default: 55)
Retest Line Width — thickness of the horizontal retest lines (default: 2)
Retest Line Extend — how many bars forward the retest line projects (default: 60)
Exits
Exit on Trend Flip — when enabled, an opposing signal triggers an immediate exit marker
Exit on WPR Exhaustion — when enabled, WPR crossing the exit level triggers an exit marker
WPR Exit Bull (above) — Fast WPR level above which a long exit fires (default: -15)
WPR Exit Bear (below) — Fast WPR level below which a short exit fires (default: -85)
Min Bars Before Exit — minimum bars in trade before a WPR exhaustion exit can trigger (default: 3)
Display
Show Trend Cloud / Show Outer Bands / Color Bars / Show Entry Labels / Show Freshness Indicator — individually toggle each visual layer
Label Size — Tiny / Small / Normal
Dashboard
Show Dashboard — toggle the entire dashboard panel
Position — Top Left / Top Right / Bottom Left / Bottom Right
Dashboard Text — Tiny / Small / Normal
Colors
Bull Primary / Bright / Dim — the yellow-green family for all bullish elements
Bear Primary / Bright / Dim — the red family for all bearish elements
Neutral / Neutral Light — gray shades for exits, inactive states, and neutral conditions
Text Light / Dashboard BG — dashboard typography and background colors
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 Alert Conditions (15 total)
Tiered Entry Alerts
S-Tier Bull Impulse — bull signal with confidence 70%+
A-Tier Bull Impulse — bull signal with confidence 55–69%
B-Tier Bull Impulse — bull signal with confidence 35–54%
S-Tier Bear Impulse — bear signal with confidence 70%+
A-Tier Bear Impulse — bear signal with confidence 55–69%
B-Tier Bear Impulse — bear signal with confidence 35–54%
Combined Entry Alerts
Any Bull Impulse — any bull signal regardless of tier
Any Bear Impulse — any bear signal regardless of tier
Any Impulse Signal — any signal in either direction
Exit Alerts
Bull Exit — long position exit triggered
Bear Exit — short position exit triggered
Any Exit — exit in either direction
Retest Alerts
Bull Retest Level — a bullish retest level has been drawn
Bear Retest Level — a bearish retest level has been drawn
Any Retest — retest in either direction
Special State Alerts
Triple WPR Oversold — all three WPR timeframes simultaneously in oversold territory
Triple WPR Overbought — all three WPR timeframes simultaneously in overbought territory
Impulse Freshness Fading — freshness drops below 50%, signaling momentum decay
Trend Flip — a trend direction change has been detected
All alert messages include {{ticker}} and {{interval}} placeholders and are formatted for clean webhook integration.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 Recommended Settings by Instrument & Timeframe
The default configuration is optimized for XAUUSD and major forex pairs on M1–M15 :
Confidence threshold at 25% captures valid setups while filtering genuine noise at fast timeframes
WPR Confirmation Gate on by default — the primary protection against choppy market signals
Decay Rate at 0.97 — impulses fade over approximately 30 bars, suitable for intraday momentum moves
Band Min/Max at 1.5/2.2 — calibrated for gold and forex intraday volatility profiles
For other instruments or timeframes, adjust:
Higher timeframes (H1, H4, Daily) — increase Trend Length to 25–35, increase Confidence to 35–50%, increase Retest Cooldown to 100–150
Crypto (BTC, ETH) — increase Band Max to 2.8–3.5 to accommodate wider swings, increase ATR Period to 20
Indices (NAS100, US30, SPX500) — use defaults or slightly increase Impulse Lookback to 7–8 for smoother detection
More signals — reduce Min Confidence %, disable Require WPR Confirmation, reduce Cooldown
Fewer, cleaner signals — increase Min Confidence % to 40–55%, increase Signal Cooldown to 5–10, reduce Band Min to tighten the entry zone
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
👥 Who This Is For
📉 Trend traders and momentum followers — the adaptive band and freshness system is built specifically for riding directional moves with precision
🥇 Gold (XAUUSD) and forex scalpers — default settings tuned for intraday volatility on fast-moving instruments
📊 Index and crypto traders — the ATR normalization ensures the system adapts without manual recalibration across instruments
🧠 Systematic traders — the confidence scoring system provides a quantitative signal quality metric, not just visual arrows
📈 Traders who value clean charts — no indicator soup, no overlapping clutter. Every visual element serves a specific purpose
⚠ Traders who struggle with overtrading — the confidence filters, WPR gate, cooldown system, and freshness tracking physically prevent low-quality setups from appearing on the chart
🔄 Pullback traders — the retest engine was specifically designed to surface structured continuation entries within confirmed trends, not just initial breakout signals
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 Notes
All signals are confirmed on bar close — the indicator is non-repainting by design
The ATR normalization means the impulse threshold (1.0×ATR) is instrument-agnostic — no adjustment needed when switching between gold, forex, crypto, or indices
Maximum 500 labels and 500 lines are used — on very low timeframes with extended chart history, the oldest labels and retest lines may be automatically removed by PulseWire's rendering limits
The Band Width squeeze detection in the dashboard is a leading indicator of volatility expansion — SQUEEZE conditions frequently precede the strongest impulse moves
WPR Velocity displayed in the dashboard is particularly useful for timing exits within a move — FAST UP or FAST DOWN readings often precede exhaustion reversals
The Trade Status section tracks position direction from signal to exit within a single chart session — it does not connect to your broker or brokerage account
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ Disclaimer
This indicator is a technical analysis and visualization tool intended for educational and informational purposes only. It does not constitute financial advice or a recommendation to buy or sell any financial instrument. All signals are generated from historical and real-time price data using mathematical calculations — their accuracy or profitability is not guaranteed. Past performance of any signal type does not guarantee future results. Always conduct your own analysis, use proper risk management, and consult a licensed financial advisor before making any trading decisions. The author accepts no responsibility for any losses incurred from the use of this indicator.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Built for traders who need to know not just where the market is going — but how much energy is behind the move. Indicator

PSP zones with validationThis indicator implements a structured cross-asset correlation signal model (PSP — Price Structure Parity) combined with dynamic zone-based market representation and invalidation logic.
Unlike traditional correlation tools that only compare directional candle agreement between two assets, this script transforms correlation events into actionable market zones, while also managing their lifecycle through objective invalidation rules.
🔍 Core Concept
PSP (Price Structure Parity) identifies situations where:
The current asset shows a bullish candle while the reference asset is bearish, or vice versa (direct mode)
Or both assets move in the same direction under inverse correlation logic
These conditions highlight temporary structural dislocations between correlated instruments, often driven by liquidity imbalance or delayed price response.
🧠 How It Works
1. Cross-Asset Structure Comparison
The script compares:
Current chart candles
Reference symbol candles (user-defined)
It evaluates directional alignment or divergence depending on selected mode:
Direct correlation mode
Inverse correlation mode
2. PSP Signal Generation
A PSP event is triggered when a structural mismatch occurs between the two assets based on candle direction.
Signals are classified into:
Bullish PSP
Bearish PSP
3. Zone Construction (Key Feature)
Instead of simply coloring candles, each PSP event generates a price zone, representing:
The full body range of the signal candle
A contextual imbalance area where correlation deviation occurred
Zones remain active on the chart and provide a visual representation of where structural inefficiencies were identified.
4. Invalidation Mechanism
Each zone has a lifecycle and is automatically removed when invalidated:
Bullish zones are invalidated when price closes below the zone
Bearish zones are invalidated when price closes above the zone
This ensures only active and relevant market structures remain visible, eliminating visual noise and outdated signals.
📊 Key Features
Cross-asset correlation detection (PSP model)
Direct and inverse correlation modes
Zone-based visualization instead of single-bar signals
Automatic invalidation of broken structures
Clean and low-noise chart output
Suitable for multi-asset analysis
⚙️ Inputs
Reference Symbol – asset used for correlation comparison
Inverse Correlation Mode – flips correlation logic
Color Theme Selector – customizable visual styles
Opacity Control – zone transparency adjustment
🧭 How to Use
This indicator is best applied in:
Correlated crypto pairs (e.g., BTC/ETH, BTC/ALTS)
Index vs single asset analysis
Liquidity divergence identification
Typical workflow:
Wait for PSP zone creation
Observe price reaction inside the zone
Monitor invalidation level for structural confirmation
Use zones as context for entries or confirmations
⚠️ Notes
This indicator does not repaint historical PSP zones
Signals are based on closed candle structure
Best results occur when used with correlated liquid assets
🇷🇺 Description (RU — дополнительный перевод)
Этот индикатор реализует модель корреляционных структур PSP (Price Structure Parity) и превращает расхождения между активами в торговые зоны ликвидности.
В отличие от стандартных индикаторов корреляции, он не просто сравнивает направление свечей, а формирует:
структурные зоны дисбаланса
визуальные области интереса
автоматическую инвалидацию сломанных структур
🧠 Логика работы
Индикатор сравнивает:
свечи текущего графика
свечи выбранного референс-актива
При выявлении расхождения формируется PSP-сигнал:
бычий
медвежий
📊 Зоны
Каждый сигнал превращается в зону (box), которая показывает:
область структурного дисбаланса
потенциальную зону реакции цены
❌ Инвалидация
Зона удаляется при:
пробое вниз (для бычьей зоны)
пробое вверх (для медвежьей зоны)
🎯 Применение
Лучше всего работает:
на криптовалютах с высокой корреляцией
в анализе BTC vs альткоины
при поиске реакций от дисбаланса Indicator

Liquidity sweep divergence (SMT) This script implements a refined version of SMT (Smart Money Technique) divergence, focused specifically on liquidity sweeps between correlated assets rather than simple structural divergence.
Use it on one market:
FOREX: EURUSD + DXY (or GBPUSD + DXY)
CRYPTO: BTC+ETH (BTC + TOTAL3, ETH + TOTAL3)
INDICES: ES + NQ
COMMODITIVES: XAU + XAG (GOLD+SILVER)
Unlike traditional SMT indicators that rely on comparing consecutive swing highs/lows (HH/LL logic), this script detects true liquidity events, where one asset takes liquidity (sweeps a previous swing) while the other fails to do so.
🔍 Core Concept
SMT divergence in this script is defined as:
Bearish SMT
The main chart sweeps a previous swing high (liquidity taken)
The second asset fails to sweep its corresponding swing high
Bullish SMT
The main chart sweeps a previous swing low
The second asset fails to do the same
This reflects asymmetry in liquidity behavior, often interpreted as a sign of weakening trend continuation and potential reversal.
⚙️ How It Works
The script uses:
1. Pivot-based swing detection
Uses confirmed pivots (ta.pivothigh / ta.pivotlow)
Eliminates noise and repaint issues from naive fractal logic
2. Cross-asset synchronization
Swings between assets are matched using a configurable bar offset tolerance
Ensures meaningful comparison between structurally aligned points
3. Liquidity sweep detection
Detects when price:
Breaks a previous swing level (high/low)
Optionally closes back inside (ICT-style wick sweep)
4. Signal filtering
To reduce false SMT signals, the script includes:
ATR-based minimum move filter
Optional wick confirmation (true liquidity grab)
No multi-swing brute-force scanning (only relevant structure is used)
🎯 What Makes This Script Unique
Focuses on liquidity sweeps, not just HH/LL divergence
Avoids common SMT noise from weak structural comparisons
Uses minimal and efficient logic (O(1)), no heavy loops
Produces clean and trade-relevant signals, not visual clutter
Designed with algorithmic trading compatibility in mind
📊 Visual Features
Clean SMT labels (Bullish / Bearish)
Optional connecting lines showing the sweep move
Background highlighting for quick contextual awareness
Transparent styling to avoid chart obstruction
⚙️ Inputs
Second Asset – symbol used for SMT comparison
Pivot Length – controls swing sensitivity
Max Sync Offset – allowed mismatch between swing points (in bars)
Wick Sweep Filter – require close back inside level (ICT-style)
ATR Filter – minimum sweep strength
Show Lines – toggle visual connections
🧠 How to Use
This indicator is best used in:
Reversal zones
Liquidity pools (equal highs/lows, prior highs/lows)
Session highs/lows (London / NY)
Typical workflow:
Identify SMT signal
Wait for confirmation:
Break of structure (BOS)
Displacement move
Execute entry in direction of SMT
⚠️ Notes
Signals appear at the moment of liquidity sweep, not at pivot formation
This script is non-repainting, as it uses confirmed pivots
SMT is not a standalone strategy — use with market structure
🌍 Дополнительно (RU — для твоей аудитории)
Этот индикатор реализует правильный SMT, основанный не на HH/LL, а на снятии ликвидности.
Ключевая идея:
Один актив забирает ликвидность (пробивает свинг)
Второй — нет
→ это и есть настоящий SMT
В отличие от большинства индикаторов:
нет мусорных сигналов
нет перебора всех свингов
используется только актуальная структура
Лучше всего работает:
на хаях/лоу сессий
на уровнях ликвидности
в связке с BOS / FVG Indicator

SNP420_claudos v1.0Indicator Overview (Work in Progress)
A technical analysis indicator enhanced with a machine learning model. Feedback is welcome.
Chart Elements & Signal Logic
BUY (green label up) – Green arrow below the candle: Long entry signal based on EMA bullish crossover + confirmed trend + RSI confirmation.
★ BUY (strong green) – Brighter green: High-confidence long signal, additionally near support → improved risk-to-reward ratio.
SELL (red label down) – Red arrow above the candle: Short entry signal based on EMA bearish crossover + confirmed trend + RSI confirmation.
★ SELL (strong red) – Brighter red: High-confidence short signal, additionally near resistance.
EXIT (gold ×) – Gold cross: Close position when opposite EMA crossover occurs or RSI reaches extreme levels.
Take Profit (TP) – Green dashed line: Target level, typically set at 2× the Stop Loss distance.
Stop Loss (SL) – Red dashed line: Risk level, typically set at 1.5× ATR.
Entry Line – Solid blue line: Trade entry price.
Dashboard (Top Right Panel)
Trend – Displays current market direction: UP / DOWN / FLAT.
ATR – Shows current volatility in pips.
RSI – Indicates momentum strength (Red > 70 = overbought, Green < 30 = oversold).
Support – Nearest support level below the current price.
Resistance – Nearest resistance level above the current price.
Next Action – Suggested action: BUY / SELL / WAIT.
TP – Recommended Take Profit level.
SL – Recommended Stop Loss level.
Summary
This indicator combines trend-following logic (EMA crossovers), momentum confirmation (RSI), volatility-based risk management (ATR), support/resistance context, and a machine learning layer for filtering and prioritizing signals. The objective is to provide clear, actionable trade signals with predefined risk parameters and improved trade selection. Indicator

Backtest Template [Backtest Terminal]Overview — What Is This Script?
Backtest Template (BTT) is an open-source strategy framework designed to let traders test their own indicator logic without building the backtest infrastructure from scratch. Instead of writing stop loss management, session filters, alert systems, and trailing stops yourself, BTT handles all of that automatically. You bring your signal idea — BTT handles the rest.
The template is designed for all markets: stocks, Forex, gold (XAUUSD), crypto spot, and crypto futures. It ships with a pre-built Moving Average Cross trigger and Moving Average Trend filter as working examples that you replace with your own logic.
What Makes It Original
Most backtest templates on PulseWire are fixed strategies that test one specific indicator. BTT introduces a User Zone architecture: a single clearly marked section near the top of the script where the user replaces one pre-built trigger and one pre-built filter with their own Pine Script code. The engine below reads four fixed variable names and runs automatically — the user never needs to touch strategy orders, stop management, session logic, or the alert system.
This design means a complete beginner can run their first backtest by changing fewer than ten lines of code, while an advanced user can plug in arrays, multi-timeframe calculations, or complex signal logic and the engine handles it identically.
What The Engine Handles Automatically
Once your signal is connected through the User Zone, the following run without any additional code:
Stop Loss and Take Profit — three unit modes: percentage of price, fixed points (Forex / CFD), or fixed dollar amount (crypto / stocks)
Stop Mode — Fixed (original level), Trailing (follows price), or Breakeven (moves to entry price)
Trailing Stop — configurable distance and activation offset, each with matching %, point, and dollar unit inputs consistent with your Stop/Target Mode selection
Breakeven Stop — configurable activation offset in the same unit system
Disable Take Profit — when using Trailing mode, an optional toggle removes the fixed TP so the trailing stop becomes the sole exit
Trade Direction — Long only, Short only, or Both
Backtest Date Range — start and end date inputs
Trading Day Filter — enable or disable any day of the week
Trade Session Hours — exchange server time filter (HHMM-HHMM format)
Trade Windows — four configurable local-time windows each independently set to Off, Blackout, or Trade Only mode with full timezone support
Entry Signal Markers — green and red triangles that only appear when all conditions pass, so chart visuals exactly match what the strategy trades
App Alerts — pre-formatted alert messages with ticker, direction, stop and target prices
Custom JSON Alerts — four separate input fields for webhook bot integration, one per order event
How To Use It — Quick Start
Open the script in Pine Editor
Find the User Zone near the top — it is clearly marked with a visual border and is the only section you need to edit
Replace the pre-built Moving Average Cross trigger block with your own indicator signal, assigning your long condition to userLong and your short condition to userShort — always add and confirmed to both
Replace the pre-built Moving Average Trend filter block with your own market condition, assigning to userFilterLong and userFilterShort
Add to chart and open Strategy Tester
User Zone Contract
The engine connects to your signal through exactly four variables. Do not rename them:
userLong → true on the bar you want to enter Long
userShort → true on the bar you want to enter Short
userFilterLong → true when Long entries are allowed
userFilterShort → true when Short entries are allowed
Always add and confirmed (barstate.isconfirmed) to userLong and userShort. This ensures the signal locks in only when the bar closes, preventing signals from changing value mid-bar.
Setting userFilterLong = true disables the Long filter entirely. Setting it to a condition like close > ta.ema(close, 200) means Long entries are only allowed when price is above that EMA. Long and Short filters are independent — you can filter one direction while leaving the other open.
Stop Loss and Take Profit — Three Unit Modes
The Stop/Target Mode setting controls how SL and TP distances are measured:
% (Percentage) — distance as a percentage of price. Suitable for stocks and crypto. Stop source can be the close price or the candle High/Low. Take profit is derived from stop distance × Risk:Reward ratio.
Point - Forex / CFD — distance in instrument ticks (syminfo.mintick). Suitable for XAUUSD, EURUSD, and other Forex/CFD instruments. Example: 100 points on EURUSD (mintick = 0.00001) = 1 pip.
Dollar - Crypto / Stock — fixed dollar distance from entry. Suitable for BTCUSD and US stocks.
All trailing and breakeven offset inputs follow the same three-unit system. Use the , , or input that matches your selected Stop/Target Mode. Using the wrong unit input will result in a mismatch between your intended stop distance and the actual calculation.
Stop Mode — Fixed, Trailing, Breakeven
Fixed — stop loss stays at the original level from entry until hit or TP is reached
Trailing — stop follows price at a configurable distance, locking in profit as price moves. The trailing activation offset controls how far price must move before trailing begins (shown as a yellow line on chart). Enable "Disable Take Profit" to let the trailing stop manage the entire exit without a fixed TP ceiling
Breakeven — stop moves to the exact entry price once price moves a configurable distance in your favour (shown as a white line on chart)
Trade Windows — Off, Blackout, Trade Only
Each of the four time windows (Tokyo, London, New York, Custom) has an independent mode selector:
Off — this window has no effect on entries (default for all four)
Blackout — block all new entries while the current time is inside this window. Useful for avoiding high-volatility opens or news events
Trade Only — only allow new entries while the current time is inside this window. Useful for targeting specific sessions or news event windows such as NFP or Fed announcements
All times are entered in your local timezone selected from the My Timezone dropdown. The engine converts to UTC internally.
Logic rules:
Multiple Blackout windows use AND NOT logic — entries are blocked if the current time is inside any Blackout window
Multiple Trade Only windows use OR logic — entries are allowed when the current time is inside any one Trade Only window
If no windows are set to Trade Only, there is no time restriction on entries (same as all Off)
Blackout and Trade Only can be combined: for example, set London to Trade Only and New York to Blackout to only trade the London session while avoiding NY volatility
Trading Day and Session
Trading Days — enable or disable any individual day of the week. Disabling a day prevents new entries — open positions are still managed on disabled days.
Trade Session — set allowed hours in exchange server time (HHMM-HHMM format). Default 0000-0000 means 24 hours with no restriction. This uses exchange server time, not your local time.
Alert System — App Alert and Custom JSON
How to activate alerts:
Set the alert mode to App Alert or Custom in the settings panel
Create a PulseWire alert on the chart (right-click → Add Alert)
In the alert message box, paste exactly: {{strategy.order.alert_message}}
This placeholder delivers the correct message for each order event automatically
App Alert mode sends a pre-formatted text message for each event:
ENTRY LONG : {price}
STOP LOSS : {stop level}
TARGET PRICE : {target level}
Exit alerts include a PNL percentage. No additional setup is required.
Custom mode — JSON webhook for bot integration:
Four separate input fields accept a single-line JSON string — one per order event:
Long Entry — fires when a Long position opens
Long Exit — fires when a Long position closes (TP, SL, or trailing stop)
Short Entry — fires when a Short position opens
Short Entry — fires when a Short position opens
Short Exit — fires when a Short position closes (TP, SL, or trailing stop)
Paste your JSON as a single line into each field. PulseWire's input.string stores the content as a single line regardless of how it was formatted, making it safe for all webhook receivers.
Settings Guide — Commission, Slippage, Margin
Default values are conservative starting points. Edit the strategy() declaration at the top of the script to match your broker and market. Detailed inline comments in the script explain every parameter.
Commission defaults (0.1% per side, 2 ticks slippage):
Stocks zero-commission broker → 0.0%
Stocks SET Thailand → 0.16%
Crypto spot (Binance) → 0.1%
Crypto futures (Binance taker) → 0.04%
XAUUSD $7 per standard lot → change commission_type to strategy.commission.cash_per_contract and commission_value to 0.07 ($7 ÷ 100 oz)
Position sizing (default 2% of equity):
For lot-based markets (Forex, XAUUSD) change default_qty_type to strategy.fixed and default_qty_value to the number of units. On XAUUSD: 1 unit = 1 oz, so 0.01 lot = value of 1, 0.10 lot = value of 10, 1.00 lot = value of 100.
Margin/leverage simulation:
Both margin_long and margin_short are 0 by default (no margin simulation). Formula: margin value = 100 / leverage ratio. Example: 1:500 leverage → margin_long = 0.2. These values cannot be set from the input panel — edit them directly in the strategy() call.
Repainting Warning
Before connecting any indicator to the User Zone, verify it does not repaint. A repainting indicator places signal arrows on past bars using data from future bars that did not exist at the time — backtest results will look excellent while live trading produces nothing like it.
How to check using Bar Replay:
Open the indicator on your chart and find a signal arrow in the past
Open Bar Replay and rewind to before that signal appeared
Step forward one bar at a time using Shift + →
Do not use the Play button (Shift + ↓) — bars move too fast to catch a disappearing arrow
If the arrow appears and stays permanently → safe to use. If the arrow appears then disappears or moves as you advance → repainting confirmed, do not use in a strategy.
How to check using Alert Log:
Enable the indicator's built-in alert, wait for it to fire on a live bar, then compare the alert log entry to the signal arrow on the chart. If they do not match in timing or direction → repainting.
Disclaimer
This script is published for educational purposes only. It is a framework and template — not a complete trading system and not financial advice. Backtest results shown in Strategy Tester reflect historical data only and do not guarantee future performance. Past performance is not indicative of future results.
All trading involves significant risk of loss. Do not trade with money you cannot afford to lose. The results produced by this template depend entirely on the signal logic the user provides — the author accepts no responsibility for any trading decisions made using this script or any modifications of it.
Before using any strategy in live trading, you should fully understand how it works, verify its logic independently, and test it thoroughly on a demo account. Always consult a qualified financial advisor before making investment decisions.
The pre-built Moving Average Cross trigger and Moving Average Trend filter included in the User Zone are provided as examples only — they are not recommendations to trade any specific method. Strategy

SmartFlow Position SizerSmartFlow Position Sizer automatically calculates your lot size based on account balance, risk percentage, and stop loss distance. Just click twice — Entry and SL — and let the math do the work. No spreadsheets. No guessing. Trade with discipline.
═══════════════════════════════════════
█ WHAT IT DOES
This indicator solves the most common mistake in trading: incorrect position sizing .
You set your account balance and risk %. Then click your Entry and Stop Loss directly on the chart. The indicator instantly calculates:
Lot size — based on your risk tolerance and SL distance
Take Profit — auto-calculated from your R:R ratio
P&L in USD — expected profit and max loss displayed
ATR volatility — current vs average ATR to gauge market conditions
Long/Short auto-detection — determined by Entry vs SL position
═══════════════════════════════════════
█ HOW TO USE
Step 1 — Add the indicator to your chart
Step 2 — Click on the chart to set your Entry Price (1st click)
Step 3 — Click again to set your Stop Loss (2nd click)
That's it. The table and SL/TP zones appear immediately.
Drag the Entry or SL line to adjust — all calculations update in real time
Change R:R ratio in settings to move the TP level
Long or Short is detected automatically — no manual selection needed
Works in future (empty) chart areas — plan trades before price arrives
═══════════════════════════════════════
█ TABLE DISPLAY
The on-chart table shows everything at a glance:
ATR — current ATR value with period
ATR Avg — average ATR for volatility comparison
Vol Ratio — current ATR / average ATR (orange when elevated)
Balance — your account balance in USD
Risk % — max loss percentage per trade
Entry — entry price with LONG/SHORT label
Lot — calculated position size
R:R — risk-to-reward ratio
TP — take profit price and expected profit in USD
SL — stop loss price and max loss in USD
═══════════════════════════════════════
█ VISUAL ZONES
White line — Entry price
Red zone — SL area (loss zone) with dollar amount on label
Green zone — TP area (profit zone) with dollar amount on label
Zones are drawn between your click positions, not fixed to the latest bar. This means you can place Entry and SL anywhere on the chart — including future empty areas — to plan trades visually before price arrives.
═══════════════════════════════════════
█ LOT CALCULATION FORMULA
Lot = (Balance × Risk%) / (SL Distance × Contract Size)
Example: $10,000 balance, 2% risk, SL distance = $20, contract size = 100
→ Lot = ($10,000 × 0.02) / ($20 × 100) = 0.10 lots
The result is rounded down to the nearest 0.01 to avoid exceeding your risk limit.
═══════════════════════════════════════
█ SETTINGS
Account Settings
Balance (USD) — Your account balance. Default: 10,000
Risk per Trade (%) — Max loss per trade. Default: 2%
Contract Size (per Lot) — MT5 contract size. XAUUSD = 100. Adjust for your broker
Take Profit
R:R Ratio — TP is calculated as SL distance × this value. Default: 1.5
ATR Volatility
ATR Period — Default: 14
ATR Average Period — For comparing current volatility vs average. Default: 50
Display
Table position (4 corners), text size, SL/TP zone toggle
═══════════════════════════════════════
█ NOTES
Works on any instrument — Gold, Forex, Crypto, Indices
Designed for MT5/MT4 lot sizing — adjust Contract Size for your broker
ATR volatility ratio turns orange when current ATR exceeds 1.5x the average — a visual warning that volatility is elevated
All calculations use USD-denominated accounts
Drawing positions use time-based coordinates, enabling placement in future chart areas
Indicator

[ A L P H A X ] Institutional Confluence Suite Institutional Confluence Suite — Volume Profile · Order Blocks · FVG · MTF Matrix · Flow Analysis · Smart Signals
The AlphaX Institutional Confluence Suite is a professional-grade multi-layer analysis system built around one core principle: no single tool gives you an edge — confluence does . This indicator fuses six independent institutional analysis engines into a unified real-time dashboard, scoring each bar from 0 to 100 and surfacing only the setups where everything lines up. Designed to be used alongside AlphaX PRIME for the highest-probability entries in the AlphaX ecosystem.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📸 What You See On The Chart
POC line — bright yellow-green horizontal line at the highest-volume price of the lookback range
Value Area fill — soft green shaded zone between VAH and VAL (68% of volume)
HVN box — highlighted rectangle at the most significant high-volume node
Order Block lines — dashed orange (bullish) and red (bearish) lines marking institutional order zones
FVG boxes — translucent green (bullish) and red (bearish) rectangles where price left imbalance gaps
Liquidity Sweep triangles — small triangles marking stop hunts above swing highs or below swing lows
BOS dots — tiny circles marking confirmed breaks of market structure
Signal triangles — sized by tier (S / A / B), colored by direction — pure triangle up for bull, triangle down for bear. No text, no clutter.
Confluence Dashboard — real-time panel showing every engine's status, individual scores, bias direction, and final tier rating
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔬 The Six Engines — How Each One Works
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1 ─ Volume Profile (VPVR) — Where Is The Real Money?
The Volume Profile calculates exactly how much volume traded at every price level across your configured lookback window. This is the same tool institutional desks use to identify where liquidity has accumulated.
Point of Control (POC) — the single price level with the highest traded volume. Price is magnetically drawn to the POC and tends to reverse or consolidate around it. Trading at the POC means you are operating at the most contested price in the range.
Value Area High / Low (VAH / VAL) — the price band containing 68% of all volume. Prices inside the value area are "fair" to the market. Prices outside it are either discounts (below VAL) or premiums (above VAH) — and both tend to revert.
High Volume Node (HVN) — the densest cluster of volume outside the POC. HVNs act as strong support and resistance because large orders were filled there. When price approaches an HVN, expect slower movement and potential reversal.
Scoring contribution: up to 20 points
Full 20 points when price is within 0.5% of the POC. Scaled down with distance.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2 ─ Order Blocks — Institutional Footprints
Order Blocks are the last candle before a strong impulsive move — the candle where an institution placed a large directional order. When price returns to that zone, the institution defends its position, creating a high-probability reaction.
Bullish Order Block — a bearish candle immediately followed by a strong bullish breakout. The low of that bearish candle is where buy orders were placed. When price returns to this zone, look for long entries.
Bearish Order Block — a bullish candle immediately followed by a strong bearish breakdown. The high of that bullish candle is where sell orders were placed. When price returns, look for short entries.
Strength Rating — each OB is scored by the momentum of the move that followed it. Higher strength = more institutional conviction = stronger expected reaction on revisit.
IN ZONE ✓ — the dashboard highlights when price is currently inside an active order block, making the setup immediately actionable.
Scoring contribution: up to 20 points
Full 20 points when price is inside the OB zone. Scaled by proximity.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
3 ─ Fair Value Gaps (FVG) — Price Imbalance Zones
A Fair Value Gap is created when price moves so fast that no two-sided trading occurs — leaving a "gap" in the market that price statistically tends to return and fill. FVGs are one of the most powerful short-term magnets in price action analysis.
Bullish FVG — the low of candle N+2 is above the high of candle N, leaving an unfilled zone below current price. Price tends to pull back into this gap before continuing higher.
Bearish FVG — the high of candle N+2 is below the low of candle N, leaving an unfilled zone above current price. Price tends to rally into this gap before continuing lower.
Only unfilled FVGs are displayed — the indicator automatically removes gaps once price has traded through them.
A minimum size filter (configurable as an ATR multiple) prevents tiny, insignificant gaps from cluttering the chart.
Dashboard contribution: FVG count display (Bull/Bear active gaps)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
4 ─ Liquidity Sweeps — Stop Hunts & Reversals
Liquidity Sweeps occur when price briefly breaks a key swing high or low — triggering stop losses clustered there — before immediately reversing. This is the market's most reliable short-term reversal pattern because it is driven by mechanics, not sentiment.
Bullish Sweep — price dips below a recent swing low (triggering stops), then closes back above it. The stops have been hunted. Price is now positioned to move higher with less resistance.
Bearish Sweep — price briefly spikes above a recent swing high (triggering stops), then closes back below it. The squeeze is complete.
Sweeps appear as small triangles on the chart and also feed into the signal generation logic — a sweep in the direction of overall confluence is one of the strongest entry triggers available.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
5 ─ Multi-Timeframe Confluence Matrix — Are All Timeframes Aligned?
The MTF Matrix queries six timeframes simultaneously — M1, M5, M15, H1, H4, and D1 — and evaluates price position relative to both the 50 EMA and 200 EMA on each. Higher timeframes are weighted more heavily because they represent more significant institutional positioning.
Each timeframe receives a directional score based on whether price is above or below its EMAs
The 200 EMA carries 1.5× the weight of the 50 EMA — macro structure matters more than short-term positioning
Higher timeframes (H4, D1) carry 3–4× the weight of lower timeframes (M1, M5)
The aggregate score is expressed as a percentage from −100% (fully bearish) to +100% (fully bullish)
The dashboard shows each timeframe's arrow (▲ / ▼ / —) so you can instantly see where alignment breaks down
Scoring contribution: up to 20 points
Full 20 points when MTF alignment matches the price-POC relationship (e.g., fully bullish AND price is above POC).
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
6 ─ Institutional Flow — Volume Delta & Divergence
The Flow engine estimates the directional bias of volume on each bar using the close position within the bar's range — a proxy for buy-side vs. sell-side pressure. This is then smoothed to produce a clean directional flow signal and tracked for divergence against price.
Bullish Flow — smoothed delta is positive and rising. Buyers are in control of order flow.
Bearish Flow — smoothed delta is negative and falling. Sellers are dominating.
Bullish Divergence — price makes a lower low but flow makes a higher low. Sellers are losing conviction on the new lows — a bullish reversal is building.
Bearish Divergence — price makes a higher high but flow makes a lower high. Buyers are losing steam at the new highs — a bearish reversal is building.
Divergence signals are highlighted with a ⚠ warning in the dashboard and receive bonus points in the confluence score.
Scoring contribution: up to 20 points
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
7 ─ Market Structure — BOS & CHoCH
The Market Structure engine tracks the sequence of swing highs and swing lows to determine whether the market is in a bullish or bearish structural trend, and detects when that structure breaks.
Break of Structure (BOS) — a confirmed break of the most recent swing high (bullish BOS) or swing low (bearish BOS) in the direction of the existing trend. This confirms trend continuation.
Change of Character (CHoCH) — a BOS that occurs against the current trend direction, signaling a potential trend reversal. The market has changed its behavior.
Structure trend (bullish / bearish / undefined) is displayed in the dashboard and contributes to both the confluence score and the directional bias vote.
Scoring contribution: up to 20 points
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🧠 Confluence Scoring System — 0 to 100
Every bar is scored in real time by summing contributions from all six engines:
Volume Profile (POC proximity) — up to 20 points
Order Block (zone proximity) — up to 20 points
MTF Alignment — up to 20 points
Institutional Flow — up to 20 points
Market Structure — up to 20 points
Score Tiers:
S-TIER PRIME (80–100) — All or nearly all engines aligned. The highest probability setup available. Strong entry zone. Large triangle marker on chart.
A-TIER HIGH (65–79) — Most engines aligned with minor divergence. High quality setup. Medium triangle.
B-TIER MODERATE (50–64) — Partial alignment. Acceptable for experienced traders, prefer to wait for improvement. Small triangle.
C-TIER WEAK (30–49) — Insufficient alignment. No signal fires. Wait for confluence to build.
NO SETUP (0–29) — Do not trade. Multiple engines are contradicting each other.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Signal Generation — When Does A Triangle Appear?
Signals require ALL of the following to be true simultaneously:
Confluence score meets or exceeds your configured minimum (default: 60/100)
Directional bias vote is clear — majority of engines agree on direction (MTF, flow, structure, divergence all cast votes)
A trigger event fires — either a Liquidity Sweep in the signal direction, OR a Break of Structure + bullish/bearish flow confirmation
Signal cooldown has elapsed — prevents repeated signals on consecutive bars
This means triangles are rare and meaningful — not every bar. When one appears, every major confluence factor has agreed on the same direction at the same time.
Triangle size = tier:
Large triangle = S-Tier (score ≥ 80) — highest conviction
Medium triangle = A-Tier (score ≥ 65) — strong setup
Small triangle = B-Tier (score ≥ 50 but < 65) — moderate setup
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 How To Trade — Step By Step
Step 1 — Check The Dashboard For Context
Open the dashboard panel. Read the OVERALL MTF alignment first — are all timeframes pointing the same direction?
Check the SIGNAL BIAS row — is the directional vote clear or split?
Check the SCORE — are you at B-Tier or better? If the score is below 50, no signal will fire and you should wait.
Step 2 — Identify The Key Level
Is price near the POC? Near the VAH or VAL? Inside an Order Block? Near an unfilled FVG?
The more of these levels that overlap at the same price, the stronger the potential reaction zone.
The ideal setup is price approaching a POC + OB overlap from the correct direction.
Step 3 — Wait For The Trigger
Watch for a Liquidity Sweep triangle (small triangle from the sweep engine) at or near your identified level.
Or watch for a BOS dot confirming that structure has broken in your direction.
Either of these is the "ignition" event that tells you momentum has shifted.
Step 4 — Enter On The Signal Triangle
When a large (S-Tier) or medium (A-Tier) signal triangle appears, this is your primary entry.
The triangle has already confirmed: score threshold met, bias agreed, trigger fired, cooldown clear.
Enter in the direction of the triangle. For bullish triangles (▲), go long. For bearish triangles (▼), go short.
Step 5 — Place Your Stop Loss
For long entries: stop below the Order Block low, or below the VAL, whichever is closer.
For short entries: stop above the Order Block high, or above the VAH.
Use the FVG zones as your first take-profit target — price tends to fill gaps before continuing.
Step 6 — Manage The Trade
Watch the dashboard for any shift in the SIGNAL BIAS or a sudden drop in confluence score.
If the score drops below 40 during your trade, consider reducing position or tightening your stop.
If an opposing signal triangle appears, close the trade — the confluence has flipped direction.
Step 7 — Know When NOT To Trade
Score below 50: no setup — wait.
MTF matrix showing mixed signals (some ▲, some ▼ across timeframes): market is indecisive — wait.
SIGNAL BIAS showing "— NEUTRAL": the engines disagree on direction — wait.
No active OB detected and price is far from POC: no institutional level nearby — wait.
FVG shows active gaps above AND below price: the market is caught between two magnets — wait.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🛡 Used As A Filter — Pairing With AlphaX PRIME
The Confluence Suite is designed to work alongside AlphaX PRIME as a two-layer system:
PRIME generates precise entry triggers — the timing layer
CONFLUENCE provides the context and quality filter — the intelligence layer
The three rules:
PRIME signal + S or A-Tier confluence = take the trade at full size
PRIME signal + B-Tier confluence = reduce size or wait for score to improve
High confluence zone + no PRIME signal yet = pre-position alert — watch for PRIME to trigger
PRIME signal + score below 50 = skip — confluence does not support the entry
This pairing eliminates the two biggest trading mistakes: entering good signals at bad locations, and entering bad signals at good locations.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ Key Features
📊 Live Volume Profile (VPVR) with POC, Value Area (VAH/VAL), and High Volume Node detection
🟧 Institutional Order Block detection with strength scoring and zone proximity alerts
⬜ Fair Value Gap detection with automatic fill tracking — only unfilled gaps displayed
🌊 Liquidity Sweep detection — identifies stop hunts at swing highs and lows
🔢 Six-timeframe MTF matrix (M1 / M5 / M15 / H1 / H4 / D1) with dual-EMA scoring and higher-TF weighting
📈 Institutional Flow engine — volume delta proxy with divergence detection
🏗 Market Structure tracking — BOS and CHoCH with trend state memory
🧠 Real-time confluence scoring (0–100) across all engines simultaneously
🎯 S / A / B tier signal system — triangle size reflects setup quality
📋 Directional bias vote — majority-rules engine agreement required for signal
⏱ Configurable signal cooldown — prevents consecutive duplicate signals
🔔 Tier-based alerts — S / A / B tier bull and bear alerts fire independently for custom notification routing
🎨 Full AlphaX color theme — yellow-green for bullish, red for bearish, amber for caution, gray for neutral
⚙ Fully configurable — every engine can be independently enabled or disabled
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙ Settings Reference
Volume Profile
Enable Volume Profile — master toggle
Visible Range Lookback — number of bars used to build the profile (default: 100)
Profile Rows — price resolution of the profile (default: 24)
Show POC / Value Area / HVN — individual visibility toggles
Value Area % — percentage of volume defining the value area (default: 68%)
Order Blocks
Enable Order Block Detection — master toggle
OB Lookback Period — bars to scan for order block candles (default: 20)
Show Bullish / Bearish OB — individual direction toggles
OB Extend Bars — how far right the OB lines extend (default: 20)
Fair Value Gaps
Enable FVG Detection — master toggle
FVG Min Size (ATR multiple) — minimum gap size to qualify (default: 0.3× ATR)
FVG Extend Bars — how far right boxes extend (default: 30)
Show Bullish / Bearish FVG — individual direction toggles
Liquidity Sweeps
Enable Liquidity Sweep Detection — master toggle
Swing Lookback — pivot lookback for identifying swing highs/lows (default: 20)
Sweep Threshold — sensitivity for detecting the sweep and close-back (default: 0.5 ticks)
MTF Confluence Matrix
Enable MTF Matrix — master toggle
Include M1 / M5 / M15 / H1 / H4 / D1 — individual timeframe toggles
Institutional Flow
Enable Flow Analysis — master toggle
Flow Period — EMA period for delta smoothing (default: 14)
Flow Smoothing — SMA period applied after EMA (default: 3)
Market Structure
Enable Market Structure — master toggle
Structure Lookback — bars used for swing detection context (default: 50)
Signals
Enable Signal Markers — master toggle for triangle plotting
Min Confluence Score to Plot — minimum score required for a triangle to appear (default: 60)
Signal Cooldown (bars) — minimum bars between consecutive signals (default: 3)
Dashboard
Show Confluence Dashboard — master toggle
Dashboard Position — Top Right / Top Left / Bottom Right / Bottom Left
Compact Mode — hides secondary rows for a smaller panel footprint
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 Alert Conditions
S-Tier Bull Signal — highest quality bullish confluence (score ≥ 80)
A-Tier Bull Signal — strong bullish confluence (score 65–79)
B-Tier Bull Signal — moderate bullish confluence (score 50–64)
S-Tier Bear Signal — highest quality bearish confluence (score ≥ 80)
A-Tier Bear Signal — strong bearish confluence (score 65–79)
B-Tier Bear Signal — moderate bearish confluence (score 50–64)
Any Confluence Signal — fires on any bull or bear signal regardless of tier
Bullish Liquidity Sweep — stop hunt below swing low with close-back above
Bearish Liquidity Sweep — stop hunt above swing high with close-back below
Bullish BOS — break of structure to the upside
Bearish BOS — break of structure to the downside
Bullish Flow Divergence — price lower low with flow higher low
Bearish Flow Divergence — price higher high with flow lower high
Prime Setup Detected — fires when score crosses above 80 for the first time
All alert messages include {{ticker}} and {{interval}} placeholders for webhook integration.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 Recommended Settings By Instrument
XAUUSD (Gold) — 1m / 5m
Lookback: 100, Rows: 24, Min Score: 60, Cooldown: 3
All engines enabled, MTF full 6-timeframe
Forex Majors — 5m / 15m
Lookback: 80, Min Score: 55, Cooldown: 5
Disable M1 from MTF matrix for cleaner readings
Indices (NAS100, US30) — 1m / 5m
Lookback: 120, Rows: 30, Min Score: 65
Increase OB lookback to 30 for index session structure
Higher Timeframes (H1 / H4)
Lookback: 200, Rows: 36, Min Score: 70, Cooldown: 2
Disable M1 and M5 from MTF matrix
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
👥 Who This Is For
🥇 Institutional-style traders — traders who already understand order flow, volume profile, and smart money concepts will find this system speaks their language natively
📊 Multi-timeframe traders — the MTF matrix makes top-down analysis automatic and quantified
🎯 Precision entry traders — the six-engine confluence requirement means signals are rare but high-quality
🧠 Systematic traders — the scoring system removes subjectivity and gives every setup a quantitative rating
📈 Trend and momentum traders — the structure and flow engines confirm that momentum supports the direction before a signal fires
⚠ Traders who struggle with overtrading — the minimum score requirement and cooldown mechanically prevent low-quality entries from appearing
🔗 AlphaX PRIME users — this indicator is the official confluence layer designed to work alongside PRIME as a complete two-part system
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 Notes
All signals are generated on bar close — no repainting
The Volume Profile recalculates on the final bar of each lookback window — on lower timeframes with many bars, allow a moment for the profile to initialize
Order Block detection resets each bar and only draws levels within 5% of current price — this prevents stale OBs from causing chart zoom-out on instruments with large historical price ranges
FVG boxes are automatically cleaned and redrawn each bar — only the most recent unfilled gap in each direction is displayed to avoid clutter
MTF data uses barmerge.lookahead_off — no future data is used in any calculation
Maximum 500 labels, lines, and boxes are maintained — on very long chart histories, oldest drawings are automatically removed by PulseWire's limits
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ 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.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Six engines. One score. Only the best setups make it through. Indicator

Indicator

[ A L P H A X ] Prism Price Action Institutional FlowAlphaX Prism — Price Action × Key Levels × Institutional Flow | Confluence Engine, Smart Entry/Exit Signals & Multi-Factor Confidence Scoring
AlphaX Prism is a professional-grade price action and confluence trading system that fuses three powerful analytical dimensions into a single, cohesive overlay indicator: automatic Key Level detection, real-time Price Action pattern recognition, and Institutional Footprint tracking. Every signal is governed by a 10-factor confluence scoring engine and a weighted confidence percentage system — so only high-quality, structurally valid setups reach your chart. Designed for traders who want clean, context-aware signals rooted in market structure rather than lagging oscillators.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔬 The Three Pillars of AlphaX Prism
AlphaX Prism operates across three simultaneous analytical layers, each feeding into the central confluence engine:
I. Key Level Engine — Automatic Support & Resistance Detection
The Key Level engine automatically identifies, tracks, and manages the most significant support and resistance zones on your chart using swing pivot detection. Rather than drawing static lines, AlphaX Prism builds intelligent zones that evolve as price interacts with them.
How the Key Level engine works:
Swing Pivot Detection — identifies significant highs and lows using a configurable swing length parameter
Zone Merging — nearby levels within a configurable ATR-based threshold are merged into a single consolidated zone, preventing level clutter
Touch Counting — each zone tracks how many times price has interacted with it. Zones below the minimum touch threshold appear in neutral gray; confirmed zones flip to color-coded support (yellow-green) or resistance (red)
Zone Age Management — zones older than a configurable bar count are automatically retired and removed, keeping your chart focused on relevant levels only
Dynamic Extension — all zones and lines extend to the right edge of the chart in real time
Key Level signals feed directly into the confluence engine and generate specific condition flags:
Price at Support — price is currently trading within a confirmed support zone
Price at Resistance — price is currently trading within a confirmed resistance zone
Bounce from Support — price touched support and closed bullish with a meaningful body — the highest-value condition for long setups
Rejection from Resistance — price touched resistance and closed bearish with a meaningful body — the highest-value condition for short setups
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
II. Price Action Pattern Engine — What the Candles Are Saying
AlphaX Prism recognizes five core price action patterns in real time, each validated with additional filters to reduce false triggers:
Bullish / Bearish Engulfing
A bullish candle that fully engulfs the prior bearish candle (or vice versa), with a meaningful body ratio and a candle range above a minimum ATR threshold. Engulfing patterns receive the highest PA score in the confluence engine and trigger a dedicated marker on the chart when occurring at a key level or in the direction of the established trend.
Bullish / Bearish Pin Bar
A candle with a wick at least 2.5× the body length, where the wick is significantly larger than the opposing wick, and the close is in the upper or lower half of the candle's range respectively. The candle must meet a minimum ATR size threshold to qualify.
Inside Bar Breakout
When a candle is fully contained within the prior candle's range (inside bar), the next candle breaking out above or below that range — with a directional close and a meaningful body — triggers an inside bar breakout marker. A controllable toggle allows you to enable or disable this pattern type independently.
Momentum Shift (3-Bar Reversal)
Two consecutive candles in one direction followed by a third candle that breaks the prior candle's extreme and closes with a body ratio above 0.5. This pattern captures short-term momentum reversals within the context of a broader structure.
Strong Directional Candle
A candle with a body ratio above 0.65 and a body size exceeding the average body — used as a supplementary structural signal within the confluence engine.
Pattern markers are context-filtered — they only appear when occurring at a key level, aligned with the trend structure, or accompanied by a bounce/rejection confirmation. This eliminates random pattern signals in the middle of nowhere.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
III. Institutional Footprint — Tracking Large Money Flow
Retail price action alone does not tell the full story. AlphaX Prism tracks two types of institutional activity that are invisible to most traders:
Institutional Candles — Directional Large-Body Moves
A bullish or bearish candle whose body exceeds the 20-bar average body by a configurable multiplier (default: 1.8×)
Volume exceeds the moving average by a configurable multiplier (default: 1.3×)
Body ratio above 0.55, with a close in the upper or lower third of the range — confirming directional conviction
These appear as bright colored dots at the bottom of the chart (yellow-green for bull, red for bear)
Absorption Candles — Hidden Accumulation and Distribution
A large wick (more than 2× the body) with high volume — indicating large orders absorbing supply or demand without a visible directional body
The wick must be at least 1.5× larger than the opposing wick, and the candle range must exceed the ATR minimum
These appear as dimmer dots at the bottom of the chart — subtler activity, but often a precursor to a directional move
Volume Spikes — when high volume occurs without an institutional candle pattern, a neutral gray dot appears — flagging elevated participation without clear directional conviction.
Institutional activity feeds into the confluence engine and acts as a significant signal amplifier when aligned with price action and key levels.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Two Signal Layers
AlphaX Prism produces two distinct signal types, each serving a specific role in the trade lifecycle:
1 ─ Entry Signals (▲ / ▼)
Entry signals are generated when the confluence engine determines that enough independent factors are aligned simultaneously. A bullish entry (▲) or bearish entry (▼) label appears offset from the bar with a dotted connector line for visual clarity.
Entry signals require ALL of the following to fire:
Confluence score meets or exceeds the minimum threshold (default: 4 out of 10 factors)
A qualifying Price Action pattern is present
A structural reason exists (key level, institutional candle, or trend context)
The candle is clean — not overextended, not at an RSI extreme, and with a meaningful body
ADX confirms a trending environment (not a ranging, directionless market)
Signal cooldown has elapsed since the last signal
When both bull and bear conditions trigger simultaneously, the higher-confluence side wins. If scores are equal, no signal fires — tie goes to caution.
2 ─ Exit Signals (✕)
Exit signals fire after an entry signal has been established and a reversal condition develops. They are filtered by the same cooldown as entries to prevent rapid oscillation.
Long Exit — price reaches a resistance zone and a bearish engulfing forms, or the trend shifts down with price below the medium EMA and MACD bearish, or an institutional selling candle closes below the fast EMA, or RSI is overbought with a bearish pattern
Short Exit — the inverse of the above conditions for a long exit
Exit signals indicate that the momentum behind the current trade is deteriorating. Use them to take partial or full profit, or to tighten your stop loss ahead of a potential reversal.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🧠 10-Factor Confluence Scoring System
Every bar is evaluated against ten independent confluence factors — each one a separate reason to consider a trade. Only setups where enough factors align simultaneously are displayed.
The 10 Confluence Factors:
1. Key Level — price is bouncing from support or rejecting resistance (highest weight)
2. Price Action Pattern — any qualifying PA pattern is present
3. Strong Pattern Bonus — engulfing or momentum shift (higher-conviction PA types)
4. Institutional Activity — institutional candle or absorption present in signal direction
5. Trend Structure — swing-based trend direction (HH/HL or LL/LH) aligns with signal
6. MACD Momentum — MACD line above/below signal line and histogram expanding in signal direction
7. RSI Alignment — RSI slope rising/falling within the mid-range zone (not extreme)
8. RSI Divergence — price makes a new extreme but RSI does not confirm, signaling exhaustion
9. Volume — current volume exceeds the moving average in the signal direction
10. EMA Alignment — fast, medium, and slow EMAs are stacked in the signal direction, or price is positioned correctly relative to the 200 EMA
The score (0–10) is displayed in the dashboard alongside a weighted confidence percentage (0–100%) and a letter grade (D through A+).
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 Weighted Confidence Engine
In addition to the 10-factor binary confluence score, AlphaX Prism computes a weighted confidence percentage that assigns different point values to each factor based on its structural importance.
Bull / Bear Confidence Scoring Breakdown:
Bounce from Support / Rejection from Resistance — up to 18 points (the single most important condition in price action trading)
Price at Key Level without confirmed bounce/rejection — 12 points
PA Pattern Type — Engulfing: 14 pts | Momentum Shift: 12 pts | Pin Bar: 10 pts | Inside Bar Break: 8 pts
Institutional Candle — 12 points | Absorption: 8 points
Trend Structure Aligned — 10 points | Structural confirmation only: 6 points
MACD Momentum — both line and histogram aligned: 6 pts | line only: 3 pts
RSI Slope in Range — 5 points
RSI Divergence — 8 points
Volume Spike — 6 points | Above average: 3 points
EMA Trend Fully Aligned — 8 points | Price above/below 200 EMA only: 3 points
ADX Strong — 6 points
Penalty Deductions:
RSI at opposite extreme — -12 points (signal in wrong RSI zone)
Counter-trend direction — -15 points (trading against the established structure)
ADX weak / no trend — -6 points
Price overextended from EMA — -8 points
No PA pattern at all — -10 points (structure without a trigger is not enough)
Below average volume — -4 points
Letter Grade Scale:
A+ — 70% and above: exceptional confluence, all major factors aligned
A — 55–69%: high-quality setup with strong structural backing
B — 40–54%: good setup with most factors aligned
C — 25–39%: marginal setup, use caution and tighter risk management
D — below 25%: weak confluence, typically filtered out before display
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📐 EMA System
Three Exponential Moving Averages provide structural context for trend bias and signal filtering:
Fast EMA (21) — yellow-green cross markers — the immediate momentum reference. When price holds above the Fast EMA, intrabar momentum favors longs.
Medium EMA (50) — gray line — the intermediate trend filter. Slope direction confirms trend momentum across recent bars.
Slow EMA (200) — dark gray line, thicker — the structural backbone. Price position relative to the 200 EMA contributes to the confidence score and defines the macro bias.
EMA Fan Analysis:
All three EMAs fanning outward in order (Fast > Medium > Slow for bullish) — healthy trend, re-entry signals carry higher confidence
EMAs converging — trend is weakening, expect chop or reversal
EMAs tangled and flat — range-bound market, step aside and wait for structure to return
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Trend Structure Detection
AlphaX Prism tracks swing-based market structure using configurable pivot detection:
Uptrend (▲ UPTREND) — confirmed when the most recent significant high is higher than the prior high AND the most recent significant low is higher than the prior low (Higher Highs + Higher Lows)
Downtrend (▼ DOWNTREND) — confirmed when the most recent significant high is lower than the prior high AND the most recent significant low is lower than the prior low (Lower Highs + Lower Lows)
A configurable cooldown prevents label spam during choppy structure transitions
The trend structure direction is used as a directional filter and adds directly to the confluence score. Signals trading against the identified structure receive a significant confidence penalty.
ADX is calculated alongside the swing structure to confirm whether the trend has sufficient momentum. The ADX threshold (default: 22) prevents signals from firing during flat, low-conviction periods — regardless of how many other factors align.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 RSI Divergence Detection
AlphaX Prism includes a built-in RSI divergence scanner that runs continuously alongside all other analysis:
Bullish Divergence — price makes a lower low but the RSI pivot low is higher than the prior RSI low — indicating weakening bearish momentum
Bearish Divergence — price makes a higher high but the RSI pivot high is lower than the prior RSI high — indicating weakening bullish momentum
Divergences are validated against pivot lookback windows to ensure they represent meaningful structural shifts rather than random oscillator noise. When detected, they are marked with small diamond shapes and contribute up to 8 points to the confidence score.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 How to Trade with AlphaX Prism — Step by Step
Step 1 — Read the Dashboard
Check PRICE POSITION: Is price bouncing from support, rejecting resistance, or between levels?
Check TREND: Is structure bullish, bearish, or ranging?
Check ADX: Is there a trending environment, or is it weak and directionless?
Check PA PATTERN: Is there a qualifying candle pattern on the current bar?
If VERDICT reads "WEAK TREND — WAIT" or "NO PA PATTERN — WAIT" → do not enter. Preserve capital.
Step 2 — Wait for an Entry Signal
A ▲ or ▼ signal label appears when all mandatory conditions are met
Check the dashboard for the BULL SCORE or BEAR SCORE and the letter grade — higher grades represent cleaner, higher-probability setups
An A or A+ grade at a confirmed key level with institutional activity is the highest-conviction setup the system can produce
Step 3 — Confirm the Setup Manually
Review FACTORS in the dashboard — which of the 10 conditions are confirmed?
Look for a Bounce from Support or Rejection from Resistance as the anchor
Verify that volume is above average and the institutional footprint dots support the direction
Place your stop loss beyond the recent swing high/low or beyond the key level zone
Step 4 — Manage the Trade
Monitor the dashboard for changes in trend, RSI state, and institutional flow
If the VERDICT shifts from your trade direction, begin tightening your stop loss
Use subsequent entry signals in the same direction as opportunities to add to a winning position
Step 5 — Exit on the ✕ Mark
When an exit marker appears, the system has detected a counter-trend structural condition
Take partial or full profit
Do not immediately reverse — wait for a new entry signal in the opposite direction before committing to a new trade
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ Key Features
🏗 Automatic Key Level detection with zone merging, touch counting, and age management
🕯 Five Price Action pattern types — Engulfing, Pin Bar, Inside Bar Breakout, Momentum Shift, and Strong Directional Candle
🏦 Institutional footprint tracking — directional institutional candles and absorption patterns with volume validation
🧠 10-factor confluence binary score + weighted percentage confidence engine with A+ to D letter grading
📐 Three EMAs (21 / 50 / 200) for structural context, fan analysis, and trend bias
📉 Swing-based trend structure detection with HH/HL and LL/LH logic and a configurable trend label cooldown
⚡ ADX integration — prevents signals from firing in low-conviction, ranging environments
💎 RSI divergence scanner — continuously monitors for bullish and bearish momentum divergence
📊 MACD momentum engine — directional and histogram-based momentum alignment
✕ Context-aware exit signals — fire only after an active entry and only under specific structural reversal conditions
🖥 Fully featured dashboard — price position, PA pattern, institutional activity, trend, EMA, RSI, volume, confluence scores, verdict, and last signal details all in one panel
🎨 Cohesive dual-tone color theme — yellow-green for bullish, red for bearish, gray for neutral and weak conditions
🔔 8 alert conditions — long/short signals, engulfing at key levels, institutional candles, and RSI divergences
⚙ Fully configurable — all swing lengths, thresholds, ATR multipliers, confluence minimums, EMA periods, colors, and display toggles are adjustable from the settings panel
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙ Settings Reference
Key Levels
Key Level Swing Length — pivot detection lookback for support/resistance identification (default: 8)
Merge Zones (x ATR) — how close two levels must be to merge into a single zone (default: 1.2× ATR)
Max Active Zones — maximum number of key level zones displayed simultaneously (default: 6)
Zone Max Age (bars) — how many bars before a zone is retired and removed (default: 250)
Show Key Level Zones — toggle zone box fills
Show Key Level Lines — toggle dotted center lines
Min Touches to Confirm — how many interactions before a zone is considered confirmed and color-coded (default: 2)
Price Action
Show PA Pattern Markers — toggle all price action pattern markers
Min Body Ratio (Engulf) — minimum body-to-range ratio required for engulfing patterns (default: 0.4)
Pin Bar Wick Ratio — minimum wick-to-body ratio required for pin bars (default: 2.5)
Show Inside Bar Breakouts — enable/disable inside bar breakout signals
Show Momentum Shift — enable/disable 3-bar momentum shift detection
Institutional Flow
Inst. Body Size (x Avg) — body size multiplier required for institutional candle detection (default: 1.8)
Inst. Volume (x Avg) — volume multiplier required for institutional candle detection (default: 1.3)
Show Institutional Candles — toggle all institutional footprint dots
Trend Context
Trend Swing Length — pivot lookback for trend structure HH/HL/LL/LH detection (default: 12)
Show Trend Shift Labels — toggle UPTREND/DOWNTREND structural labels
Trend Label Cooldown — minimum bars between consecutive trend labels (default: 18)
ADX Length — period for ADX trend strength calculation (default: 14)
ADX Trend Threshold — minimum ADX value required to permit signal generation (default: 22)
Momentum
RSI Length — period for RSI calculation (default: 14)
Show RSI Divergence — toggle the RSI divergence scanner and markers
Volume
Volume MA Length — period for volume moving average used in all volume comparisons (default: 20)
EMA Settings
Show Fast / Medium / Slow EMA — individual visibility toggles for each EMA
Fast EMA Length — default: 21
Medium EMA Length — default: 50
Slow EMA Length — default: 200
Confluence Engine
Min Confluence Score — minimum number of the 10 factors required to permit signal generation (default: 4)
Show Entry Signals — toggle all ▲ / ▼ entry signal labels
Signal Cooldown (bars) — minimum bars between consecutive signals (default: 12)
Show Exit Signals — toggle all ✕ exit signal markers
Display
Show Dashboard — toggle the full dashboard panel
Dashboard Position — Top Right / Top Left / Bottom Right / Bottom Left
Dashboard Text Size — Tiny / Small / Normal
Dashboard Background — configurable background color
Theme Colors
Bull Primary / Bright / Dim — the yellow-green family for all bullish elements
Bear Primary / Bright / Dim — the red family for all bearish elements
Support / Resistance / Neutral Zone Colors — configurable zone color scheme
Pattern Color — marker color for price action pattern labels
Institutional Color — dot color for institutional footprint markers
Individual EMA Colors — Fast (yellow-green), Medium (gray), Slow (dark gray)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 Alert Conditions
Prism Long Signal — fires when a confirmed ▲ entry signal appears
Prism Short Signal — fires when a confirmed ▼ entry signal appears
Engulf at Support — fires when a bullish engulfing pattern forms at a confirmed support zone
Engulf at Resistance — fires when a bearish engulfing pattern forms at a confirmed resistance zone
Institutional Buying — fires when an institutional bullish candle is detected
Institutional Selling — fires when an institutional bearish candle is detected
RSI Bull Divergence — fires when a confirmed bullish RSI divergence is detected
RSI Bear Divergence — fires when a confirmed bearish RSI divergence is detected
All alert messages include {{ticker}} and {{interval}} placeholders for clean webhook and bot integration.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 Default Settings — Optimized For
The default configuration is tuned for intraday trading on XAUUSD, forex majors, and indices (NAS100, US30, SPX500) on timeframes from M1 to H1.
For best results across different instruments:
Higher timeframes (H1, H4) — increase Trend Swing Length to 18–25, increase Min Confluence to 5–6, increase Signal Cooldown to 20–30
Volatile instruments (Gold, NAS100) — use defaults or increase ADX threshold to 25 for tighter trend filtering
Forex majors (EURUSD, GBPUSD) — reduce Inst. Body Size multiplier to 1.5, keep defaults otherwise
Calmer instruments — reduce ADX threshold to 18–20, reduce Min Confluence to 3
Fewer, cleaner signals — increase Min Confluence Score, increase ADX Threshold, increase Signal Cooldown
More frequent signals — decrease Min Confluence Score to 3, decrease Signal Cooldown to 8, reduce ADX Threshold to 18
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
👥 Who This Is For
🥇 Price action traders — built on the foundations of PA trading: key levels, candlestick patterns, and structural context, with no dependence on arbitrary indicator signals
🏦 Traders who want to track institutional activity — the footprint engine highlights where large money is likely entering and exiting the market
📊 Confluence-based traders — the 10-factor scoring system provides a systematic, quantified framework for evaluating setups rather than relying on intuition alone
🧠 Systematic and discretionary traders alike — the dashboard makes every condition transparent and readable at a glance, while the alert system supports fully automated notification workflows
📈 Traders who struggle with overtrading — the mandatory ADX filter, PA pattern requirement, and minimum confluence threshold physically prevent weak or unqualified setups from generating signals
🎨 Traders who value clean, uncluttered charts — all elements follow a cohesive color theme, and the system is designed to show you only what matters, when it matters
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 Notes
All signals are calculated on bar close — AlphaX Prism is non-repainting. A signal that appears will not disappear on the next bar.
The key level zone boxes extend to the right edge of the chart in real time. As new bars form, zones that have aged beyond the maximum bar count are automatically removed.
RSI divergence detection uses a 5-bar pivot lookback on each side — divergences are confirmed only when the current bar is within 3 bars of the pivot, and the two pivots are between 5 and 50 bars apart, ensuring only meaningful divergences are flagged.
Designed for M1 through H1 timeframes. On daily or weekly charts, the ADX and confluence filters still function, but key level zone density may need adjustment via the swing length and max zones settings.
Maximum 500 labels and 500 boxes are used — on very low timeframes with extended chart history, oldest elements may be automatically removed by PulseWire's rendering limits.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ 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 trade what they see — not what they hope. Indicator

[ A L P H X ] Nexus - SMC Order Flow Confluence EngineAlphaX Nexus — Smart Money Concepts × Order Flow Confluence Engine, Market Structure Detection, Institutional Zone Mapping & Real-Time Verdict Dashboard
AlphaX Nexus is a professional-grade Smart Money Concepts and Order Flow analysis system built on a proprietary eight-factor Confluence Engine that unifies market structure, institutional price zones, liquidity mechanics, and raw order flow data into a single precision-scored signal framework. It detects Break of Structure and Change of Character events in real time, automatically draws and manages Order Block and Fair Value Gap zones, identifies liquidity sweeps and equal highs/lows, estimates buy-sell delta without tick data, detects institutional absorption, and delivers graded entry signals with a live confidence breakdown — all governed by a real-time verdict dashboard. Designed for intraday traders on fast-moving instruments like XAUUSD, indices, and forex majors.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🏗 The Five-Engine Architecture — How It Works
AlphaX Nexus is not a single indicator layered on price — it is a multi-engine confluence system where every component is purpose-built and feeds into a central scoring mechanism. Five interconnected engines run simultaneously on every bar:
Market Structure Engine — detects Break of Structure and Change of Character using pivot-based swing detection
Institutional Zone Engine — auto-draws and manages Order Blocks and Fair Value Gaps anchored to structural events
Liquidity Engine — identifies sweep events, equal highs/lows, and engineered liquidity grabs
Order Flow Engine — estimates buy/sell delta, detects absorption candles, and flags volume climax events
Confluence Scoring Engine — aggregates all of the above into a real-time score (0–8) and weighted confidence percentage (0–100%), produces a letter grade, and renders a live verdict
Every signal that appears on the chart has passed through all five engines simultaneously. Nothing fires from a single condition in isolation.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📐 Market Structure Engine — BOS & CHoCH
SCREENSHOT_BOS_CHOCH
BOS ↑ and CHoCH ↑ labels marking continuation and reversal structural events — CHoCH rendered larger to reflect its higher significance
The foundation of AlphaX Nexus is a clean pivot-based market structure model. Swing highs and lows are identified using a configurable Swing Detection Length (default: 7 bars either side), and the system tracks the two most recent swing highs and lows at all times to monitor structural progression.
Break of Structure ( BOS ↑ / BOS ↓ )
A BOS is a continuation event . It fires when:
Price closes above the last confirmed swing high while the structural trend is already bullish or undefined → BOS ↑ label appears below the bar in yellow-green
Price closes below the last confirmed swing low while the structural trend is already bearish or undefined → BOS ↓ label appears above the bar in red
BOS confirms that the existing trend is intact and progressing. It is the signal to look for re-entry setups in the direction of the established move.
Change of Character ( CHoCH ↑ / CHoCH ↓ )
A CHoCH is a reversal event — the first structural break against the established trend. It fires when:
Price closes above the last swing high while the structural trend was previously bearish → CHoCH ↑ signals a potential bullish transition
Price closes below the last swing low while the structural trend was previously bullish → CHoCH ↓ signals a potential bearish transition
CHoCH labels are rendered larger and brighter than BOS labels to reflect their higher significance. Once a CHoCH fires, the structural trend flips and subsequent breaks in that direction become BOS events. The structureTrend variable (1 = bullish, -1 = bearish, 0 = ranging) propagates directional context across the entire Confluence Engine — every other component reads from it.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🟩 Order Block Engine
Active bullish and bearish Order Block zones extending to the right — solid-bordered boxes marking institutional demand and supply areas
Order Blocks are the last opposing candle before an impulsive structural break — the footprint of institutional order flow that caused the move. AlphaX Nexus auto-draws, manages, and tracks these zones in real time.
How Order Blocks are identified:
Bullish OB — on a BOS ↑ or CHoCH ↑, the engine scans back up to 15 bars to find the last bearish candle (close < open) before the break. The full high-to-low range of that candle becomes the OB zone, drawn in yellow-green
Bearish OB — on a BOS ↓ or CHoCH ↓, the engine scans back up to 15 bars to find the last bullish candle (close > open). That candle's full range becomes the OB zone, drawn in red
Volume Confirmation Filter
When enabled, the OB candle must have volume exceeding the 20-bar Volume SMA multiplied by a configurable OB Volume Multiplier (default: 1.4×). Only OBs backed by genuine institutional activity are drawn — random opposing candles do not qualify.
Active Zone Management:
Max Active Order Blocks (default: 4) — when the limit is reached, the oldest OB is removed to make room for new ones
OB Max Age (default: 80 bars) — zones expire automatically to prevent stale OBs from cluttering the chart
Mitigation Mode — two options for when an OB is considered consumed:
Wick — the OB is mitigated when any wick penetrates through the zone boundary
Close — stricter mode; only a bar closing beyond the boundary triggers mitigation
When price is currently trading inside an active OB, the zone flags as active and feeds directly into the Confluence Score and dashboard
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🟦 Fair Value Gap Engine
Bullish and bearish Fair Value Gap zones rendered with dotted borders — distinguishing them visually from the solid-bordered Order Blocks
Fair Value Gaps are price imbalances created by impulsive institutional moves where three consecutive candles leave a gap between the first and third candle's range. AlphaX Nexus identifies these automatically and manages them as live zones.
How FVGs are identified:
Bullish FVG — the low of the current bar sits above the high of the candle two bars ago, with the middle candle bullish (close > open). The gap between those two levels is the FVG zone
Bearish FVG — the high of the current bar sits below the low of the candle two bars ago, with the middle candle bearish. The gap between those two levels is the FVG zone
A minimum size filter expressed as a percentage of ATR (default: 15% of ATR-14) prevents micro-gaps from cluttering the chart — only genuinely significant imbalances are drawn
FVG zones are rendered with a dotted border and subtle fill, clearly distinguishing them from Order Blocks at a glance. Like OBs, they extend to the right until filled or expired.
Zone Management:
Max Active FVGs (default: 4) limits simultaneous zones on screen
FVG Max Age (default: 60 bars) auto-expires old gaps
A bullish FVG is filled and removed when price drops to or below its lower boundary; a bearish FVG when price rises to or above its upper boundary
When price is trading inside an active FVG, the zone is flagged and feeds the Confluence Engine
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💧 Liquidity Engine — Sweeps & Equal Highs/Lows
$ SWEEP labels marking bullish and bearish liquidity grab events — dashed lines connecting equal swing highs and lows marking institutional liquidity pools
Institutional traders frequently engineer liquidity grabs before reversals — spiking price into pools of stop orders above swing highs or below swing lows, filling their positions against trapped retail traders, then reversing. AlphaX Nexus identifies both the sweep event and the liquidity pools themselves.
Liquidity Sweeps ( $ SWEEP )
The engine monitors a rolling Liquidity Lookback window (default: 25 bars) to track recent highs and lows:
Bullish Liquidity Sweep — price wicks below the recent low of the lookback window but closes back above it, with a bullish close. A "$ SWEEP" label appears below the bar in yellow-green, signalling that sell-side liquidity was grabbed and a bullish reversal may follow
Bearish Liquidity Sweep — price wicks above the recent high but closes back below it, with a bearish close. A "$ SWEEP" label appears above the bar in red, signalling that buy-side liquidity was taken
A confirmed liquidity sweep scores 15 points in the Confidence Engine — one of the highest single-factor contributions available.
Equal Highs / Equal Lows — Liquidity Pool Lines
When two consecutive swing highs are within a configurable Equal Level Threshold (default: 0.08%) of each other, the engine draws a dashed horizontal line at the average of the two highs — marking an Equal Highs level. The same logic applies to Equal Lows. These levels represent clusters of stop orders and are prime targets for institutional sweeps. Lines update automatically as new swings form.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Order Flow Engine — Delta, Absorption & Volume
Diamond absorption markers, volume spike dots at the bottom of the chart, and delta divergence triangles — the order flow layer operating beneath price
Without tick data, AlphaX Nexus uses a proprietary candle-position method to estimate real-time buy and sell pressure, detect institutional absorption, and identify volume climax events — all from standard OHLCV data.
Estimated Delta (Buy vs Sell Volume)
On every bar, the engine estimates the proportion of volume that was buyer-driven versus seller-driven based on where price closed relative to the candle's full range:
Buy Volume Estimate — volume × ((close − low) / (high − low))
Sell Volume Estimate — remaining volume after buy estimate
Raw Delta — the difference between buy and sell estimates, smoothed by a configurable EMA ( Delta Smooth Length , default: 4)
Delta Divergence Detection:
Delta Accumulation (▲ triangle below bar) — price makes a new 10-bar low but smoothed delta is rising → institutional accumulation is occurring against the price move. A small yellow-green triangle appears below the bar
Delta Distribution (▼ triangle above bar) — price makes a new 10-bar high but smoothed delta is falling → institutional distribution is occurring into the rally. A small red triangle appears above the bar
Absorption Detection (◆ diamond)
Institutional absorption is detected when a candle has a large wick relative to its body combined with above-average volume — the hallmark of a large player absorbing supply or demand:
Bullish Absorption — lower wick exceeds the body size multiplied by the Absorption Wick/Body Ratio (default: 2.0×), volume is above average, and the candle closes bullish. A yellow-green diamond appears below the bar
Bearish Absorption — upper wick exceeds the body multiplied by the same ratio, volume is above average, and the candle closes bearish. A red diamond appears above the bar
Volume Spike Dots
When volume exceeds the Volume SMA multiplied by the Volume Spike Multiplier (default: 1.8×), a small dot appears at the bottom of the chart — yellow-green on a bullish bar, red on a bearish bar. This gives an immediate visual history of where institutional volume surges have occurred.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🧠 Eight-Factor Confluence Scoring Engine
Every entry signal is scored by a real-time confluence engine that evaluates eight independent factors and produces two outputs: a raw score out of 8 and a weighted confidence percentage from 0 to 100% . Only signals meeting your configured Min Confluence Score threshold are displayed.
The eight confluence factors are:
1 — Market Structure (Score: 1 point / Confidence: up to 25%)
structureTrend == 1 (bullish) or -1 (bearish) contributes 1 point to the raw score
In the confidence calculation: confirmed bullish/bearish structure = 25%, ranging/undefined = 10%, opposing structure = 0%
2 — Price Inside Order Block (Score: 1 point / Confidence: up to 15%)
Price currently trading inside an active, unmitigated bullish or bearish OB
Represents the highest-probability demand or supply zone on the chart
3 — Price Inside Fair Value Gap (Score: 1 point / Confidence: up to 10%)
Price currently trading inside an active, unfilled bullish or bearish FVG
Confirms price is retesting a genuine institutional imbalance
4 — Liquidity Sweep (Score: 1 point / Confidence: up to 15%)
A confirmed bullish or bearish liquidity sweep on the current bar
One of the highest-weighted single-bar factors — a sweep into a zone and POI combination is the highest-probability setup in the system
5 — Volume Confirmation (Score: 1 point / Confidence: up to 7%)
Volume is above the 20-bar SMA and the candle closes in the signal direction (bullish close for long, bearish close for short)
Confirms that institutional participation is present on the signal bar
6 — Institutional Absorption (Score: 1 point / Confidence: up to 10%)
A bullish or bearish absorption candle detected on the current bar
High-volume wick rejection confirming that large players are actively absorbing supply or demand
7 — Delta Divergence (Score: 1 point / Confidence: up to 8%)
Delta accumulation (price at lows, delta rising) or delta distribution (price at highs, delta falling) detected on the current bar
Reveals hidden institutional accumulation or distribution that price action alone does not show
8 — EMA Trend Alignment (Score: 1 point / Confidence: up to 10%)
Full EMA fan alignment (Fast 21 > Medium 50 > Slow 200 for bulls, reverse for bears) = full 10% contribution
Partial alignment (price above/below 200 EMA with Fast above Medium) = 5% contribution
Confirms the macro structural backdrop supports the signal direction
Confidence Grade Scale:
A+ — 75% and above — highest conviction setups
A — 60% to 74%
B — 45% to 59%
C — 30% to 44%
D — below 30% — filtered out at default settings
The default minimum confluence score is 3 out of 8 — calibrated for XAUUSD 1-minute to allow valid high-probability setups through while blocking weak, low-factor signals. Increase to 4 or 5 for cleaner, lower-frequency signals on higher timeframes.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 Entry Signal Labels ( ▲ L O N G / ▼ S H O R T )
Entry signal labels rendered below/above price with dotted connector lines — showing the grade, confidence percentage, raw score and active confluence factors
When all conditions align — minimum confluence score met, signal cooldown cleared, and candle closing in the signal direction — an entry label fires. Labels are positioned at a configurable ATR offset from the candle (default: 3.4× ATR) to keep them clear of price, with a dotted connector line drawn from the bar to the label.
Each signal label displays three lines of information:
Line 1 — direction: ▲ L O N G or ▼ S H O R T
Line 2 — grade letter (A+, A, B, C) | confidence percentage | raw score out of 8
Line 3 — a checklist of every confluence factor that fired: ✓STR ✓OB ✓FVG ✓LIQ ✓VOL ✓ABS ✓DLT ✓EMA
Label color scales with confidence — brightest at A+, dimmed at lower grades — giving an immediate visual read on signal quality without reading the numbers.
Signal Conflict Resolution:
If both a bullish and bearish signal qualify on the same bar, the system compares the raw scores and publishes only the higher-scoring direction
If scores are exactly equal, both signals are suppressed — a genuinely ambiguous bar produces no signal
Signal Cooldown (default: 12 bars) prevents signal spam during fast-moving or choppy conditions by enforcing a minimum number of bars between consecutive signals.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
☁ Trend Cloud & EMA System
The Trend Cloud and three EMAs providing structural context — fanned EMAs confirm trend health, converging EMAs warn of choppy or ranging conditions
Three structural tools provide directional context beneath the signal layer:
Trend Cloud (Kijun/Tenkan Style)
Cloud Fast — the midpoint of the highest high and lowest low over the Cloud Fast Length (default: 9 bars)
Cloud Slow — the midpoint of the highest high and lowest low over the Cloud Slow Length (default: 26 bars)
When Cloud Fast is above Cloud Slow → cloud fills bullish yellow-green
When Cloud Fast is below Cloud Slow → cloud fills bearish red
The cloud thickness reflects the strength of the current directional move — a wide cloud means strong trending conditions, a collapsed cloud means choppy or ranging conditions
Three EMAs — Structural Context:
Fast EMA (21) — yellow-green cross marks — the immediate momentum reference. When price holds above the Fast EMA, intrabar momentum favours longs
Medium EMA (50) — gray line — the intermediate trend filter. Its slope direction confirms whether momentum is building or fading
Slow EMA (200) — dark gray thick line — the structural backbone. Used by the confidence scoring system and the dashboard as the macro trend divider
EMA Fan Analysis:
When all three EMAs are fanning outward in order (Fast > Medium > Slow for bullish, reverse for bearish) — the trend is healthy and entry signals carry maximum confidence weight from the EMA factor
When EMAs are converging — trend momentum is fading, expect chop or a structural shift
When EMAs are tangled and flat — range-bound market, the EMA factor scores zero in the confidence engine
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Live Verdict Dashboard
The AlphaX Nexus dashboard — three-column layout showing all market metrics, active zone counts, bull/bear scores with grades, and the real-time verdict
A fully configurable on-chart dashboard presents the complete state of all five engines simultaneously. It updates on every bar and requires no sub-windows or separate panels.
Dashboard rows and what they display:
STRUCTURE — current structureTrend state (▲ BULLISH / ▼ BEARISH / — RANGING) with the most recent structural event (BOS or CHoCH) shown in the detail column
EMA TREND — full fan alignment state (▲ BULL ALIGNED / ▼ BEAR ALIGNED / — MIXED) with price position relative to the 200 EMA
CLOUD — current trend cloud direction (▲ BULLISH / ▼ BEARISH / — FLAT)
REL VOLUME — relative volume state (SPIKE / HIGH / NORMAL / DRY) with the exact multiplier (e.g. 2.14×)
DELTA FLOW — smoothed delta direction (▲ BUYING / ▼ SELLING / — FLAT) with accumulation or distribution label when a divergence is active
ACTIVE ZONES — live count of active Order Blocks and Fair Value Gaps, with a real-time indicator if price is currently inside any zone (IN OB▲, IN OB▼, IN FVG▲, IN FVG▼)
BULL SCORE — raw score out of 8, confidence percentage, and letter grade for the bullish direction
BEAR SCORE — raw score out of 8, confidence percentage, and letter grade for the bearish direction
VERDICT — the system's real-time conclusion based on score, structure, and EMA alignment combined
Verdict logic:
✓ HIGH CONFIDENCE LONG — bull score ≥ 5, structure bullish, EMA trend bullish
✓ HIGH CONFIDENCE SHORT — bear score ≥ 5, structure bearish, EMA trend bearish
△ LEAN LONG — CAUTION — bull score meets minimum threshold and structure is bullish, but EMA alignment is not fully confirmed
▽ LEAN SHORT — CAUTION — bear score meets minimum threshold and structure is bearish, but EMA alignment is not fully confirmed
✕ MIXED — STAND ASIDE — both scores meet the threshold simultaneously — no clear directional edge
✕ NO CLEAR EDGE — neither score meets the threshold — no tradeable condition
Dashboard position (Top Right / Top Left / Bottom Right / Bottom Left), text size (Tiny / Small / Normal), and background color are all fully configurable.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 How to Trade with AlphaX Nexus — Step by Step
Step 1 — Read the Dashboard Verdict
Check the VERDICT row first — it summarizes all five engines in a single line
HIGH CONFIDENCE signals only appear when structure, EMA trend, and score all align simultaneously
If the verdict is MIXED or NO CLEAR EDGE → do not trade. Wait for conditions to resolve
Step 2 — Confirm the Zone
Check the ACTIVE ZONES row — is price currently inside an OB or FVG?
A signal firing while price is inside a relevant zone (bullish signal in a bullish OB, or bearish signal in a bearish OB) is the highest-probability setup in the system
Signals that fire away from any active zone are lower conviction — proceed with caution
Step 3 — Wait for a $ SWEEP (Optional but Powerful)
A liquidity sweep into a zone before the signal fires is the ideal entry trigger
Sweep + OB/FVG + structure alignment = the full Smart Money setup with all major confluence factors active
Not every signal will have a sweep — but when it does, the confidence score and grade will reflect it
Step 4 — Enter on the Signal Label
A ▲ L O N G or ▼ S H O R T label with grade A or A+ is your primary entry signal
Read the confluence checklist on line 3 — the more ✓ marks, the stronger the setup
Place your stop loss beyond the relevant Order Block boundary or the recent swing high/low
Step 5 — Manage with the Dashboard
After entry, monitor the DELTA FLOW and REL VOLUME rows — if delta starts diverging against your position while volume spikes, momentum may be exhausting
Monitor the STRUCTURE row — if a CHoCH fires against your trade direction, the trend may be reversing
Watch the ACTIVE ZONES row — if price enters an opposing OB or FVG during your trade, consider taking partial profits
Step 6 — Exit When Structure Changes
A CHoCH in the opposite direction is the primary exit signal — the trend has reversed
A VERDICT shift to MIXED or NO CLEAR EDGE while in a trade is a warning to tighten your stop
Close remaining positions before the opposing trend establishes a new high-confidence score
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ Key Features
🏗 Five-engine architecture — market structure, institutional zones, liquidity, order flow, and confluence scoring all running simultaneously
📐 Pivot-based BOS and CHoCH detection — clean structural labels with automatic trend state tracking
🟩 Auto-managed Order Block zones — volume-confirmed, mitigated, and age-expired automatically
🟦 Fair Value Gap zones — ATR-filtered, filled and removed when price returns
💧 Liquidity sweep detection with $ SWEEP labels — and equal highs/lows pool lines on dashed horizontals
📊 Estimated delta without tick data — buy/sell pressure estimated per bar using candle position method
◆ Institutional absorption detection — high-volume wick rejection candles marked with diamond shapes
🔵 Volume spike dots at the chart base — color-coded by direction for instant volume history
🧠 Eight-factor confluence scoring — each factor independently scored and weighted into a 0–100% confidence value
🎯 Grade-scaled signal labels — A+, A, B, C grades with full confluence checklist printed on every signal
📊 Live verdict dashboard — 14-row real-time summary of all engine states, scores, and directional verdict
☁ Kijun/Tenkan-style trend cloud — structural context cloud with directional fill
📐 Three EMAs (21 / 50 / 200) — fan analysis for trend health assessment
⏱ Configurable signal cooldown — prevents signal spam during choppy transitions
🎨 Cohesive dual-tone color theme — yellow-green for bullish, red for bearish, gray for neutral
🔔 10 alert conditions — structure events, entry signals, sweeps, and absorption with clean message formatting
⚙ Fully configurable — all detection lengths, thresholds, zone limits, colors, and display options adjustable from the settings panel
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙ Settings Reference
Market Structure
Swing Detection Length — pivot lookback length for swing high/low identification (default: 7)
Show Break of Structure — toggle BOS ↑ / BOS ↓ labels on chart
Show Change of Character — toggle CHoCH ↑ / CHoCH ↓ labels on chart
Show Structure Labels — master toggle for all structure labels
Order Blocks
Show Order Blocks — toggle OB zone boxes
Max Active Order Blocks — maximum number of simultaneous OB zones displayed (default: 4)
Mitigation Mode — Wick or Close mode for OB invalidation
Require Volume Confirmation — filter OBs by volume threshold
OB Volume Multiplier — minimum volume multiple required on the OB candle (default: 1.4×)
OB Max Age (bars) — auto-expiry age for uncollected OBs (default: 80)
Fair Value Gaps
Show Fair Value Gaps — toggle FVG zone boxes
Max Active FVGs — maximum simultaneous FVG zones (default: 4)
Min FVG Size (% of ATR) — minimum gap size relative to ATR-14 (default: 15%)
FVG Max Age (bars) — auto-expiry age for unfilled FVGs (default: 60)
Liquidity
Show Liquidity Sweeps — toggle $ SWEEP labels
Liquidity Lookback — rolling window for recent high/low tracking (default: 25)
Show Equal Highs/Lows — toggle dashed liquidity pool lines
Equal Level Threshold (%) — maximum percentage difference between two swings to qualify as equal (default: 0.08%)
Order Flow
Show Volume Analysis — toggle volume spike dots
Volume SMA Length — lookback period for average volume (default: 20)
Volume Spike Multiplier — threshold for volume spike classification (default: 1.8×)
Show Absorption Detection — toggle diamond absorption markers
Absorption Wick/Body Ratio — minimum wick-to-body ratio for absorption detection (default: 2.0×)
Show Delta Divergence — toggle delta accumulation/distribution triangles
Delta Smooth Length — EMA smoothing period for delta calculation (default: 4)
Confluence Engine
Min Confluence Score — minimum raw score (out of 8) required to display a signal (default: 3)
Show Entry Signals — master toggle for all signal labels
Signal Cooldown (bars) — minimum bars between consecutive signals (default: 12)
EMA Settings
Show Fast / Medium / Slow EMA — individual visibility toggles
Fast EMA Length — default: 21
Medium EMA Length — default: 50
Slow EMA Length — default: 200
Trend Cloud
Show Trend Cloud — toggle the Kijun/Tenkan cloud fill
Cloud Fast Length — fast midpoint period (default: 9)
Cloud Slow Length — slow midpoint period (default: 26)
Display
Signal Label Offset (x ATR) — vertical distance of signal labels from the bar (default: 3.4×)
Show Dashboard — master toggle for the live verdict dashboard
Dashboard Position — Top Right / Top Left / Bottom Right / Bottom Left
Dashboard Text Size — Tiny / Small / Normal
Dashboard Background — color of the dashboard panel
Theme Colors
Bull Primary / Bright / Dim — the yellow-green family for all bullish elements
Bear Primary / Bright / Dim — the red family for all bearish elements
Neutral / Inactive — gray for ranging states and inactive elements
Bullish / Bearish OB and FVG colors — individually configurable zone colors
Liquidity Line Color — color of the equal highs/lows dashed lines
Fast / Medium / Slow EMA colors — individually configurable
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 Alert Conditions
Nexus Long Signal — fires when a bullish confluence signal label appears
Nexus Short Signal — fires when a bearish confluence signal label appears
Bullish BOS — fires on every bullish Break of Structure
Bearish BOS — fires on every bearish Break of Structure
Bullish CHoCH — fires on every bullish Change of Character
Bearish CHoCH — fires on every bearish Change of Character
Bullish Liquidity Sweep — fires on every confirmed bullish $ SWEEP event
Bearish Liquidity Sweep — fires on every confirmed bearish $ SWEEP event
Bullish Absorption — fires when institutional buying absorption is detected
Bearish Absorption — fires when institutional selling absorption is detected
All alert messages include {{ticker}} and {{interval}} placeholders for clean webhook integration.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 Default Settings — Optimized For
The default configuration is specifically tuned for XAUUSD (Gold) on the 1-minute timeframe :
Swing Detection Length of 7 calibrated for gold's intraday swing structure
OB Volume Multiplier of 1.4× filters low-volume OBs while accepting most genuine institutional candles
FVG minimum size at 15% of ATR filters micro-gaps caused by gold's spread volatility
Liquidity Lookback of 25 bars captures the most relevant recent high/low pools without reaching too far back
Confluence minimum of 3/8 allows valid setups through while blocking single-factor noise
Signal Cooldown of 12 bars prevents repeated signals during fast gold moves
EMA periods 21 / 50 / 200 match gold's intraday momentum and structural rhythm
For other instruments or timeframes, adjust:
Higher timeframes (5m, 15m) — increase Swing Detection Length to 10–14, increase Min Confluence to 4
Forex majors — reduce OB Volume Multiplier to 1.2–1.3, FVG minimum to 10% of ATR
Indices (NAS100, US30) — use defaults or increase Liquidity Lookback to 35 for broader pool detection
Fewer signals — increase Min Confluence Score to 4–5, increase Signal Cooldown, enable volume confirmation on OBs
More signals — reduce Min Confluence to 2, decrease Signal Cooldown, disable FVG minimum size filter
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
👥 Who This Is For
🥇 Gold (XAUUSD) scalpers and intraday traders — built and tuned specifically for gold's liquidity structure, volatility profile, and institutional behavior
📉 Smart Money Concepts traders — a complete SMC toolkit with BOS, CHoCH, OBs, FVGs, sweeps, and equal highs/lows in one unified system
📊 Order flow analysts — delta estimation, absorption detection, and volume spike mapping without expensive tick data subscriptions
🧠 Systematic traders — the eight-factor confluence scoring and letter grade system provides a fully quantitative framework, not just visual markers
📈 Traders who value clean charts — every element earns its place. No indicator soup, no overlapping noise, one cohesive system with consistent color language
⚠ Traders who struggle with overtrading — the minimum confluence gate, signal cooldown, and VERDICT dashboard physically prevent marginal setups from generating signals
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 Notes
All OB and FVG zones are drawn from confirmed structural events only — no predictive or speculative zones are plotted
Delta estimation uses the candle position method (volume × close position within the range) — it is an approximation and not equivalent to real tick delta, but provides meaningful directional bias information
Equal highs/lows lines update on every new swing — the most recently drawn line always reflects the latest two qualifying swing points
All signal calculations are non-repainting — signals are confirmed on bar close and do not move or vanish retroactively
Designed primarily for intraday timeframes — M1 through H1. On daily or weekly charts the order flow features remain functional but the fast-moving zone management settings may require adjustment
Maximum 500 labels, boxes, and lines are used — on very low timeframes with extended chart history, oldest elements may be automatically removed by PulseWire's rendering limits
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ 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 read the market the way institutions move it — structure first, zones second, order flow always. Indicator

AlphaX News Filter with Webhook AlertsAlphaX News Filter — Pre-Scheduled Economic Event Blocker with Webhook Alerts
Block trading during high-impact news events automatically. Get real-time alerts to any webhook, Telegram bot, or automation service the moment a news window opens or clears.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔍 What This Indicator Does
Pre-schedule up to 4 economic news events (NFP, CPI, FOMC, PCE or any custom label) directly on your chart. Around each event, a configurable block window fires structured JSON alerts and shades your chart red so you never accidentally enter a trade into a volatile news spike.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ Key Features
🗓️ Pre-Scheduled Events
Enter the exact date and time of any economic release. Each event has its own enable/disable toggle, custom label, and timestamp. Times display in your chart's local timezone with no UTC confusion.
⏱️ Configurable Block Window
Set a symmetric buffer (5–120 minutes, default 18 min) applied both before and after each event. Covers the pre-release positioning freeze and the post-release volatility tail in one setting.
🔔 Structured JSON Alerts — Webhook Ready
Two alert types fire automatically on state transitions:
Block entered: {"action":"NEWS_BLOCK","mins":18,"event":"NFP"}
Block cleared: {"action":"NEWS_CLEAR"}
These JSON payloads plug directly into 3Commas, Alertatron, WunderTrading, Telegram bots, n8n, Make, Zapier, or any custom webhook endpoint to pause and resume your bots automatically.
📊 Visual Chart Overlays
🔴 Red background shading covers the entire block window on the chart
📍 A dashed vertical line marks the exact moment of each scheduled event
🏷️ A label tag drops from the candle high so you spot events instantly on historical review
🖥️ Live Status Table — Dark Theme, Bottom Right
A persistent HUD shows all 4 events at a glance with label, date/time in chart timezone, and live status:
✅ CLEAR — no news window active
🔴 BLOCKED — inside a news block window
🟡 WAITING — event scheduled, not yet triggered
⚫ OFF — event disabled
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
👥 Who This Is For
🤖 Algo and bot traders — send NEWS_BLOCK to pause strategies, resume on NEWS_CLEAR
📈 Semi-manual traders — visual and alert reminder so you never trade blindly into NFP or CPI
📢 Telegram signal groups — auto-broadcast news warnings to your subscribers
🛡️ Risk managers — enforce a rule-based news blackout across a session
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 How to Use
Add the indicator to any chart and timeframe
Set your block window (minutes before and after each event)
Enter each upcoming news event's date, time, and label in the inputs
Enable or disable individual events with the toggle
Create a PulseWire alert on this indicator and set your webhook URL
The alert message is pre-filled as JSON — point it at your endpoint
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 Notes
Supports up to 4 simultaneous events
Alert fires once per bar on state transition — no alert spam
All times render in chart timezone — no manual UTC conversion needed
Compatible with all asset classes: Forex, Futures, Crypto, Indices
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Built for traders who take news risk seriously. Indicator

[ A L P H A X ] Elliott Wave Detection & Fibonacci Golden ZoneAlphaX Wave – Elliott Wave Detection, Fibonacci Golden Zone Mapping, Multi-Confluence Scoring & Smart SL/TP System
AlphaX Wave is a professional-grade Elliott Wave analysis and trade signal system built on a proprietary multi-engine architecture that fuses automated wave counting, Fibonacci golden zone projection, multi-factor momentum scoring, and structure-based stop loss and target placement into a single cohesive tool. It identifies impulse wave patterns (waves 1–5), detects corrective ABC structures, projects Fibonacci retracement zones, scores trade setups across eight independent confluence factors, and generates graded entry signals with intelligent SL/TP levels derived from swing structure, Fibonacci levels, and wave projections. Designed for traders who use Elliott Wave theory as their primary framework on instruments like XAUUSD, indices, forex majors, and crypto.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔬 The Wave Engine — How It Works
At the core of AlphaX Wave is an automated Elliott Wave detection algorithm that identifies the classical 5-wave impulse structure and 3-wave corrective patterns in real-time. Unlike manual wave counting, this engine applies strict mathematical validation rules derived from Elliott Wave theory to ensure only structurally valid patterns are labeled.
Impulse Wave Detection (Waves 1–5)
The engine uses a rolling buffer of confirmed swing highs and swing lows detected via a configurable pivot lookback. When at least three swing highs and three swing lows are available, the engine tests them against the following Elliott Wave rules:
Wave 2 must not retrace beyond the start of Wave 1 — validated by checking that the second swing low remains above the first swing low (bullish) or below the first swing high (bearish)
Wave 3 must not be the shortest impulse wave — validated by comparing the Wave 3 range to at least 70% of the Wave 1 range
Wave 4 must not overlap into Wave 1 territory — validated by checking that the Wave 4 low stays above the Wave 2 low (bullish) or Wave 4 high stays below the Wave 2 high (bearish)
Wave 2 retracement must be between 15% and 95% of Wave 1 — filters out patterns that are too shallow or too deep
Wave 4 retracement must be between 10% and 90% of Wave 3 — ensures proper proportionality
Temporal ordering must be correct — all six pivot points must occur in strict chronological sequence
Wave 5 must exceed Wave 3's high (bullish) or undercut Wave 3's low (bearish) — confirms the impulse completed with a new extreme
When all rules pass simultaneously, the engine marks the complete 1–5 impulse structure on the chart with numbered labels and connecting wave lines. Wave 3 and Wave 5 receive larger, brighter labels because they represent the highest-momentum phases of the impulse.
Corrective Wave Detection (ABC Pattern)
After an impulse completes, the engine monitors for corrective price action:
For a completed bullish impulse — the engine watches for a pullback that retraces between 20% and 72% of the impulse range, indicating an ABC correction is forming
For a completed bearish impulse — the engine watches for a bounce that retraces between 20% and 72% of the impulse range
The correction must originate after Wave 5 completes — ensures proper sequence
A configurable cooldown prevents multiple correction labels from firing on the same structure
Corrective zones are particularly valuable because they represent potential entry opportunities in the direction of the prior impulse trend — the market is pulling back within a larger trend structure.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📐 Fibonacci Golden Zone System
When an impulse wave completes, the engine automatically projects Fibonacci retracement levels across the entire impulse range:
38.2% Retracement — the shallowest institutional retracement level
50.0% Retracement — the equilibrium midpoint of the impulse
61.8% Retracement — the golden ratio level, highest-probability reversal zone
The area between the 38.2% and 61.8% levels forms the Golden Zone — a shaded box that represents the highest-probability area for the corrective wave to terminate and the trend to resume. This is where institutional traders typically place their limit orders.
The Golden Zone system includes intelligent lifecycle management:
Zones automatically expire after a configurable maximum age (default 80 bars)
Zones are removed when price closes significantly beyond them (1.5 ATR past the zone boundary) — indicating the zone has been invalidated
Maximum active zones are capped (configurable) to keep the chart clean
The indicator tracks whether price is currently inside a bullish or bearish Golden Zone — this information feeds directly into the confluence scoring engine
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Wave 3 Setup Detection
Wave 3 is traditionally the strongest and longest wave in Elliott Wave theory. AlphaX Wave includes a dedicated Wave 3 Setup Scanner that identifies potential Wave 3 initiations in real-time:
Detects when price has completed a valid Wave 1 (impulse move) followed by a Wave 2 (pullback between 15% and 90% of Wave 1)
Confirms the pullback low remains above the Wave 1 starting point (bullish) or below it (bearish) — validating the wave structure
Requires a directional confirmation candle (close above prior high for bullish, close below prior low for bearish)
Marked with small purple triangles — ▲ below bar for bullish Wave 3 setups, ▼ above bar for bearish
Wave 3 setups are among the highest-probability trade entries in all of technical analysis because they align with the strongest phase of the impulse trend.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🧠 8-Factor Confluence Scoring Engine
Every potential trade signal is evaluated across eight independent confluence factors . Each factor scores either 0 or 1 point, producing a confluence score from 0 to 8. Only signals meeting your configured minimum confluence threshold are displayed.
Factor 1 — Wave 3 Setup (W3)
Is a valid Wave 3 initiation pattern present?
This is the single most powerful factor — Wave 3 moves are the strongest in Elliott theory
Factor 2 — ABC Correction Zone (ABC)
Is the market currently in a corrective phase following a completed impulse?
Corrections within trends offer the best risk/reward entries
Factor 3 — Price in Fibonacci Golden Zone (FIB)
Is price currently inside an active Golden Zone box (between 38.2% and 61.8% retracement)?
Golden Zone entries have institutional backing
Factor 4 — Price at Specific Fibonacci Level (FLV)
Is price at or near the 38.2%, 50.0%, or 61.8% retracement level specifically?
Precision Fibonacci entries add edge beyond just being "in the zone"
Factor 5 — Momentum Alignment (MOM)
Are RSI slope, MACD direction, MACD histogram momentum, and Stochastic all aligned in the signal direction?
Requires at least 2 of 5 momentum sub-factors to confirm
Factor 6 — RSI Divergence (DIV)
Is a confirmed RSI divergence present (price makes new low but RSI makes higher low, or vice versa)?
Divergence is one of the most reliable reversal confirmation signals
Factor 7 — Volume Confirmation (VOL)
Is current volume above the moving average with a candle closing in the signal direction?
Volume validates institutional participation in the move
Factor 8 — EMA Trend Alignment (EMA)
Are the Fast (21), Medium (50), and Slow (200) EMAs properly stacked in the signal direction?
Or is price at least above/below the 200 EMA with Fast above/below Medium?
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Confidence Scoring & Grade System
Beyond the 8-factor confluence count, each signal receives a weighted confidence score from 0 to 100% that reflects the quality and strength of the setup:
Wave Structure (up to 22 points)
Wave 3 Setup present = 22 points (highest single contributor)
ABC Correction active = 12 points
Fibonacci Alignment (up to 22 points)
Price inside Golden Zone = 15 points
Price at 61.8% level = 7 points, at 50.0% = 5 points, at 38.2% = 4 points
Momentum Confirmation (up to 23 points)
Momentum aligned (2+ sub-factors) = 12 points
Strong momentum (4+ sub-factors) = additional 6 points
MACD crossover on signal bar = 5 points
RSI Analysis (up to 14 points)
RSI divergence confirmed = 10 points
RSI slope in ideal range = 4 points
RSI already at opposite extreme (penalty) = -5 points
Volume & Trend (up to 20 points)
Volume above average + directional candle = 5 points
Volume spike + directional candle = 3 points
Full EMA alignment (Fast > Medium > Slow or reverse) = 8 points
Cloud direction confirmed = 4 points
Signals are classified into grades based on the final confidence score:
A+ Grade (70%+) — Exceptional setup. Maximum confluence across wave structure, Fibonacci, momentum, and trend.
A Grade (55–69%) — High-quality setup. Most major factors aligned.
B Grade (40–54%) — Solid setup. Core conditions met with moderate confirmation.
C Grade (25–39%) — Marginal setup. Basic conditions met but weaker confirmation. Hidden by default.
D Grade (below 25%) — Weak setup. Minimal confluence. Hidden by default.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Signal Labels — What They Show
Each entry signal label displays comprehensive information in a compact format:
Direction — ▲ LONG or ▼ SHORT with spaced lettering
Grade — A+, A, B, C, or D classification
Confidence Percentage — The weighted score from the confidence engine
Confluence Count — How many of the 8 factors are active (e.g., 5/8)
Active Factor Checklist — Shows exactly which factors contributed: ✓W3 ✓ABC ✓FIB ✓FLV ✓MOM ✓DIV ✓VOL ✓EMA
Label colors follow the grade system:
Bull signals — Bright green (A+), Primary green (A), Dim green (B), Neutral gray (C/D). All use dark text for readability.
Bear signals — Bright red (A+), Primary red (A), Dim red (B), Neutral gray (C/D). All use white text for readability.
A thin dotted line connects the signal label to the price bar, keeping the label offset from price action to avoid chart clutter.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 Smart SL/TP System — Structure-Based Risk Management
Every entry signal automatically generates three trade management levels — Stop Loss, Target 1, and Target 2 — using a multi-source calculation engine that prioritizes structural price levels over arbitrary ATR multiples.
Stop Loss Calculation
The SL engine searches for the optimal stop placement using this priority cascade:
Nearest swing structure — Finds the closest confirmed swing low (for longs) or swing high (for shorts) within a 50-bar lookback. Places the SL beyond this level with ATR padding.
ATR floor and cap — Ensures the SL is never too tight (70% of base ATR multiple) or too wide (180% of base ATR multiple) regardless of swing structure.
Confidence modifier — Higher-grade signals receive tighter stops (0.85× for A+, 0.92× for A, 1.0× for B, 1.15× for C/D). This reflects the higher-probability nature of strong setups.
Target 1 Calculation
TP1 represents the conservative take-profit level:
Nearest opposing swing — Searches for the closest swing high above entry (longs) or swing low below entry (shorts) that provides at least 1.2× the SL distance.
Fibonacci level targeting — If an active Fibonacci zone has a 38.2% or 50.0% level above/below entry that provides better targeting than the swing level, the Fib level is used.
Minimum R:R enforcement — TP1 is guaranteed to provide at least the configured ATR multiple (default 2.5×) of risk-reward.
Target 2 Calculation
TP2 represents the extended profit target:
Wave-based projection — If an impulse wave is active, TP2 is calculated as 61.8% of the total impulse range — representing the typical next-wave target.
Far swing structure — Searches for swing levels further than TP1 that provide at least 1.3× the TP1 distance.
Fibonacci extension — If the 61.8% Fibonacci level provides a target beyond TP1, it is used as TP2.
Minimum spacing — TP2 is guaranteed to be at least 1.5× the TP1 distance from entry.
Break-Even Protection
When TP1 is hit, the system automatically adjusts the Stop Loss to the entry price (break-even). The SL label changes to "BE" with a neutral color, visually confirming that the trade is now risk-free on the remaining position targeting TP2.
Hit Tracking
All SL/TP levels are tracked in real-time:
When a level is hit, the label changes color — red fill for SL hits, green fill for TP hits
SL hits are processed first — if the SL is hit, TP levels for that trade are no longer tracked
TP1 must be hit before TP2 tracking activates the break-even mechanism
Historical SL/TP groups are automatically trimmed to keep the chart clean (configurable history count)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📐 Trend Context Layer
Three independent trend analysis systems provide structural context:
Triple EMA System
Fast EMA (21) — Yellow-green crosses. Immediate momentum reference.
Medium EMA (50) — Gray line. Intermediate trend filter.
Slow EMA (200) — Dark gray, thicker line. Macro structural backbone used in confidence scoring.
When all three are properly stacked (Fast > Medium > Slow for bullish, reverse for bearish), trend alignment scores maximum points.
Trend Cloud
Calculated from the midpoints of the highest high / lowest low over fast (9) and slow (26) periods
When the fast midpoint is above the slow midpoint, the cloud fills green — bullish bias
When below, the cloud fills red — bearish bias
Cloud direction adds 4 points to the confidence score when aligned with the signal
RSI Divergence System
Detects classical RSI divergence using pivot-based comparison
Bullish divergence — price makes a lower low but RSI makes a higher low
Bearish divergence — price makes a higher high but RSI makes a lower high
Divergence must occur within a valid lookback window (5–50 bars between pivots) and be recent (within 3 bars of the current RSI pivot)
Marked with small diamond shapes — green below bar for bullish, red above bar for bearish
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Momentum Engine
The momentum engine combines four oscillator systems into a unified momentum score:
RSI Slope — Smoothed RSI direction over 2 bars. Bullish when RSI is between 40–75 and rising. Bearish when RSI is between 25–60 and falling.
MACD Direction — MACD Line above Signal Line = bullish, below = bearish.
MACD Histogram Momentum — Histogram increasing = bullish momentum, decreasing = bearish momentum.
Stochastic Alignment — %K above %D with room to run (below 80) = bullish. %K below %D with room to fall (above 20) = bearish.
MACD Crossover — Fresh MACD crossover on the signal bar adds additional confirmation.
Scores of 2+ out of 5 confirm momentum alignment. Scores of 4+ indicate strong momentum — adding bonus points to the confidence score.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📐 Dashboard Intelligence
A comprehensive 3-column AlphaX-branded dashboard provides real-time analysis across all engine layers:
Wave & Fibonacci Status
Current wave phase — Impulse 1–5 (detected/active), Corrective ABC, or Scanning
Wave trend direction — Bullish or Bearish impulse context
Fibonacci status — In Golden Zone, at specific level, or no active zone
Active Fibonacci zone count
Momentum & Trend
Momentum state — Strong Bull/Bear, Bullish/Bearish, or Flat
Bull/Bear sub-factor scores (e.g., 3▲ 1▼)
EMA trend alignment — Bull Aligned, Bear Aligned, or Mixed
Price position relative to 200 EMA
Cloud direction — Bullish, Bearish, or Flat
Volume & Oscillators
Relative volume — Spike, High, Normal, or Dry with exact ratio
RSI state — Overbought, Oversold, Rising, Falling, or Neutral with numeric value
Confluence & Verdict
Bull confluence score — count out of 8, confidence percentage, and letter grade
Bear confluence score — count out of 8, confidence percentage, and letter grade
Verdict — the engine's overall assessment: High Confidence Long, High Confidence Short, Lean Long/Short with Caution, Mixed — Stand Aside, or No Clear Edge
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 How to Trade with AlphaX Wave — Step by Step
Step 1 — Identify the Wave Structure
Look for completed impulse patterns (numbered 0–5 on the chart)
Check the Dashboard: What is the current Wave Phase?
If "SCANNING" — no valid wave structure detected yet. Wait for pattern formation.
Step 2 — Wait for Correction or Wave 3 Setup
After an impulse completes, watch for the "ABC CORRECTION ZONE" label — this is where the market is pulling back within the trend
Watch for Wave 3 Setup triangles (▲/▼) — these mark the beginning of the strongest wave
Check if price is entering a Fibonacci Golden Zone (purple shaded box)
Step 3 — Enter on Confluence Signal
Wait for a graded entry label (▲ LONG or ▼ SHORT) to appear
Check the grade — A+ and A signals have the highest probability
Review the factor checklist — more ✓ marks = stronger setup
The SL and TP levels are automatically plotted for immediate trade management
Step 4 — Manage the Trade
Monitor the SL/TP levels on the chart — they update automatically
When TP1 is hit, the label lights up green and the SL moves to break-even
Hold the remaining position for TP2 risk-free
If SL is hit first, the label turns red — accept the loss and wait for the next setup
Step 5 — Read the Verdict
The Dashboard Verdict row summarizes the engine's real-time assessment
"HIGH CONFIDENCE LONG/SHORT" — all systems aligned, actively look for entries
"LEAN LONG/SHORT — CAUTION" — some alignment but not full, trade with reduced size
"MIXED — STAND ASIDE" — conflicting signals, do not trade
"NO CLEAR EDGE" — insufficient data, wait for structure to develop
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ When NOT to Trade — Reading the Warning Signs
Dashboard shows "SCANNING" — No valid wave structure detected. The market may be in a complex correction or transition phase.
Verdict shows "MIXED — STAND ASIDE" — Bull and bear confluence are both active simultaneously. Conflicting signals cancel each other.
Cloud is flat or rapidly switching colors — No established trend direction. Signals during cloud transitions are less reliable.
EMAs are tangled and flat — Range-bound market. Wave patterns in choppy conditions produce lower-quality signals.
Only C or D grade signals appearing — Insufficient confluence. These grades are hidden by default for a reason.
RSI showing "OVERBOUGHT" on a long signal — The confidence engine already penalizes this (-5 points), but it is worth noting visually as well.
Volume showing "DRY" — Low-volume environments reduce the reliability of all technical patterns including waves.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ Key Features
🔬 Automated Elliott Wave impulse detection (1–5) with strict rule validation
📐 ABC corrective pattern recognition with retracement depth validation
🎯 Wave 3 Setup Scanner — identifies the strongest wave initiation points
📊 Fibonacci Golden Zone projection with intelligent lifecycle management
🧠 8-factor confluence scoring — Wave, ABC, Fibonacci, Fibonacci Level, Momentum, Divergence, Volume, EMA
📈 Weighted confidence scoring (0–100%) with A+ through D grade classification
▲▼ Detailed signal labels showing grade, confidence, confluence count, and active factor checklist
🎯 Structure-based SL/TP system — swing levels, Fibonacci targets, and wave projections
🛡 Automatic break-even protection when TP1 is hit
📊 Real-time hit tracking with visual color changes on SL/TP labels
☁ Trend Cloud with gradient fill for instant directional bias
📐 Triple EMA system (21/50/200) for structural trend context
💎 RSI divergence detection with pivot-based validation
📊 Multi-oscillator momentum engine (RSI, MACD, Stochastic)
📊 Volume spike detection with configurable multiplier
📐 Comprehensive 3-column dashboard with verdict system
🎨 Cohesive triple-tone color theme — Green for bull, Red for bear, Purple for wave structure
🔔 10 alert conditions — signals, impulses, corrections, Wave 3 setups, and divergences
⚙ Fully configurable — wave detection, Fibonacci, momentum, signals, SL/TP, and all visuals
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙ Settings Reference
Wave Detection
Swing Detection Length — Pivot lookback for identifying swing highs and lows (default: 6)
Show Wave Count Labels — Toggle the numbered 0–5 labels on impulse waves
Show Wave Structure Lines — Toggle the connecting lines between wave points
Show Impulse Completion — Toggle the "IMPULSE COMPLETE" notification labels
Show Corrective Patterns — Toggle the "ABC CORRECTION ZONE" labels
Show Wave 3 Setup Markers — Toggle the purple triangle markers
Wave Pattern Cooldown — Minimum bars between wave pattern detections (default: 18)
Fibonacci
Show Fib Golden Zone Boxes — Toggle the shaded 38.2%–61.8% retracement zone
Max Fib Zone Boxes — Maximum simultaneous Golden Zones (default: 3)
Fib Zone Max Age — Bars before a zone auto-expires (default: 80)
Momentum
RSI Length / Smoothing — Core RSI calculation parameters
MACD Fast / Slow / Signal — MACD oscillator parameters
Show RSI Divergence — Toggle divergence diamond markers
Volume
Volume MA Length — Baseline period for volume comparison (default: 20)
Volume Spike Multiplier — Threshold for spike detection (default: 1.6×)
Show Volume Spike Dots — Toggle volume spike indicators at bar bottom
EMA Settings
Fast / Medium / Slow EMA — Independently toggle visibility and set periods
Defaults: 21 / 50 / 200
Trend Cloud
Show Trend Cloud — Toggle the gradient cloud fill
Cloud Fast / Slow Length — Midpoint calculation periods (default: 9 / 26)
Confluence Engine
Min Confluence Score — Minimum factors required for a signal (default: 3 of 8)
Show Entry Signals — Toggle signal labels
Signal Cooldown — Minimum bars between signals (default: 10)
Signal Label Offset — Distance below/above bar in ATR units (default: 3.0)
Show Grade C / D Signals — Toggle lower-quality signal visibility (default: off)
SL / TP
Show Stop Loss & Targets — Toggle all SL/TP visual elements
Stop Loss (× ATR) — Base ATR multiple for stop loss calculation (default: 2.0)
Target 1 (× ATR) — Base ATR multiple for conservative target (default: 2.5)
Target 2 (× ATR) — Base ATR multiple for extended target (default: 5.0)
Limit SL/TP History — Cap the number of visible historical trade levels
SL/TP History Count — Maximum trade groups shown (default: 8)
Move SL to Break Even after TP1 — Enable/disable break-even protection
Display
Show Dashboard — Toggle the information panel
Dashboard Position — Top Right, Top Left, Bottom Right, Bottom Left
Dashboard Text Size — Tiny, Small, Normal
Dashboard Background — Background color for the panel
Theme Colors
Bull Primary / Bright / Dim — Green family for bullish elements
Bear Primary / Bright / Dim — Red family for bearish elements
Wave Primary / Bright / Dim — Purple family for wave structure elements
Fibonacci Levels / Dim — Purple-pink family for Fibonacci zones
EMA colors — Fast (green), Medium (gray), Slow (dark gray)
Neutral — Gray for inactive/mixed states
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 Alert Conditions
Wave Long Signal — Fires when a graded bullish entry signal appears
Wave Short Signal — Fires when a graded bearish entry signal appears
Bullish Impulse Complete — Fires when a full 1–5 bullish impulse is detected
Bearish Impulse Complete — Fires when a full 1–5 bearish impulse is detected
Wave 3 Bull Setup — Fires when a bullish Wave 3 initiation pattern is detected
Wave 3 Bear Setup — Fires when a bearish Wave 3 initiation pattern is detected
RSI Bull Divergence — Fires when bullish RSI divergence is confirmed
RSI Bear Divergence — Fires when bearish RSI divergence is confirmed
Bullish ABC Correction — Fires when a bullish corrective zone is identified
Bearish ABC Correction — Fires when a bearish corrective zone is identified
All alert messages include {{ticker}} and {{interval}} placeholders for clean webhook integration.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 Default Settings — Optimized For
The default configuration is tuned for XAUUSD (Gold) and major instruments on the 5-minute to 1-hour timeframes :
Swing Length at 6 captures wave structure without excessive lag on intraday charts
Minimum confluence at 3/8 ensures signals have meaningful multi-factor backing
Signal cooldown at 10 bars prevents rapid-fire signals during volatile wave transitions
SL at 2.0 ATR with structure-based adjustment provides adaptive risk sizing
TP1 at 2.5 ATR and TP2 at 5.0 ATR provide minimum 1.25R and 2.5R risk-reward ratios
Break-even protection ensures profitable trades are protected after TP1
Grade C and D signals hidden by default to maintain signal quality
For other instruments or timeframes, adjust:
Higher timeframes (4H, Daily) — Increase Swing Length to 8–14, increase Wave Cooldown to 30–50, increase SL/TP ATR multiples
Lower timeframes (1m) — Reduce Swing Length to 4–5, reduce Signal Cooldown to 5–7, increase Min Confluence to 4
Forex majors — Use defaults, optionally reduce Swing Length to 5 for tighter wave detection
Crypto — Increase Swing Length to 8–10 (higher volatility), increase SL ATR multiple to 2.5–3.0
Fewer, higher-quality signals — Increase Min Confluence to 4–5, increase Signal Cooldown, hide Grade C/D
More signals — Reduce Min Confluence to 2, enable Grade C signals, reduce cooldown
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
👥 Who This Is For
📐 Elliott Wave Practitioners — Automated wave counting with strict rule validation eliminates subjective bias
📊 Fibonacci Traders — Automatic Golden Zone projection with lifecycle management removes manual drawing
🥇 Gold & Forex Intraday Traders — Optimized for instruments with clean wave structures on fast timeframes
🧠 Systematic Traders — The 8-factor confluence + weighted confidence system provides a fully quantitative framework
🎯 Traders who want complete trade plans — Entry, SL, TP1, TP2, and break-even all generated automatically
📈 Traders learning Elliott Wave — The visual wave labels and structure lines serve as an educational overlay
⚠ Traders who struggle with exit management — The SL/TP system with hit tracking and break-even automation removes emotional decision-making
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 Notes
Wave detection uses confirmed pivot points (offset by the swing length) — wave labels appear after structural confirmation, not in real-time. This prevents repainting.
The indicator requires sufficient bar history to populate swing buffers — allow at least 100+ bars of data before expecting wave pattern detection
Elliott Wave rules are applied as mathematical approximations of the classical theory — certain complex wave structures (extended waves, truncations, diagonal triangles) may not be detected
SL/TP levels are calculated at signal time and do not adjust afterward (except the break-even mechanism on TP1 hit)
Maximum 500 labels, 500 lines, and 500 boxes are used — on very low timeframes with extended history and many signals, oldest drawings may be automatically removed by PulseWire's rendering limits
The SL/TP history is automatically trimmed to the configured limit (default 8 trade groups = 24 labels/lines) to stay within PulseWire's drawing limits
All confluence factors and confidence scores are recalculated on every bar — the dashboard reflects the current bar's state, not the last signal's state
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ 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. Elliott Wave patterns, Fibonacci levels, and all signals are generated from historical and real-time price data using mathematical calculations — their accuracy or profitability is not guaranteed. Elliott Wave theory is inherently subjective and interpretive; automated detection provides one possible wave count among many valid alternatives. Past wave patterns and signal performance do 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 clarity, confidence, and precision from their charts. Indicator

SmartFlow SMCThis indicator provides automated market structure analysis
based on Smart Money Concepts (SMC). It identifies structural
breaks, liquidity levels, and session timing using confirmed-
candle logic to eliminate repainting.
█ METHODOLOGY
Market Structure Detection (BoS / MSS)
The script uses pivot-based swing detection with a configurable
lookback period. Swing highs and lows are identified using
ta.pivothigh() and ta.pivotlow() , then tracked
to maintain structural history.
Break of Structure (BoS) is detected when a confirmed
candle's body (close ) exceeds the current swing target level
in the direction of the existing trend. This indicates trend
continuation.
Market Structure Shift (MSS) is detected when a confirmed
candle's body breaks the key pullback level against the existing
trend — the interim low in an uptrend or interim high in a
downtrend. This signals a potential trend reversal.
All detections use the previous closed bar , not the
current forming bar, ensuring signals do not repaint.
After a BoS is confirmed, the script tracks the highest high
(in uptrends) or lowest low (in downtrends) in real-time using
tracking variables. This compensates for the inherent delay in
pivot detection, so the BoS target level reflects actual price
extremes even before the next pivot formally confirms.
MSS Candidate Line
A dashed line drawn at the level where a trend reversal would
occur if broken. In an uptrend, this is the most recent pivot
low. In a downtrend, it is the most recent pivot high. This
provides advance visibility of where a structural shift would
trigger.
BoS Target Line
A dashed line showing the next level price needs to break for
trend continuation. Updates in real-time using both confirmed
pivots and tracked extremes.
█ LIQUIDITY DETECTION
Equal Highs / Equal Lows (EQH / EQL)
When two consecutive pivot highs (or lows) form within a
configurable tolerance percentage, they are marked as equal
levels. These represent clustered liquidity where stop orders
tend to accumulate — above for EQH (buy-side), below for EQL
(sell-side).
Buy Side / Sell Side Liquidity (BSL / SSL)
The most recent pivot high is marked as BSL, the most recent
pivot low as SSL. Only the latest level for each side is
displayed to maintain chart clarity.
Sweep Detection
A Sweep occurs when price wicks beyond a pivot level but the
candle body closes back inside. For a bullish sweep (SSL sweep),
the bar's low penetrates below the pivot low while both open and
close remain above it. This pattern indicates a liquidity grab
— price triggered stops below the level and reversed, suggesting
institutional accumulation. Bearish sweeps work inversely.
█ EMA 200
A 200-period Exponential Moving Average provides directional
bias context. The EMA line changes color based on whether
price is above (cyan, bullish bias) or below (red, bearish
bias). The info panel displays the EMA relationship as an
additional confluence filter.
When structure direction and EMA200 bias conflict (e.g.,
bullish structure but price below EMA200), the setup carries
lower confluence. When both align, the signal is stronger.
█ SESSION HIGHLIGHTING
Trading sessions are displayed as small colored squares at the
bottom of the chart:
Tokyo (09:00–15:00)
London (16:00–21:00)
New York (21:00–02:00)
Session times are adjustable and timezone-aware. This non-
intrusive display helps identify which session produced each
structural break.
█ INFO PANEL
A real-time table in the top-right corner displays:
Bias (Long/Short based on structure direction)
EMA200 position (Above/Below)
Current active session
Structure direction (Bullish/Bearish)
Swing Lookback value in use
█ WHAT MAKES THIS ORIGINAL
This indicator combines several concepts into a unified
structure-reading system:
1 — Hybrid pivot + tracking approach: After a pivot confirms,
the script continues tracking real-time highs/lows to compensate
for pivot detection delay. This is not standard in most SMC
indicators, which rely solely on pivot confirmation.
2 — Confirmed-candle logic throughout: All BoS, MSS, and Sweep
detections use close , ensuring zero repainting.
3 — MSS candidate + BoS target as live projection lines:
Rather than only marking historical events, the script projects
forward where the next structural break or reversal would occur.
4 — Sweep as a distinct event: Most SMC indicators treat sweeps
as part of BoS/CHoCH logic. This script separates sweep
detection (wick-based liquidity grab) from structural breaks
(body-based), allowing traders to distinguish between the two.
█ SETTINGS
Swing Lookback — Number of bars left and right to confirm
a pivot point. Lower values (3–4) detect more frequent swings.
Higher values (6–10) detect only major structure. Adjust based
on timeframe and instrument.
EQH/EQL Tolerance — Maximum percentage difference between
two pivot highs (or lows) for them to count as "equal."
Default: 0.05%.
Session Timezone — Adjusts session highlighting. Options:
Asia/Tokyo, Asia/Shanghai, UTC, America/New_York, Europe/London.
All visual elements (colors, visibility toggles) are individually
configurable in the settings panel.
█ USAGE NOTES
Works on any instrument (Forex, Commodities, Crypto, Indices)
Works on any timeframe — adjust Swing Lookback accordingly
BoS and MSS labels appear one bar after the signal bar
Designed as an overlay indicator — apply directly to chart
Indicator

[ A L P H A X ] Order Blocks Institutional Supply & Demand ZoneAlphaX Order Blocks – Institutional Supply & Demand Zone Intelligence, Strength Scoring & Flip Detection
AlphaX Order Blocks is a professional-grade supply and demand zone detection system built on a proprietary multi-factor zone strength scoring engine. It identifies institutional order block zones where smart money has left footprints, tracks zone freshness through multi-touch degradation, detects flip zones when broken levels reverse polarity, and delivers confidence-scored entry signals at the highest-probability reaction points. Designed for traders who want to see where the institutions are positioned on instruments like XAUUSD, indices, forex majors, and crypto.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔬 The Order Block Engine — How It Works
At the core of AlphaX Order Blocks is an institutional zone detection algorithm that identifies price levels where aggressive buying or selling originated. Unlike simple support and resistance lines, these zones represent areas where large orders were placed — and where unfilled orders may still be waiting.
The detection process follows three steps:
Step 1 — Impulse Move Detection
The engine scans for consecutive same-direction candles (configurable from 2 to 5) that confirm a strong directional impulse
At least one candle in the sequence must have above-average volume (measured against a configurable Volume SMA)
This combination of directional conviction plus volume commitment identifies moves driven by institutional participation, not retail noise
Step 2 — Origin Candle Identification
Once an impulse is detected, the engine looks back up to 6 bars (configurable) for the origin candle — the opposite-color candle where the move started
For supply zones, this is the last bullish candle before the bearish impulse — the level where sellers overwhelmed buyers
For demand zones, this is the last bearish candle before the bullish impulse — the level where buyers overwhelmed sellers
The origin candle's high and low define the zone boundaries, expanded by an ATR-based padding for robustness
Step 3 — Volume Delta Calculation
During the origin-to-impulse sequence, the engine calculates the net volume delta — total buying volume minus total selling volume
This delta is displayed on each zone and used in the strength scoring system
A large negative delta on a supply zone confirms strong selling pressure at that level
A large positive delta on a demand zone confirms strong buying pressure at that level
Fresh zones appear with bold borders and bright colors. As they get tested, they visually degrade — giving you an instant read on zone quality without checking any numbers.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Six Core Features
AlphaX Order Blocks combines six independent analysis layers into a single cohesive system:
1 ─ Supply Zones (Red Boxes)
Supply zones mark price levels where institutional selling originated. Each zone box displays:
Tier Rating — S, A, B, or C based on the 6-factor strength score
Touch Count — How many times price has tested this zone (×0, ×1, ×2, etc.)
Volume Delta — Net selling pressure at the zone origin
Strength Percentage — The composite score from 0 to 100
Visual styling degrades automatically as zones weaken:
Fresh (0 touches) — Bold solid border, bright color, full opacity
Tested (1 touch) — Solid border, slightly reduced opacity
Multi-tested (2+ touches) — Dashed border, reduced opacity
Weak (max touches reached) — Dotted border, heavily faded — zone is nearly exhausted
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2 ─ Demand Zones (Green Boxes)
Demand zones following the same tier/touch/delta/strength display format
Demand zones mark price levels where institutional buying originated. They follow the identical visual degradation system as supply zones but in the green color family.
Green Bold Box — Fresh, untested demand zone with highest reaction probability
Green Dashed Box — Tested zone, still valid but weakening
Green Dotted Box — Heavily tested zone, likely to break on next visit
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
3 ─ Flip Zone Detection (Purple Boxes)
One of the most powerful concepts in institutional trading is polarity reversal — when a broken support level becomes resistance, or a broken resistance level becomes support. AlphaX Order Blocks automates this:
When price closes above a supply zone, the zone is deleted and a new demand zone is created at the same level with a purple color
When price closes below a demand zone, the zone is deleted and a new supply zone is created at the same level with a purple color
Flip zones receive a +10 point bonus in the strength scoring system because institutional traders frequently use broken levels as new entry points
This feature can be toggled on/off independently
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
4 ─ Confidence-Scored Entry Signals (▲ / ▼)
Entry signal labels with S/A/B tier classification and strength percentage
When price enters a high-quality zone and produces a confirmation candle, the signal engine fires a scored entry:
▲ Green Label (Demand Signal) — Dark text on green background. Price entered a demand zone and closed with a bullish candle.
▼ Red Label (Supply Signal) — White text on red background. Price entered a supply zone and closed with a bearish candle.
Signals only fire when the zone's strength score meets your configured minimum threshold (default 40%). This prevents signals at weak, over-tested zones.
Each signal is classified into tiers:
S-Tier (75%+) — Highest probability. Fresh zone, high volume, strong departure, EMA confluence.
A-Tier (55–74%) — High probability. Most factors aligned.
B-Tier (40–54%) — Moderate probability. Basic conditions met.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
5 ─ Risk/Reward Projection
Dotted projection lines from entry to nearest opposite zone with R:R ratio displayed
When an entry signal fires, the system automatically projects a take-profit target to the nearest opposite zone :
Demand signal → Target projects to the nearest supply zone above
Supply signal → Target projects to the nearest demand zone below
The R:R ratio is calculated and displayed (e.g., "TP 2.3R")
This gives you an instant read on whether the trade offers sufficient reward relative to risk
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
6 ─ Proximity Warnings
Orange warning label appearing when price approaches a zone — time to prepare
The proximity engine continuously monitors the distance between current price and all active zones. When price comes within the configurable ATR distance of a zone:
An orange ⚠ warning label appears showing the zone type and distance percentage
This gives you advance notice to prepare for a potential reaction — set alerts, tighten stops, or prepare entries
Works for both supply zones above and demand zones below
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🧠 6-Factor Zone Strength Scoring
Every zone is continuously scored from 0 to 100 based on six independent factors. This score determines the tier rating, visual styling, and signal eligibility.
Freshness — Untested Zones Score Highest (up to 25 points)
0 touches = 25 points — Fresh zone, never tested, highest probability
1 touch = 18 points — Tested once, still strong
2 touches = 10 points — Multi-tested, weakening
3 touches = 4 points — Nearly exhausted
4+ touches = 0 points — Weak zone, likely to break
Volume at Origin (up to 20 points)
Compares the volume at the origin candle to the volume SMA
Volume ratio > 3.0× = 20 points (institutional-grade volume)
Volume ratio > 2.0× = 16 points
Volume ratio > 1.5× = 12 points
Volume ratio > 1.0× = 7 points (above average)
Departure Velocity (up to 20 points)
Measures how aggressively price left the zone (in ATR units)
Fast departures indicate strong institutional commitment — they want to get filled and move price away quickly
Velocity > 3 ATR = 20 points
Velocity > 2 ATR = 15 points
Velocity > 1 ATR = 10 points
Zone Age (up to 15 points)
Younger zones score higher — they are more relevant to current market conditions
Under 20 bars old = 15 points
Under 50 bars old = 12 points
Under 100 bars old = 8 points
Under 200 bars old = 4 points
Over 200 bars old = 1 point
EMA Confluence (up to 10 points)
Demand zones score higher when price is below the 200 EMA (buying into weakness)
Supply zones score higher when price is above the 200 EMA (selling into strength)
This adds structural trend context to zone quality
Flip Zone Bonus (up to 10 points)
Zones created from polarity reversal receive a flat 10-point bonus
Broken support becoming resistance (or vice versa) is one of the most reliable patterns in institutional trading
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📐 Dashboard Intelligence
A comprehensive AlphaX-branded dashboard provides real-time zone analytics organized into four sections:
Zone Inventory
Active supply and demand zone counts
Breakdown by status: F (Fresh), T (Tested), W (Weak)
Total flip zone count
Market Bias
Strength-weighted zone bias — shows whether demand or supply zones dominate the current price area
EMA trend direction (Strong Bull / Bull / Bear / Strong Bear / Cross)
RSI with zone classification (OB / OS / HIGH / LOW / MID)
Nearest Zones
Nearest supply zone above current price — with price level, strength score, and distance percentage
Nearest demand zone below current price — with price level, strength score, and distance percentage
Position indicator — shows whether price is closer to supply or demand
Signal Status
Last signal type and how many bars ago it fired
Current volume status relative to the SMA (Spike / High / Normal / Dry)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 How to Trade with AlphaX Order Blocks — Step by Step
Step 1 — Identify the Zone Landscape
Look at the chart for active supply (red) and demand (green) zones
Check the Dashboard: Which zones are fresh (F)? Which are tested (T)?
Note any purple flip zones — these are high-probability levels
Step 2 — Wait for Price to Approach a Zone
When the ⚠ proximity warning appears, prepare for a potential reaction
Check the zone's tier rating — S and A tier zones have the highest reaction probability
Ignore C-tier zones unless other confluence is present
Complete trade flow: Zone detection → Proximity warning → Price enters zone → Entry signal → Risk/Reward projection
Step 3 — Enter on Confirmed Signal
Wait for a scored entry label (▲ or ▼) to appear
Confirm the tier — S-Tier and A-Tier signals have the highest probability
Place your stop loss beyond the opposite side of the zone
Step 4 — Set Target Using R:R Projection
The system automatically projects a dotted line to the nearest opposite zone
The R:R ratio is displayed — only take trades offering at least 1.5R or better
Use the projected target as your primary take-profit level
Step 5 — Monitor Zone Degradation
If you are in a trade and the target zone changes from solid to dashed border, it may break — consider tightening your take-profit
If your entry zone starts getting tested from the wrong side, the thesis may be failing — consider a stop adjustment
Step 6 — Understand Zone Breaks
When a zone breaks (candle closes through it), the zone is automatically deleted
If flip detection is enabled, a new opposite zone appears at the same level
Zone breaks often indicate a change in institutional bias — respect them
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ When NOT to Trade — Zone Quality Filters
Not all zones are created equal. AlphaX Order Blocks gives you clear visual and numerical cues to avoid low-quality setups:
Avoid these conditions:
C-Tier zones only — If no S, A, or B tier zones are near price, the area lacks institutional interest
All zones heavily tested — If every zone shows ×3 or ×4 touches with dashed/dotted borders, the levels are exhausted
Dashboard shows "BALANCED" bias — When supply and demand strength are equal, there is no clear institutional edge
Volume shows "DRY" — Low volume environments produce unreliable zone reactions
Multiple flip zones clustered — Heavy flip activity indicates a choppy, indecisive market where zones break frequently
What to do:
Wait for new fresh zones to form with strong volume
Look for zones where the departure velocity was high (the market left aggressively)
Switch to a higher timeframe to find larger, more significant zones
Only trade zones that align with the EMA trend direction
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ Key Features
🔬 Institutional zone detection using consecutive impulse candles + volume confirmation
🏗 6-factor zone strength scoring (freshness, volume, velocity, age, EMA, flip)
🏷 S/A/B/C tier zone classification with readable labels and strength percentages
👆 Multi-touch tracking with automatic visual degradation (solid → dashed → dotted → faded)
🔄 Automatic flip zone detection — broken supply becomes demand and vice versa (purple zones)
▲▼ Confidence-scored entry signals at high-quality zone reactions
📐 Risk/Reward auto-projection to nearest opposite zone with R:R ratio
⚠ Proximity warnings when price approaches active zones
📊 EMA confluence scoring — zones aligned with trend structure score higher
📈 Comprehensive AlphaX-branded dashboard — zone inventory, market bias, nearest zones, signal status
🎨 Cohesive triple-tone color theme — Green for demand, Red for supply, Purple for flip zones
🔔 15+ alert conditions — zone detection, touches, signals by tier, and combined
⚙ Fully configurable — detection sensitivity, zone behavior, scoring weights, and all visuals
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙ Settings Reference
Zone Detection
Consecutive Candles Required — Number of same-direction candles for impulse detection (default: 3)
Origin Candle Lookback — How far back to search for the origin candle (default: 6)
Volume Threshold Multiplier — Volume must exceed SMA × this value (default: 1.0)
Volume SMA Length — Baseline period for volume comparison (default: 50)
Zone Height (ATR Multiple) — Controls the vertical thickness of zone boxes (default: 1.5)
Max Active Zones Per Side — Cap on simultaneous supply and demand zones (default: 8)
Zone Cooldown — Minimum bars between new zones of the same type (default: 10)
Zone Behavior
Max Touches Before Weak — After this many tests, zone is visually degraded (default: 4)
Require Close to Break Zone — Prevents wick-through fake breaks (default: enabled)
Detect Flip Zones — Enable/disable polarity reversal detection (default: enabled)
Confluence
Fast EMA Period — Short-term trend reference (default: 21)
Slow EMA Period — Long-term structural reference (default: 200)
Show EMAs — Toggle EMA plot visibility
Use EMA Confluence in Scoring — Add/remove EMA from strength calculation
Signals
Show Entry Signals — Toggle entry labels
Min Zone Strength for Signal — Minimum score required (default: 40%)
Signal Cooldown — Minimum bars between signals (default: 5)
Show Proximity Warnings — Toggle approach alerts
Proximity Distance — How close price must be to trigger warning (default: 1.5 ATR)
Risk/Reward
Show Risk/Reward Projection — Toggle the dotted target line and R:R label
Dashboard
Show Dashboard — Toggle the information panel
Position — Top Left, Top Right, Bottom Left, Bottom Right
Dashboard Text Size — Tiny, Small, Normal
Colors
Bull / Demand Primary / Bright / Dim — Green family for demand zones
Bear / Supply Primary / Bright / Dim — Red family for supply zones
Flip Zone — Purple for polarity-reversed zones
Proximity Warning — Orange for approach alerts
Neutral / Neutral Light — Gray for structural elements
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 Alert Conditions
New Supply Zone Detected — Fires when a fresh supply zone is created
New Demand Zone Detected — Fires when a fresh demand zone is created
Supply Zone Touched — Fires when price enters a supply zone
Demand Zone Touched — Fires when price enters a demand zone
S/A/B-Tier Demand Signal — Confidence-based demand entry alerts
S/A/B-Tier Supply Signal — Confidence-based supply entry alerts
Any Demand / Supply / Zone Signal — Combined alert conditions
All alert messages include {{ticker}} and {{interval}} placeholders for clean webhook integration.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 Default Settings — Optimized For
The default configuration is tuned for XAUUSD (Gold), major forex pairs, and indices on the 5-minute to 1-hour timeframes :
3 consecutive candles strikes the balance between sensitivity and reliability
Volume multiplier at 1.0× captures most institutional moves without over-filtering
Zone cooldown at 10 bars prevents cluster creation in volatile periods
Max 4 touches before weak aligns with institutional order absorption theory
EMA confluence enabled for trend-aligned zone scoring
For other instruments or timeframes, adjust:
Higher timeframes (4H, Daily) — Increase Origin Lookback to 8–10, increase Zone Height to 2.0+ ATR
Scalping (1m, 5m) — Reduce Consecutive Candles to 2, reduce Cooldown to 5–7 bars
Crypto — Increase Zone Height to 2.0–3.0 ATR (higher volatility), increase Volume Multiplier to 1.5×
Forex majors — Use defaults, optionally reduce Volume Multiplier to 0.8× for pairs with lower tick volume
Cleaner zones — Increase Consecutive Candles to 4–5, increase Volume Multiplier to 1.5×
More zones — Decrease Consecutive Candles to 2, decrease Volume Multiplier to 0.7×, increase Max Zones
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
👥 Who This Is For
🏛 Institutional/Smart Money Traders — Designed to identify where large orders originated and where unfilled orders may remain
📐 Supply & Demand Traders — Automated zone detection with strength scoring replaces manual drawing
🥇 Gold & Forex Traders — Tuned for assets with clear institutional participation patterns
🧠 Systematic Traders — The 6-factor scoring system provides a quantitative framework for zone quality assessment
📊 Breakout Traders — Flip zone detection automatically identifies broken levels as new opportunity zones
📈 Traders who value clean charts — No clutter. Zones auto-degrade and auto-remove. Only relevant levels remain.
⚠ Traders who struggle with zone selection — The tier system physically tells you which zones are worth trading and which to ignore
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 Notes
All zone detections are confirmed on bar close — zones do not repaint or move after creation
Zone break confirmation uses candle close by default (not wicks) to prevent fake-outs — this can be toggled off for aggressive trading
Flip zones inherit a reduced departure velocity (70% of original) to account for diminished institutional interest at reversed levels
Volume delta uses candle direction (close vs open) as a proxy for buy/sell pressure — this is an approximation, not true order flow
Dashboard updates on the last bar only for performance optimization
Maximum 500 boxes, 500 labels, and 500 lines are used — on very low timeframes with extended history, oldest drawings may be automatically removed by PulseWire's rendering limits
Overlapping zone prevention runs at creation time — if a new zone would overlap an existing one of the same type, it is not created
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ 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 and zone detections are generated from historical and real-time price data using mathematical calculations — their accuracy or profitability is not guaranteed. Supply and demand zones represent areas of historical interest, not guaranteed future reaction points. Past zone behavior does not guarantee future price 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 demand clarity, confidence, and precision from their charts. Indicator

[ A L P H A X ] Swing Architect Predictive Swing Mapping AlphaX Swing Architect – Predictive Swing Mapping, Fibonacci Target Projection & Exhaustion Detection
AlphaX Swing Architect is a professional-grade swing analysis and projection system built on a proprietary multi-factor swing engine. It detects completed swing highs and lows, measures their historical characteristics, and projects where the next swing is statistically likely to terminate — using Fibonacci-scaled target zones, time-based duration estimates, and real-time exhaustion tracking. Designed for swing traders and intraday position traders on XAUUSD, indices, forex, and crypto.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔬 The Swing Engine — How It Works
At the core of AlphaX Swing Architect is a dynamic swing detection system that identifies confirmed swing highs and swing lows using adaptive highest/lowest scanning across a configurable lookback window. Unlike simple pivot detection, this engine waits for structural confirmation — a swing high is only registered when price breaks below a new high after establishing it, and a swing low is only registered when price breaks above a new low after establishing it.
Once a swing completes, the engine measures three critical properties:
Swing Size — The percentage move from swing high to swing low (or vice versa)
Swing Duration — How many bars the swing took to complete
Swing Velocity — The speed of the move (percentage per bar)
These measurements are stored in a rolling historical buffer (configurable from 3 to 25 samples). The engine then uses this history to project where and when the current swing is likely to end.
Three projection methods are available:
Average — Balanced projection using the arithmetic mean of all samples
Median — Outlier-resistant projection using the middle value
Weighted — Recency-biased projection where recent swings carry more influence than older ones
The Weighted method adapts fastest to changing market conditions — ideal for instruments that alternate between calm and volatile phases.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Six Analysis Layers
AlphaX Swing Architect combines six independent analysis layers into a single cohesive system:
1 ─ Swing Zones (Shaded Boxes)
Shaded boxes mark the confirmed swing high and swing low levels. Each box extends forward to the projection offset and displays:
The exact price level of the swing point
Volume data — Buy volume sum at swing lows, Sell volume sum at swing highs
Directional arrows — ▲ for support zones (swing lows), ▼ for resistance zones (swing highs)
The boxes are expanded vertically using ATR-based padding so the text sits clearly inside the zone without overlapping with price action. Box colors follow the AlphaX theme — green for bullish swing lows (support), red for bearish swing highs (resistance).
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2 ─ Swing Leg Lines
Solid colored lines connecting swing highs to swing lows — green for bullish legs, red for bearish legs
Each completed swing leg is drawn as a solid line connecting the swing high to the swing low. This provides immediate visual context for the market's structural rhythm.
Green lines — Bullish swing legs (price moved from low to high)
Red lines — Bearish swing legs (price moved from high to low)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
3 ─ Fibonacci Target Projection
This is the primary predictive feature. Based on the historical average swing size, four target levels are projected forward:
0.618 Level (Teal) — Conservative target. The minimum expected move if the swing follows historical patterns. Ideal for partial profit taking.
1.000 Level (Green/Red) — The full projected move based on historical average. This is the primary target — the dashed projection line terminates here.
1.272 Level (Orange) — Extended target. Reached during momentum continuation moves. Indicates the swing is stronger than average.
1.618 Level (Red) — Extreme target. Reached during blow-off tops or capitulation sell-offs. Indicates exceptional momentum — also a high-probability exhaustion zone.
Each level is displayed as a short horizontal marker with a label showing the Fibonacci ratio. The main projection line (dashed) connects the last swing point to the 1.000 target level and shows both the projected percentage move and the target price.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
4 ─ Time Projection
Vertical dotted line showing the estimated number of bars until swing completion
Using the weighted average of historical swing durations, the engine projects how many bars the current swing is expected to last. This appears as a vertical dotted line at the estimated completion point.
Helps traders anticipate when a reversal might occur, not just at what price
Particularly useful for time-based strategies and options trading where timing matters as much as direction
Can be toggled on/off independently
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
5 ─ Exhaustion Detection System
Orange warning label appearing when the current swing reaches the configurable threshold of the projected average
The exhaustion engine continuously tracks the current swing's progress as a percentage of the projected average swing size. When the current move reaches the configurable threshold (default 85%), a warning fires.
⚠ Exhaustion Warning — Appears on the chart showing current progress vs projected target (e.g., "⚠ 2.1% / 2.5%")
This is the highest probability reversal zone — historical data suggests the swing is running out of steam
The warning does not guarantee reversal but indicates that statistically, most swings of this instrument have completed by this point
Configurable threshold allows aggressive (70%) or conservative (100%) detection
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
6 ─ Confidence-Scored Reversal Signals
When the exhaustion system detects that a swing has reached its projected completion zone, the signal engine evaluates multiple confluence factors before generating an entry signal.
▲ Green Label (Bull Signal) — Dark text on green background. Fires when a bearish swing reaches exhaustion and a bullish reversal candle confirms.
▼ Red Label (Bear Signal) — White text on red background. Fires when a bullish swing reaches exhaustion and a bearish reversal candle confirms.
Each signal is classified into tiers based on confidence score:
S-Tier (75%+) — Highest probability. Strong trend alignment, high consistency, volume confirmation, deep exhaustion.
A-Tier (55–74%) — High probability. Most factors aligned but one or two may be neutral.
B-Tier (35–54%) — Moderate probability. Basic conditions met but some factors are weak.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🧠 Multi-Factor Confidence Scoring
Every reversal signal is scored by a real-time confidence engine that evaluates six independent factors:
Trend Alignment (up to 25 points)
HH/HL structure detected → bullish signal scores maximum
LH/LL structure detected → bearish signal scores maximum
Neutral structure → reduced score
Counter-trend signal → zero points (strongest filter)
Exhaustion Depth (up to 20 points)
Current swing has reached or exceeded the projected average size
Only fires when exhaustion warning is active
Historical Consistency (up to 20 points)
Measures how consistent historical swing sizes have been using statistical coefficient of variation
Higher consistency → more reliable projections → higher score
Erratic swing sizes → lower score → projections less trustworthy
Volume Confirmation (up to 15 points)
Volume delta within the current swing leg
Bullish signals score higher when sell volume dominates (selling exhaustion)
Bearish signals score higher when buy volume dominates (buying exhaustion)
Sufficient History (up to 10 points)
Full sample buffer filled → maximum score
Partial buffer → reduced score
Prevents signals from firing before enough data exists
Zone Proximity (up to 10 points)
How close price is to the projected target level
At or beyond target → maximum score
Still far from target → reduced score
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📐 Trend Structure Analysis
The engine analyzes the sequence of swing highs and swing lows to determine the market's structural trend:
UPTREND — Higher highs and higher lows dominate recent swing history. Bullish signals carry maximum confidence. Bearish signals are penalized.
DOWNTREND — Lower highs and lower lows dominate. Bearish signals carry maximum confidence. Bullish signals are penalized.
NEUTRAL — Mixed structure. Both signal types receive moderate baseline scores.
The trend strength percentage shows how dominant the pattern is across the lookback window (configurable from 2 to 10 swings).
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Volume Delta Analysis
Within each active swing leg, the engine separates volume into bullish (close > open) and bearish (close < open) components:
Buy Volume Sum — Total volume on bullish candles within the leg
Sell Volume Sum — Total volume on bearish candles within the leg
Delta Volume — Buy minus Sell — shows net buying or selling pressure
Volume Ratio — Delta as a percentage of total — shows conviction strength
This data is displayed both on the swing zone boxes and in the dashboard.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📐 Dashboard Intelligence
A comprehensive AlphaX-branded dashboard provides real-time metrics organized into four sections:
Swing History
Individual percentage moves of the most recent completed swings
Color-coded from green (bullish) to red (bearish) with gradient intensity
Projection
Next swing direction and projected percentage size
Target price level
Projection method in use
Estimated duration in bars
Active Swing
Current progress as percentage of projected target
Exhaustion status (Active or Warning)
Current velocity compared to historical average (Fast / Normal / Slow / Crawling)
Analysis
Trend structure (Uptrend / Downtrend / Neutral) with strength percentage
Projection consistency score (High / Moderate / Low / Erratic)
Volume delta direction and magnitude
Total completed swing count
Current bull and bear signal confidence scores
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 How to Trade with AlphaX Swing Architect — Step by Step
Step 1 — Let History Build
Allow the indicator to detect at least 3–5 completed swings before acting on projections
Check the Dashboard: Is Consistency score above 50%? If not, projections are unreliable — wait for more data.
Step 2 — Identify the Active Swing
Look at the dashed projection line — it shows where the current swing is expected to terminate
Check the Fibonacci targets for multiple take-profit levels
Note the time projection — when is the swing expected to complete?
Step 3 — Monitor Exhaustion
Watch the Dashboard "Progress" row — it shows current swing size vs projected size
When progress exceeds 85% (or your configured threshold), the ⚠ exhaustion warning appears
This is the zone where reversals are most likely — prepare for a potential entry
Complete trade flow: Swing detection → Projection → Exhaustion warning → Reversal signal → Target
Step 4 — Enter on Confirmed Signal
Wait for a confidence-scored label (▲ or ▼) to appear
Check the tier — S-Tier and A-Tier signals have the highest probability
Enter in the signal direction with a stop loss beyond the swing extreme
Step 5 — Set Targets Using Fibonacci Levels
Use the 0.618 level for partial profit (conservative)
Use the 1.000 level for full projected target
Use the 1.272 and 1.618 levels for extended runners
Trail your stop as price moves through each level
Step 6 — Exit When Next Exhaustion Fires
When the new swing you entered reaches its own exhaustion zone, consider taking remaining profit
The cycle then repeats — wait for the next swing projection and reversal signal
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ Key Features
🔬 Dynamic swing detection with structural confirmation — no repainting
📐 Fibonacci-scaled multi-target projection (0.618, 1.000, 1.272, 1.618)
⏱ Time-based duration projection — estimates when the swing may complete
⚠ Real-time exhaustion detection — warns when swing reaches statistical completion zone
📊 Three projection methods — Average, Median, and Weighted (recency-biased)
🧠 Multi-factor confidence scoring — trend, exhaustion, consistency, volume, history, proximity
▲▼ S/A/B Tier classified reversal signals with readable label colors
📈 Trend structure analysis — HH/HL/LH/LL pattern detection with strength scoring
📊 Volume delta analysis — buy vs sell volume within each swing leg
☁ Expanded swing zones with clear text positioning away from price action
📐 Comprehensive AlphaX-branded dashboard with four analysis sections
🎨 Cohesive dual-tone color theme — Green for bull, Red for bear, Orange for warnings
🔔 15+ alert conditions — swing changes, signals by tier, and exhaustion warnings
⚙ Fully configurable — all detection lengths, thresholds, and visual elements adjustable
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙ Settings Reference
Swing Detection
Swing Detection Length — Bars used to find swing highs/lows (default: 30)
Pivot Confirmation Bars — Additional bars required to confirm swing validity
Projection
Future Projection Offset — How far targets are drawn into the future visually
Historical Swing Samples — Number of completed swings in the calculation buffer (default: 6)
Projection Method — Average, Median, or Weighted aggregation
Show Fibonacci Targets — Toggle the four Fib extension levels
Show Time Projection — Toggle the estimated duration marker
Swing Zones
Show Swing Zones — Toggle the shaded boxes at swing points
Show Swing Leg Lines — Toggle the connecting lines between highs and lows
Extend Zones Forward — Keep zones extending right indefinitely
Zone ATR Thickness — Controls the vertical size of the zone boxes
Exhaustion Detection
Show Exhaustion Warnings — Toggle the ⚠ warning labels
Exhaustion Threshold % — How much of the projected swing must be completed before warning (default: 85%)
Trend Context
Show Trend Context — Toggle HH/HL/LH/LL structure analysis
Trend Lookback Swings — How many swing points to analyze for structure (default: 4)
Signals
Show Entry Signals — Toggle reversal signal labels
Min Signal Confidence % — Minimum score required for a signal to display (default: 35%)
Signal Cooldown — Minimum bars between consecutive signals (default: 5)
Dashboard
Show Dashboard — Toggle the information panel
Position — Top Left, Top Right, Bottom Left, Bottom Right
Dashboard Text Size — Tiny, Small, Normal
Colors
Bull Primary / Bright / Dim — Green family for bullish elements
Bear Primary / Bright / Dim — Red family for bearish elements
Fib 0.618 / 1.000 / 1.272 / 1.618 — Individual Fibonacci level colors
Exhaustion Warning — Orange for warning elements
Neutral / Neutral Light — Gray for structural elements
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 Alert Conditions
New Bullish Swing Started — Fires when swing direction changes to bullish
New Bearish Swing Started — Fires when swing direction changes to bearish
Swing Direction Changed — Fires on any direction change
S-Tier Bull / Bear Reversal — Confidence ≥ 75%
A-Tier Bull / Bear Reversal — Confidence 55–74%
B-Tier Bull / Bear Reversal — Confidence 35–54%
Any Bull / Bear / Any Signal — Combined alert conditions
Swing Exhaustion Warning — Fires when current swing enters the projected completion zone
All alert messages include {{ticker}} and {{interval}} placeholders for clean webhook integration.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 Default Settings — Optimized For
The default configuration is tuned for XAUUSD (Gold) and major indices on the 5-minute to 1-hour timeframes :
Swing Detection Length at 30 captures meaningful swing structure without noise
6 historical samples provide balanced projection without excessive lag
Weighted projection method adapts to gold's alternating calm/volatile sessions
Exhaustion threshold at 85% catches most reversals before they fully form
Confidence minimum at 35% filters weak setups while keeping valid signals
For other instruments or timeframes, adjust:
Higher timeframes (4H, Daily) — Increase Swing Length to 40–60, increase Samples to 8–12
Lower timeframes (1m, 5m) — Reduce Swing Length to 15–25, keep Samples at 5–6
Forex majors — Use defaults or reduce Swing Length slightly for tighter swings
Crypto — Increase Swing Length to 35–50 (higher volatility creates wider swings)
Less noise — Increase Min Confidence %, increase Exhaustion Threshold, increase Swing Length
More signals — Decrease Min Confidence %, decrease Exhaustion Threshold to 75%
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
👥 Who This Is For
🥇 Swing Traders — Built specifically for identifying and projecting swing completion zones
📐 Fibonacci Traders — Automatic multi-level Fib projections based on actual historical swing data, not arbitrary levels
📊 Gold & Index Traders — Tuned for instruments with rhythmic swing behavior
🧠 Statistical Traders — Consistency scoring and confidence metrics provide a quantitative framework
⏱ Time-Based Traders — Duration projection helps anticipate when reversals may occur
📈 Traders who want a clean chart — No indicator soup. Zones, projections, and a dashboard — everything serves a purpose
⚠ Traders who struggle with exits — Exhaustion detection tells you when the move is statistically over
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 Notes
All calculations are non-repainting — swing points are confirmed only after structural validation
Projections update in real-time on the last bar as new swing data becomes available
Dashboard updates on the last bar only for performance optimization
Volume analysis uses candle direction (close vs open) as a proxy for buy/sell pressure — this is an approximation, not true order flow
Maximum 500 labels, 500 boxes, and 500 lines are used — on very low timeframes with extended history, oldest drawings may be automatically removed by PulseWire's rendering limits
The indicator requires at least 3 completed swings before projections become meaningful — allow sufficient chart history to load
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ 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 and projections are generated from historical and real-time price data using mathematical and statistical calculations — their accuracy or profitability is not guaranteed. Past swing behavior does not guarantee future swing sizes or durations. 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 clarity, confidence, and precision from their charts. Indicator

Indicator

AlphaX Consolidation Engine Squeeze Detection Breakout SignalsAlphaX Consolidation Engine — Squeeze Detection, Breakout Signals & Range Intelligence
AlphaX Consolidation Engine is a professional-grade volatility and range analysis system built on a proprietary 5-Factor Consolidation Scoring engine. It identifies low-volatility compression zones, tracks range boundaries in real-time, and delivers high-probability breakout signals governed by institutional-grade confluence filters. Designed for traders who want to capture explosive moves after periods of market calm on instruments like XAUUSD, indices, and forex majors.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📸 Visual Overview
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔬 The Consolidation Engine — How It Works
At the core of AlphaX Consolidation Engine is the 5-Factor Consolidation Score — a proprietary composite metric calculated on every bar to determine if the market is truly compressing or just moving sideways. It evaluates five independent volatility and trend factors:
ATR Percentile — Measures if current volatility is historically low compared to recent price action
Bollinger Band Width — Detects price compression via narrowing band width percentiles
TTM Squeeze — Confirms energy building when Bollinger Bands sit inside Keltner Channels
Linear Regression Slope — Mathematically confirms flat price movement (lack of directional bias)
ADX Filter — Validates the absence of a strong trend (ranging market confirmation)
Each factor contributes to a score from 0 to 100. When the score exceeds the threshold (default 50), the market is marked as Consolidating .
The system then tracks the Active Range — the high and low boundaries established during the consolidation period. This range is visually displayed as a shaded box with dotted boundary lines.
Consolidation Zone expanding as price compresses — darker shading indicates higher confidence
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Four Signal Layers
AlphaX Consolidation Engine produces four distinct types of signals, each with a specific role in the trade lifecycle:
1 ─ Consolidation Zones (Shaded Boxes)
Shaded boxes with dashed borders marking confirmed consolidation areas
These are not entry signals but context markers . When a box appears, it tells you the market is building energy. The box expands dynamically as the range widens during compression. When the box border changes color (Green for Bull, Red for Bear), it indicates a breakout has occurred.
Green Box — Bullish consolidation context
Red Box — Bearish consolidation context
Gray/Neutral — Forming or weak consolidation
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2 ─ Breakout Labels ( ▲ / ▼ )
www.pulsewire.com
Primary breakout labels appearing when price escapes the consolidation range with confidence
These are the primary entry signals . A label appears when price closes beyond the range boundary with sufficient momentum and volume.
How the breakout is detected:
Price closes beyond Range High/Low + ATR Threshold
Candle body is strong (no weak wicks)
Volume confirms the move (optional filter)
Confidence Score meets minimum threshold
Once a breakout label fires, it sets the directional bias . The system then switches from "Range Tracking" mode to "Trend Follow" mode for that specific setup.
▲ Green Label (Bull Breakout) — Dark text on bright green background for maximum readability
▼ Red Label (Bear Breakout) — White text on deep red background for maximum readability
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
3 ─ Retest Entries ( ▲ RETEST / ▼ RETEST )
Secondary entry signals appearing when price pulls back to the breakout level and holds
Breakouts often fake out before continuing. The Retest Engine monitors for price returning to the breakout level (old range high/low) within a configurable window.
▲ RETEST (Teal) — Price pulled back to bull breakout level, held support, and confirmed with bullish candle
▼ RETEST (Light Red) — Price rallied back to bear breakout level, rejected resistance, and confirmed with bearish candle
Retest signals often offer better risk-to-reward than the initial breakout because the stop loss can be placed tighter around the retest candle.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
4 ─ Exit Markers ( ✕ )
Small X marks indicating where the system detects trend exhaustion or reversal — time to consider taking profit
Exit signals appear as small marks and fire only after an entry has occurred. This prevents premature exit markers from cluttering the chart during strong trends.
TRAIL — Price hit the dynamic ATR trailing stop
FAILED — Price re-entered the original consolidation range (failed breakout)
FLIP — Opposite breakout signal fired (trend reversal)
Exit markers indicate that the trade thesis is no longer valid . Use them to close positions or tighten stops manually.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🧠 Multi-Confluence Confidence Scoring
Every breakout signal is scored by a real-time confidence engine that evaluates multiple independent factors and produces a score from 0 to 100. Only signals meeting your configured Min Breakout Confidence % threshold are displayed.
The scoring factors include:
Squeeze Quality (up to 20 points)
Was the TTM Squeeze active immediately before breakout?
Higher scores for breaks occurring after prolonged squeeze conditions
Consolidation Quality (up to 15 points)
How high was the 5-Factor Consolidation Score during the range?
Scores higher for "Extreme" or "Strong" consolidation zones vs "Weak" ones
Duration Bonus (up to 10 points)
Longer consolidation periods typically yield stronger breakouts
Scores increase for ranges lasting >15 bars
Volume Confirmation (up to 15 points)
Volume on the breakout bar relative to the 20-bar average
Volume bias during consolidation (Accumulation vs Distribution) adds/subtracts points
Momentum Alignment (up to 17 points)
MACD Histogram direction and strength
EMA Alignment (Fast vs Slow)
RSI position (not overextended)
Candle Quality (up to 5 points)
Body-to-range ratio of the breakout candle
Strong bodies score higher than wicky candles
Penalty Deductions
RSI overextension (already too high/low) — up to -8 points
Contradicting Volume Bias — up to -12 points
EMA against trend — up to -5 points
The default minimum confidence is set to 35% — optimized to filter noise while capturing valid setups. Increase to 50–60% for higher probability but fewer signals.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🛡 Range Intelligence & Volume Bias
Understanding what happened inside the range is key to predicting the breakout direction. AlphaX Consolidation Engine tracks volume flow during consolidation:
Accumulation — More bullish volume during consolidation suggests upward breakout probability
Distribution — More bearish volume during consolidation suggests downward breakout probability
Neutral — Balanced volume suggests a wait-and-see approach
This bias is factored into the Confidence Score. A bullish breakout with bearish accumulation bias receives a penalty, reducing the likelihood of a false signal.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ Identifying Choppy / Ranging Markets — When NOT to Trade
Knowing when to stay out is just as important as knowing when to enter. AlphaX Consolidation Engine is designed to help you identify the chop so you can trade the break.
How to identify low-probability conditions:
No Consolidation Box — If the 5-Factor Score never reaches threshold, the market is too noisy. No box = no edge.
Low Confidence Scores — If breakout labels rarely appear, the market lacks directional conviction.
Frequent "FAILED" Exits — If multiple breakouts immediately re-enter the range, the market is still ranging despite brief spikes.
Dashboard Shows "NEUTRAL" — If Vol Bias and Momentum are conflicting, wait for clarity.
What to do during low-confidence periods:
Do not force entries — wait for the Consolidation Score to rise
Wait for the Confidence Score on the breakout label to exceed 50%
Look for the Retest signal instead of the initial breakout for better confirmation
Consider switching to a higher timeframe to find the broader range structure
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📐 Dashboard Intelligence
A comprehensive dashboard provides real-time metrics at a glance:
Consol Score — Current 5-Factor score (0-100) and intensity (Weak/Mod/Strong/Extreme)
State — Active, Forming, or None
TTM Squeeze — Status and bar count
Range Info — High/Low levels, Width in ATR, Price Position %
Vol Bias — Accumulation vs Distribution percentage
Momentum — RSI, MACD, EMA Trend status
Breakout Conf — Current Bull/Bear confidence scores and tiers (S/A/B)
Trade Status — Position direction and Open P&L
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 How to Trade with AlphaX Consolidation Engine — Step by Step
Step 1 — Identify Consolidation
Wait for a shaded Consolidation Box to appear
Check the Dashboard: Is Consol Score > 50? Is Squeeze ON?
If no box → do not trade. Wait for compression.
Step 2 — Wait for Breakout Label
A Green ▲ or Red ▼ label appears when price escapes the box
Check the Confidence % on the label (e.g., "A 65%")
If confidence is below your minimum → wait.
www.pulsewire.com
Complete trade flow: Consolidation Box → Breakout Label → Retest → Exit
Step 3 — Enter on Breakout or Retest
Aggressive: Enter on the Breakout Label close
Conservative: Wait for the RETEST label after the breakout
Place stop loss below the breakout candle or opposite side of the range
Step 4 — Manage with Trailing Stop
The system plots a dynamic trailing stop line (stepped line)
Stay in the trade as long as price does not cross the line
Add to position on additional Retest signals if trend is strong
Step 5 — Exit on Signal
When a ✕ mark appears, the system detects exhaustion or reversal
Close position or tighten stop manually
Wait for the next Consolidation Box to form for the next cycle
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ Key Features
🔬 Proprietary 5-Factor Consolidation Scoring (ATR, BB, KC, LR, ADX)
☁ Dynamic shaded consolidation zones with auto-expanding boundaries
🏷 Confidence-scored breakout labels (S/A/B Tier) with readable text colors
▲▼ High-probability retest entries after breakout confirmation
✕ Smart exit markers (Trail/Failed/Flip) to protect profits
🧠 Multi-factor confidence scoring — squeeze, volume, momentum, candle quality
📊 Volume Bias Analysis — tracks accumulation vs distribution inside ranges
📈 Comprehensive Dashboard — real-time range, momentum, and trade stats
🎨 Cohesive dual-tone color theme — Green for bull, Red for bear, Gray for neutral
🔔 15+ alert conditions — consolidation, squeeze, breakouts, retests, and exits
⚙ Fully configurable — all scoring weights, thresholds, and visuals adjustable
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙ Settings Reference
Consolidation Detection
ATR / BB / KC Periods — Core volatility calculation lengths
Squeeze Percentile — Threshold for defining "low volatility"
Min Consolidation Bars — Minimum bars required to confirm a range
LR Slope Threshold — Sensitivity for detecting flat price action
Breakout Settings
Breakout ATR Threshold — How far price must close beyond range
Breakout Volume Ratio — Minimum volume required on breakout bar
Min Breakout Confidence % — Filter for signal quality (Default 35%)
Require Close Beyond Range — Prevents wick fake-outs
Momentum Confirmation
RSI / MACD / EMA Periods — Used for confidence scoring
RSI Levels — Overbought/Oversold thresholds for scoring penalties
Exits
Trailing Stop ATR Multiple — Distance for dynamic stop loss
Exit on Re-Enter Range — Close trade if price falls back into consolidation
Exit on Opposite Breakout — Close trade if reverse breakout occurs
Appearance & Dashboard
Show Consolidation Zones / Lines / Dots — Toggle visual elements
Label Size / Dashboard Text — Adjust readability
Colors — Fully customizable bull/bear/neutral palette
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 Alert Conditions
Consolidation Detected — Fires when a new range is confirmed
Squeeze Activated / Released — TTM Squeeze state changes
Extreme Squeeze — Consolidation Score > 80
S/A/B-Tier Bull/Bear Breakout — Confidence-based breakout alerts
Bull/Bear Retest Entry — Pullback entry signals
Any Exit — Trail, Failed, or Flip exit signals
All alert messages include {{ticker}} and {{interval}} placeholders for clean webhook integration.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 Default Settings — Optimized For
The default configuration is specifically tuned for XAUUSD (Gold) and Major Indices on the 5-minute timeframe :
Confidence threshold at 35% filters out low-quality noise while keeping valid setups
ATR and BB periods calibrated for intraday volatility profiles
Volume filters enabled to prevent low-liquidity fakeouts
Trailing stop set to 2.0 ATR for breathable trend following
For other instruments or timeframes, adjust:
Higher timeframes (1H, 4H) — Increase Min Confidence to 45–55%, increase ATR periods
Forex majors — Reduce Min Confidence to 25–30%, enable Strict Volume Filters
Crypto — Increase ATR Thresholds (higher volatility), increase Trailing Stop multiple
Less noise — Increase Min Confidence %, Increase Min Consolidation Bars
More signals — Decrease Min Confidence %, Disable Volume Filters
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
👥 Who This Is For
🥇 Breakout Traders — Specifically designed to capture volatility expansions after compression
📉 Range Traders — Visual boxes help identify support/resistance boundaries clearly
📊 Index & Gold Traders — Tuned for assets with distinct consolidation/expansion cycles
🧠 Systematic Traders — Confidence scoring provides a quantitative framework for entry selection
📈 Traders who value clean charts — No indicator soup. Boxes, labels, and a dashboard.
⚠ Traders who struggle with choppy markets — The 5-Factor Score physically prevents signals during low-quality ranges
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 Notes
All calculations are non-repainting — signals are confirmed on bar close
Dashboard updates on the last bar only for performance optimization
Maximum 500 labels and 500 bars lookback are used — on very low timeframes, oldest labels may be automatically removed by PulseWire's rendering limits
Volume Bias requires volume data — may be less accurate on forex pairs without tick volume
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ 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 clarity, confidence, and precision from their charts. Indicator

Reversal Entry ZonesReversal Entry Zones
Reversal Entry Zones is an open-source reversal-structure indicator built around one specific analytical idea:
a reversal zone becomes more meaningful when it is not drawn from a simple local pivot alone, but from a pivot that has been confirmed only after price reverses by a minimum threshold.
This script is not designed to predict every turning point in advance, and it is not intended to behave like a generic zigzag clone, a simple support/resistance overlay, or a basic pivot marker that labels every local high and low without further confirmation. Its purpose is to identify confirmed reversal points only after price has moved far enough in the opposite direction, then convert those confirmed points into structured bullish or bearish reversal zones on the chart.
The script also includes extension lines, optional projected zones, a synthetic path connecting one confirmed reversal to the next, and a status panel that summarizes the latest reversal state. These features are included to support chart structure analysis and review, not to imply future performance or automatic trade validity. :contentReference {index=2} :contentReference {index=3}
OPEN-SOURCE NOTE
This script is published open-source so users can inspect the logic directly, verify what the script is doing, and adapt parts of the workflow for their own research if they wish.
Even though the code is open, this description is intentionally detailed because many PulseWire users do not read Pine Script. The goal is for a user to understand what the script does, how it works, why its parts belong together, and how it may be used in practice without having to study the code line by line.
OVERVIEW
At a high level, the script does six things:
1. It tracks running highs and lows from a selected source stream.
2. It confirms a pivot only after price reverses by at least a minimum threshold.
3. It classifies the confirmed pivot as either bullish or bearish reversal structure.
4. It draws layered reversal visuals, including core and outer zones, reversal lines, and optional projected zones.
5. It can connect each confirmed reversal to the next using a synthetic path.
6. It summarizes the current structural state in a compact status panel.
The script is therefore meant to function as a complete reversal-structure mapping tool rather than as a single-purpose pivot or line-drawing script. :contentReference {index=4}
CORE IDEA
Many structural tools label local highs and lows immediately, but they do not distinguish clearly between a temporary pause and a reversal that has actually been confirmed by sufficient opposite-side movement.
This script is built around the idea that those two situations are not necessarily equivalent.
A local high is not automatically a bearish reversal.
A local low is not automatically a bullish reversal.
This script waits for price to reverse by a threshold that is large enough to qualify before it confirms the prior pivot as a true reversal point inside the script’s own logic.
That is the core of the model.
Instead of saying:
“a pivot exists here, so draw structure now,”
the script says:
“track the current swing extreme, and only confirm it as reversal structure after price has moved far enough away from it.”
That makes the framework more selective than a simple high/low labeling tool.
The script therefore organizes reversal structure in the following sequence:
track active swing highs and lows,
wait for a sufficient opposite move,
confirm the prior pivot only after that threshold is met,
classify the reversal as bullish or bearish,
then map that reversal into a layered zone and line structure for review.
That narrower focus is the main reason the script exists in its current form. :contentReference {index=5} :contentReference {index=6}
WHY THIS SCRIPT IS NOT A SIMPLE MASHUP
This script combines multiple components, but they are not included simply to place more features into one publication.
Each component has a specific function inside the same analytical process:
- The running high/low engine tracks the currently active swing state.
- The reversal-threshold model decides when a prior extreme is actually confirmed as a reversal.
- The selected source mode controls whether the model works from smoothed averages or raw highs/lows.
- The layered zone display turns each confirmed reversal into a readable structural area rather than a single line.
- The reversal lines extend the confirmed level forward for later reaction analysis.
- The synthetic path shows how one confirmed reversal connects to the next.
- The panel summarizes the most recent reversal state and current threshold context.
These layers are interdependent.
Without the running high/low engine, there is no active swing state to monitor.
Without the threshold model, the script would behave more like a basic pivot high/low marker.
Without the source-mode selection, the user could not control whether the structure is smoother or more reactive.
Without the zone display, the confirmed reversal would remain only a point or line rather than a readable area.
Without the reversal lines, later interaction with the level would be harder to monitor.
Without the synthetic path, the sequence of reversals would be less visually coherent.
Without the panel, the user would have less organized feedback about the latest confirmed reversal, threshold level, and current tracking state.
For that reason, the script is intended as a single reversal-confirmation framework, not as a random collection of unrelated visual elements. :contentReference {index=7} :contentReference {index=8}
WHAT THE SCRIPT DOES
The script monitors price using either:
- raw High/Low values,
- or an Average-based stream built from smoothed highs and lows.
It then tracks the current running swing in one direction until price reverses far enough to meet the active reversal threshold.
Once that happens:
- the prior extreme is confirmed as a reversal point,
- the script classifies it as bullish or bearish,
- stores its bar index and price,
- draws a layered visual structure around that level,
- optionally extends a projected zone forward,
- and updates the panel with the new structural information.
Depending on settings, the chart can show:
- bullish reversal labels,
- bearish reversal labels,
- outer reversal boxes,
- core reversal boxes,
- optional projected reversal zones,
- reversal level lines,
- synthetic path segments,
- and a status panel.
This means the script is not attempting to generate trade entries by itself. It is building a structured visual map of confirmed reversal locations according to the script’s internal threshold model. :contentReference {index=9}
HOW THE SCRIPT WORKS
1) SOURCE MODE
The script can work from two different source modes:
Average
High/Low
In High/Low mode, the script uses raw highs and lows directly.
In Average mode, the script uses smoothed high and low streams based on the selected Average Length.
This distinction matters because the selected source changes how reactive the structure engine is.
High/Low mode is more direct and can react more closely to raw price extremes.
Average mode is smoother and can reduce noise by filtering those extremes through an averaging process.
This allows the same reversal-confirmation logic to operate in either a more reactive or more smoothed structural mode. :contentReference {index=10}
2) EXTRA CONFIRMATION BARS
The script includes an Extra Confirmation Bars setting.
This offsets the source references used by the reversal engine and effectively delays how the script interprets the active high/low streams.
That allows the user to add an additional confirmation delay before reversal recognition is evaluated. In practical terms, this can make the script less reactive and help reduce immediate local noise around current bars. :contentReference {index=11} :contentReference {index=12}
3) REVERSAL THRESHOLD MODEL
The script does not confirm reversals from pivots alone.
It uses a threshold model built from three elements:
- ATR,
- a preset percentage factor,
- and a custom absolute minimum reversal value.
The final reversal threshold is the maximum of those elements.
This matters because the script wants to avoid confirming a reversal from movements that are too small to be meaningful under current market conditions.
In the current implementation, the threshold is derived from:
- the selected preset’s ATR multiplier,
- the selected preset’s percentage factor,
- current ATR,
- current close,
- and the Custom Absolute Reversal input.
The threshold is therefore adaptive rather than completely fixed. It reflects both current volatility and a hard minimum floor. :contentReference {index=13}
4) SENSITIVITY PRESET
The script includes a preset-based sensitivity model.
In the version you shared, the available presets are:
- Low
- Very Low
Those presets change the internal ATR multiplier and percentage factor used inside the reversal threshold model.
This means the preset is not just a cosmetic label. It directly changes how selective the reversal engine is.
A stricter preset requires a larger move before a reversal is confirmed.
A less strict preset allows reversals to be confirmed more easily.
That makes the preset one of the key inputs controlling how much structure the script draws. :contentReference {index=14}
5) RUNNING SWING ENGINE
The script maintains a running high and running low state.
When it is monitoring an upward swing, it continues updating the running high until price reverses by at least the required threshold.
When it is monitoring a downward swing, it continues updating the running low until price reverses by at least the required threshold.
Only after that opposite-side movement is large enough does the script confirm the prior extreme as an actual reversal point.
This is the central mechanism that separates the script from simple pivot markers. It does not mark the pivot at the moment it forms. It waits for the reversal to prove itself by moving far enough away. :contentReference {index=15}
6) BULLISH AND BEARISH REVERSAL CLASSIFICATION
Once a pivot is confirmed, the script classifies it as either:
- bullish reversal,
- bearish reversal.
A confirmed low pivot becomes a bullish reversal.
A confirmed high pivot becomes a bearish reversal.
The script then stores:
- the reversal direction,
- the reversal price,
- and the reversal bar.
These values are also used by the panel and optional synthetic path logic. :contentReference {index=16}
7) LAYERED ZONE DISPLAY
When a reversal is confirmed, the script can draw multiple structural layers around that level.
These include:
- an outer box,
- a core box,
- and, if enabled, an optional projected zone.
The core and outer boxes are centered on the confirmed reversal price and scaled using a volatility-aware half-range derived from ATR and relative price size.
This layered approach is important because it gives the user more than a single line. It creates a visually interpretable reversal area with inner and outer structure.
The optional projected zone extends the reversal level forward as a narrower zone based on the user-defined thickness percentage and extension length. This can help the user monitor how price interacts with the reversal area after it has been confirmed. :contentReference {index=17}
8) REVERSAL LINES
The script can draw a glow line and a main reversal line at the confirmed reversal level.
These lines extend forward by the selected Reversal Line Extension setting.
The purpose of these lines is to make the confirmed reversal level easier to monitor after formation. The thicker glow line improves visibility, while the main line provides the clearer structural reference. :contentReference {index=18}
9) REVERSAL LABELS
If enabled, the script places a bullish or bearish reversal label at the confirmed reversal zone.
These labels are not trade commands. They are structural tags that tell the user which kind of reversal the engine has confirmed and where that confirmation occurred according to the script’s logic. :contentReference {index=19}
10) SYNTHETIC PATH
The script can optionally connect one confirmed reversal to the next using a synthetic path line.
This path is not a price forecast and it is not an order-flow model. It is simply a structural visualization that helps the user follow the sequence of confirmed reversals over time.
This can be useful for understanding whether confirmed reversal points are alternating in a way that creates readable turning structure or whether the market is moving more erratically. :contentReference {index=20}
11) STATUS PANEL
The panel summarizes the most recent state of the reversal engine.
Depending on the current chart state, it can show:
- the latest signal type,
- the last signal price,
- bars since the last reversal,
- current threshold value,
- ATR value and active zone count,
- whether the engine is currently monitoring for a bullish or bearish reversal,
- preset and source mode.
This panel is not meant to predict the next reversal. Its purpose is to organize the script’s current state into a readable summary. :contentReference {index=21}
WHAT MAKES THIS SCRIPT ORIGINAL
This script uses familiar building blocks such as:
- pivots,
- ATR,
- price-percentage thresholds,
- smoothed price streams,
- projected zones,
- panel summaries.
Those building blocks are not original by themselves.
The originality of this script is not in inventing a completely new primitive indicator. The originality lies in how those familiar elements are arranged into one confirmed-reversal workflow:
running swing tracking
→ adaptive reversal-threshold calculation
→ delayed pivot confirmation
→ bullish/bearish reversal classification
→ layered reversal visualization
→ optional projected zone extension
→ synthetic path mapping
→ structural status panel
That full sequence is the main reason this script exists as its own publication.
It is not intended to be simply another pivot script, another ATR-based filter, or another generic dashboard. It is specifically a reversal-confirmation framework that combines threshold-based pivot confirmation, layered reversal-zone display, structural sequencing, and chart-state review in one workflow. :contentReference {index=22} :contentReference {index=23}
WHAT APPEARS ON THE CHART
Depending on settings, the chart may display:
- bullish reversal labels,
- bearish reversal labels,
- outer reversal boxes,
- core reversal boxes,
- projected reversal zones,
- reversal level lines,
- synthetic path lines,
- and a status panel.
Users who want a cleaner chart can disable some visual layers and keep only the elements most relevant to their workflow. :contentReference {index=24}
HOW TO USE THE SCRIPT
A practical workflow is:
1. Add the script to a standard candlestick chart.
2. Choose whether you want to work from Average mode or raw High/Low mode.
3. Set the Average Length if Average mode is used.
4. Set ATR Length and Custom Absolute Reversal so the threshold model matches the instrument’s behavior.
5. Choose the preset that gives the level of selectivity you want.
6. Decide whether to show reversal labels, projected zones, and synthetic path.
7. Watch for newly confirmed bullish or bearish reversal areas.
8. Use reversal lines and projected zones to observe how price behaves around those confirmed levels.
9. Use the synthetic path and recent reversal sequence as structural context rather than as a predictive model.
10. Combine the script’s output with your own market framework, confirmation rules, and risk management.
This script is best understood as a structured decision-support and chart-review tool, not as a self-sufficient automated trading solution. :contentReference {index=25} :contentReference {index=26}
SETTINGS REFERENCE
Confirmation Settings
- Extra Confirmation Bars: adds additional confirmation delay to reversal recognition.
Sensitivity
- Preset: controls how selective the reversal engine is by changing the internal threshold model.
Reversal Calculation
- Swing Source: selects Average or High/Low logic.
- Average Length: smoothing length used in Average mode.
- ATR Length: ATR reference length used in the threshold model.
- Minimum Absolute Reversal: hard minimum reversal filter.
Zone Display
- Show Reversal Labels: shows or hides bullish/bearish reversal labels.
- Show Projected Zones: enables or disables forward reversal zones.
- Max Zones: limits how many projected zones remain visible.
- Zone Extension: controls how far projected zones extend.
- Zone Thickness (%): controls the projected zone thickness relative to price.
Reversal Lines
- Reversal Line Extension: controls how far reversal lines extend.
- Max Reversal Levels: limits how many reversal levels remain visible.
- Label Size: controls reversal-label size.
Synthetic Path
- Show Synthetic Path: enables or disables the structural connection path.
- Path Width: controls the width of the synthetic path.
- Path Style: selects solid, dashed, or dotted display.
- Max Path Segments: limits how many path segments remain on the chart.
Colors
- Bullish Color: sets the bullish reversal color.
- Bearish Color: sets the bearish reversal color.
- Synthetic Path Color: sets the synthetic path color.
Status Panel
- Show Status Panel: enables or disables the panel.
- Panel Position: controls panel location. :contentReference {index=27} :contentReference {index=28}
IMPORTANT PRACTICAL NOTES
This script depends heavily on the selected threshold configuration.
If the threshold is too small, reversals may be confirmed too frequently and the chart may become overly sensitive.
If the threshold is too large, reversal confirmations may become very rare and the script may react too slowly for the intended use.
The selected source mode also matters:
- High/Low mode is more reactive,
- Average mode is smoother.
That means the same instrument can produce meaningfully different reversal structures depending on:
- preset,
- ATR length,
- average length,
- confirmation bars,
- and custom absolute reversal settings. :contentReference {index=29}
LIMITATIONS AND SHORTCOMINGS
This script has important limitations:
- It is a reversal-confirmation model, not a complete market-structure system.
- It does not predict reversals before the threshold is reached.
- It only confirms reversals after sufficient opposite-side movement has already occurred.
- It does not include volume, order flow, fair value gaps, or broader context filters.
- Its behavior depends heavily on ATR, preset sensitivity, source mode, and confirmation settings.
- The synthetic path is a structural visualization, not a predictive model.
- Projected zones are chart-analysis aids, not automatic entry or exit instructions.
- Different instruments, sessions, and volatility conditions can materially change how frequently reversals are confirmed.
- No reversal-threshold model can eliminate all false structure or all regime-dependent behavior.
For those reasons, the script should be used as a structured analysis and review framework, not as a promise of future price direction. :contentReference {index=30} :contentReference {index=31}
WHO THIS SCRIPT MAY BE USEFUL FOR
This script may be useful for traders who:
- want a threshold-based reversal confirmation tool,
- want something more selective than a simple pivot marker,
- want layered reversal zones rather than only single reversal lines,
- want to visualize the sequence of confirmed reversals over time,
- want a compact panel that summarizes the current structural state.
It may be less suitable for traders who:
- want a predictive signal tool,
- want a full trade-execution system,
- want a classic supply-and-demand engine,
- want a very minimal chart with no structural overlays.
DISCLAIMER
This script is provided for educational and informational purposes only.
It does not constitute financial, investment, or trading advice.
Market conditions change, historical behavior does not guarantee future results, and users should perform their own analysis, validation, and risk management before using the script in live decision-making. Indicator

Liquidity Entry ZonesLiquidity Entry Zones
Liquidity Entry Zones is an open-source liquidity-sweep entry framework built around one specific analytical idea:
when price moves through a recently formed liquidity level, then reclaims back through that area with acceptable candle quality and directional context, that event can be treated as a structured entry opportunity rather than as a generic wick sweep or random rejection candle.
This script is not designed to mark every swing high or swing low, and it is not intended to behave like a generic support/resistance overlay, a basic pivot script, or a simple “liquidity sweep detector” that treats every sweep in the same way. Its purpose is to store recent liquidity levels, detect meaningful sweeps through those levels, validate reclaim behavior, filter the candle using quality conditions, confirm the setup inside a limited time window, and optionally project a fixed-risk trade structure on the chart for review. :contentReference {index=1}
The script also includes optional sweep guides, signal visuals, a compact status panel, and an internal trade simulation layer so users can inspect how the framework behaves under the chosen settings. Those review tools are included to support chart study and comparison, not to imply future performance. :contentReference {index=2}
OPEN-SOURCE NOTE
This script is published open-source so users can inspect the logic directly, verify what the script is doing, and adapt parts of the workflow for their own research if they wish.
Even though the code is open, this description is intentionally detailed because many PulseWire users do not read Pine Script. The goal is for a user to understand what the script does, how it works, why its parts belong together, and how it may be used in practice without needing to reverse-engineer the code line by line.
OVERVIEW
At a high level, the script does seven things:
1. It stores recent pivot highs and pivot lows as liquidity reference levels.
2. It checks whether price sweeps through one of those stored levels by a minimum pip distance.
3. It requires reclaim behavior after the sweep, using either a close-back-inside rule or a stronger reclaim condition.
4. It filters the sweep candle using wick percentage, body percentage, candle range, optional EMA context, and optional midline confirmation.
5. It allows a limited confirmation window after the sweep so entries are not forced to happen only on the exact sweep bar.
6. It can project a fixed take-profit / stop-loss model and track simulated outcomes.
7. It summarizes the current state and projected results in a status panel.
The script is therefore meant to function as a complete liquidity-sweep reclaim framework rather than as a single-purpose pivot or line-drawing tool. :contentReference {index=3}
CORE IDEA
Many sweep-based tools detect only one event: price traded above a prior high or below a prior low.
This script takes a narrower and more selective approach.
Its central assumption is that a sweep alone is not enough. A useful entry event requires more than just temporary liquidity violation. The script therefore asks additional questions:
- Was the swept level a recent stored liquidity level derived from pivot structure?
- Did price move far enough beyond that level to qualify as a real sweep?
- Did price reclaim back through that area in a meaningful way?
- Was the sweep candle structurally acceptable in terms of wick, body, and range?
- Did the confirmation happen within a defined number of bars?
- Was the signal aligned with the optional EMA context?
- Did the confirmation candle behave the way the selected setup requires?
Because of that, the script does not treat all sweeps equally. It attempts to organize the process into a more selective sequence:
first identify liquidity,
then detect a sweep,
then validate reclaim quality,
then confirm within a limited window,
then project the resulting setup into a standardized chart-review structure.
That narrower focus is the main reason the script exists in its current form. :contentReference {index=4}
WHY THIS SCRIPT IS NOT A SIMPLE MASHUP
This script combines multiple components, but they are not included simply to place more features into one publication.
Each component has a specific role inside the same analytical process:
- Pivot storage defines where recent liquidity levels exist.
- Sweep detection checks whether those levels have actually been taken by price.
- Reclaim logic checks whether price closes back through the swept area in a meaningful way.
- Candle-quality filters reduce weak or low-information sweeps.
- The EMA filter provides optional directional context.
- The confirmation window prevents stale sweeps from remaining valid indefinitely.
- The cooldown logic reduces clustered signals.
- The trade simulation layer maps the resulting setup into a consistent risk framework.
- The panel organizes current state and projected review metrics into one readable output.
These layers are interdependent.
Without the pivot-based liquidity storage, there is no structured level to sweep.
Without the minimum sweep distance, trivial overextensions would count too easily.
Without reclaim validation, the script would mark many sweeps that never actually regained the level.
Without wick/body/range filters, weak candles would be treated too similarly to stronger rejection candles.
Without the confirmation window, old sweep conditions could stay alive for too long.
Without the EMA filter, the framework would lose one of its optional directional context filters.
Without the simulation layer, the user would still need to draw projected entry, stop, and target structure manually.
Without the status panel, the user would have less organized feedback when monitoring current sweep state, bias, and simulated results.
For that reason, the script is intended as a single liquidity-reclaim framework, not as a random bundle of unrelated features. :contentReference {index=5}
WHAT THE SCRIPT DOES
The script stores recent pivot highs and lows as liquidity levels, then watches for price to trade through those levels by at least the selected sweep distance in pip terms.
Once a sweep occurs, the script can evaluate whether the candle reclaimed back through the level. That reclaim can be interpreted in one of two ways:
- Close Back Inside
- Strong Reclaim
After that, the script can apply candle-quality filters based on:
- wick percentage,
- body percentage,
- minimum candle range,
- optional EMA alignment,
- optional midline-break confirmation,
- and candle-body direction for long or short confirmation.
If the setup remains valid within the selected confirmation window, the script can confirm a BUY or SELL signal.
When enabled, the simulation layer can then project:
- entry,
- fixed stop loss,
- fixed take profit,
- entry zone,
- target box,
- stop box,
- entry and invalidation lines,
- and active trade labels.
The script can also show sweep guides, signal markers, bar coloring, and a status panel summarizing its current state and projected statistics. :contentReference {index=6}
HOW THE SCRIPT WORKS
1) LIQUIDITY LEVEL STORAGE
The script uses pivot highs and pivot lows to create recent liquidity reference points.
A pivot high becomes a candidate buy-side liquidity reference.
A pivot low becomes a candidate sell-side liquidity reference.
The script stores a configurable number of recent levels so that sweep detection is based on previously identified structural points rather than arbitrary price movement. This makes the framework level-based rather than purely candle-based. :contentReference {index=7}
2) SWEEP DETECTION
Once liquidity levels are stored, the script checks whether current price moves beyond a recent level by at least the configured minimum sweep distance.
For a bearish sweep setup:
price must move above a stored high.
For a bullish sweep setup:
price must move below a stored low.
This distance is measured in pip terms using the selected pip-size logic. That means the same script can adapt to forex, JPY pairs, gold, or index-style symbols more consistently, assuming the pip mode is set correctly. :contentReference {index=8}
3) RECLAIM RULE
A sweep alone is not enough.
After the level is taken, the script requires reclaim behavior. It supports two reclaim interpretations:
Close Back Inside:
price must close back inside the swept level.
Strong Reclaim:
price must close back inside the swept level and also close beyond the candle midline in the reclaim direction.
This is important because many sweep candles do not actually reclaim decisively. The reclaim rule exists to distinguish “level taken” from “level taken and then actively rejected back through.” :contentReference {index=9}
4) CANDLE QUALITY FILTERS
The script evaluates sweep-candle quality using:
- minimum wick percentage,
- maximum body percentage,
- minimum candle range in pips.
This means the framework prefers sweeps where the wick expresses the actual sweep behavior and the body does not dominate too heavily relative to the total candle. The minimum-range filter helps avoid very small candles that technically sweep a level but do not carry enough information.
The script also allows:
- long confirmation must be bullish,
- short confirmation must be bearish.
These body-direction filters make the confirmation stricter and help align the final signal with the intended reclaim direction. :contentReference {index=10}
5) OPTIONAL EMA CONTEXT
The script includes an optional EMA trend filter using a configurable EMA length.
If enabled:
- long-side confirmations require price above the EMA,
- short-side confirmations require price below the EMA.
This does not turn the script into a full trend-following system. Instead, it acts as a directional context filter designed to reduce signals that reclaim against the selected EMA bias. :contentReference {index=11}
6) CONFIRMATION WINDOW
The script does not require the final entry to happen only on the exact sweep candle.
Instead, when a valid sweep is detected, it can remain eligible for a limited number of bars. During that confirmation window, the script checks whether the final bullish or bearish confirmation conditions are met.
This matters because some traders want the sweep candle itself to reclaim strongly, while others want to allow one or two bars for the actual confirmation to develop. The confirmation window makes that possible without letting very old sweep conditions remain valid indefinitely. :contentReference {index=12}
7) MIDLINE CONFIRMATION
The script also supports an optional requirement that price close beyond the midpoint of the sweep candle.
For bullish confirmation:
price must close above the sweep candle midpoint.
For bearish confirmation:
price must close below the sweep candle midpoint.
This adds an additional reclaim-strength condition and is intended to reduce weaker closes that technically qualify but do not show enough directional reclaim behavior. :contentReference {index=13}
8) SIGNAL COOLDOWN
The script includes a cooldown period between signals.
Once a signal fires, the framework waits the configured number of bars before allowing a new one. This reduces clustered signals and prevents the chart from rapidly stacking similar setups in a short space of time. :contentReference {index=14}
9) QUALITY SCORE
The script computes an internal quality score for the sweep using a weighted combination of:
- wick contribution,
- body contribution,
- candle-range contribution,
- EMA alignment,
- reclaim success,
- and midline-break success.
This score is used as an internal summary of signal quality and also appears in the panel or labels depending on the visual configuration.
The score is not a guarantee of outcome. It is simply an internal ranking model that summarizes how well the current setup meets the script’s own filter conditions. :contentReference {index=15}
10) TRADE SIMULATION
When enabled, the script can simulate a fixed-risk trade projection.
For long signals:
- entry is placed at close,
- TP is placed above entry by the selected take-profit pip distance,
- SL is placed below entry by the selected stop-loss pip distance.
For short signals:
- entry is placed at close,
- TP is placed below entry by the selected take-profit pip distance,
- SL is placed above entry by the selected stop-loss pip distance.
The simulation can also:
- block new signals while a trade is active,
- keep or hide stopped trades,
- draw entry zone, target zone, stop zone, entry line, invalidation line, and projection line,
- track total trades, wins, losses, and net pips.
This is a chart-review tool, not an execution engine. Its purpose is to make the framework easier to inspect after the signal appears. :contentReference {index=16}
11) SAME-BAR PRIORITY
In the version you shared, same-bar TP/SL handling is conservative: if both target and stop appear to be touched on the same bar after entry, SL takes priority. This matters because bar data alone does not reveal exact intrabar order, and a strict rule prevents artificially optimistic results. :contentReference {index=17}
12) PANEL AND STATE MODEL
The status panel summarizes the current internal state of the framework. It can display items such as:
- whether simulation is on,
- current EMA-based bias,
- sweep state,
- signal state,
- quality score,
- volatility state,
- session state,
- risk state,
- total trades,
- win rate,
- net pips,
- max drawdown in pips.
This panel is meant to condense the script’s state into one readable location rather than force the user to infer everything visually from price bars and labels alone. :contentReference {index=18}
WHAT MAKES THIS SCRIPT ORIGINAL
This script uses familiar building blocks such as:
- pivots,
- liquidity sweeps,
- EMA filtering,
- candle wick/body analysis,
- fixed TP/SL simulation,
- status panels.
Those building blocks are not original by themselves.
The originality of this script is not in inventing a completely new primitive indicator. The originality lies in how those familiar elements are arranged into one selective workflow:
pivot-based liquidity storage
→ minimum-distance sweep detection
→ reclaim validation
→ wick/body/range quality filtering
→ optional EMA alignment
→ limited-bar confirmation
→ cooldown control
→ fixed-risk trade projection
→ status-panel review
That full sequence is the main reason this script exists as its own publication.
It is not intended to be simply another pivot script, another stop-hunt detector, another EMA tool, or another TP/SL box script. It is specifically a liquidity-reclaim entry framework that combines structural level storage, sweep validation, candle-quality filtering, confirmation logic, and projected review in one workflow. :contentReference {index=19}
WHAT APPEARS ON THE CHART
Depending on settings, the chart may display:
- EMA filter,
- sweep guides,
- signal markers,
- BUY / SELL labels,
- signal bar coloring,
- entry zone,
- target zone,
- stop zone,
- entry line,
- invalidation line,
- projection path,
- status panel,
- TP / SL hit labels.
Users who want a cleaner chart can disable some visual components and keep only the layers most relevant to their workflow. :contentReference {index=20}
HOW TO USE THE SCRIPT
A practical workflow is:
1. Add the script to a standard candlestick chart.
2. Choose the correct pip mode for the instrument you are analyzing.
3. Set the pivot length and stored-level count to define how the script builds liquidity references.
4. Set the minimum sweep distance so trivial level violations are filtered out.
5. Choose the reclaim rule you want to use.
6. Configure candle-quality filters such as wick %, body %, and minimum range.
7. Decide whether to use the EMA trend filter.
8. Decide whether to require midline confirmation.
9. Choose the confirmation window and cooldown length.
10. If simulation is enabled, set TP and SL distances and decide whether new signals should be blocked while a trade is active.
11. Wait for a confirmed bullish or bearish liquidity reclaim.
12. Use the projected trade structure and panel as an analysis framework rather than as a blind instruction.
13. Review how the same rules behave over time and across symbols before relying on the framework in a live decision process. :contentReference {index=21}
This script is best understood as a structured decision-support and chart-review tool, not as a fully self-sufficient trading system.
SETTINGS REFERENCE
Trend Filter
- EMA Length: sets the EMA used for optional directional context.
- Use EMA Trend Filter: enables or disables EMA filtering.
Pip Settings
- Pip Mode: controls how pip size is interpreted for the current instrument.
Liquidity Sweep Detection
- Swing Pivot Length: defines the pivot depth used to create liquidity levels.
- Stored Liquidity Levels: controls how many recent levels remain in memory.
- Minimum Sweep Distance (Pips): defines how far price must move beyond a level to count as a sweep.
- Reclaim Rule: selects whether reclaim is based on close back inside or a stronger reclaim condition.
Candle Quality Filters
- Minimum Sweep Wick %: minimum wick contribution required from the sweep candle.
- Maximum Body %: maximum body share allowed for the sweep candle.
- Minimum Candle Range (Pips): minimum size required for the sweep candle.
- Long Confirmation Must Be Bullish: requires bullish body for long confirmations.
- Short Confirmation Must Be Bearish: requires bearish body for short confirmations.
Entry Confirmation
- Max Bars After Sweep For Confirmation: limits how many bars can pass before confirmation expires.
- Require Sweep Candle Midline Break: adds midpoint-based reclaim confirmation.
- Cooldown Bars Between Signals: prevents signals from clustering too closely.
Trade Simulation
- Enable Internal Trade Simulation: enables or disables projected trade logic.
- Take Profit (Pips): projected target distance.
- Stop Loss (Pips): projected stop distance.
- Block New Signals While Trade Is Active: prevents overlapping simulated trades.
- Show Stopped Trades: controls whether stopped-out trades remain visible.
Visual Settings
- Show Signal Labels: shows or hides BUY / SELL labels.
- Show Entry Line: shows or hides the projected entry line.
- Show Status Panel: enables or disables the panel.
- Color Signal Bars: colors confirmed signal bars.
- Show Sweep Guides: enables or disables sweep-guide visuals.
- Guide Extension Bars: controls how far guides extend.
- Signal Label Size: controls label size.
- Panel Position: controls panel location. :contentReference {index=22}
IMPORTANT PRACTICAL NOTE ON PIP MODE
The script uses pip-based calculations for:
- sweep distance,
- minimum candle range,
- take-profit distance,
- stop-loss distance.
Because of that, pip interpretation is critical.
If sweeps appear too small, too large, too frequent, too rare, or if projected TP/SL distances look inconsistent for the instrument being analyzed, the first setting to verify is Pip Mode. This is especially important on gold, JPY pairs, index-style symbols, and broker-specific tick formats. :contentReference {index=23}
LIMITATIONS AND SHORTCOMINGS
This script has important limitations:
- It is a liquidity-reclaim model, not a full market-structure engine.
- It only evaluates sweeps of stored pivot-based levels.
- It does not identify fair value gaps, order blocks, or discretionary structure beyond the stored liquidity levels.
- Signal quality depends heavily on the selected wick/body/range filters.
- EMA filtering is optional and only provides one form of directional context.
- The confirmation window can materially change signal frequency and behavior.
- The simulation layer uses simplified projected TP/SL logic and is not equivalent to real execution.
- Same-bar TP/SL handling uses a rule-based priority rather than true intrabar reconstruction.
- Historical projected outcomes should not be interpreted as guaranteed tradable results.
- No sweep-based model can remove all false signals or all regime-dependent behavior.
For those reasons, the script should be used as a structured analysis and review framework, not as a promise of future profitability. :contentReference {index=24}
WHO THIS SCRIPT MAY BE USEFUL FOR
This script may be useful for traders who:
- focus on liquidity sweeps and reclaim behavior,
- want a rules-based alternative to purely discretionary sweep reading,
- want candle-quality filters in addition to simple level breaks,
- want optional EMA context for directional alignment,
- want projected entry/TP/SL structure on the chart,
- want a compact state panel for monitoring the framework.
It may be less suitable for traders who:
- want a minimal pivot-only tool,
- want a complete multi-concept smart-money framework,
- want a full execution engine,
- want historical projected results to be treated as live-performance evidence.
DISCLAIMER
This script is provided for educational and informational purposes only.
It does not constitute financial, investment, or trading advice.
Market conditions change, historical behavior does not guarantee future results, and users should perform their own analysis, validation, and risk management before using the script in live decision-making. Indicator

RSI Entry EngineRSI Entry Engine
RSI Entry Engine is an open-source RSI-based entry framework built around one specific analytical idea:
when a smoothed RSI leaves an extreme condition and reclaims back through a defined threshold, that reclaim can be treated as a structured entry event rather than as a generic oscillator fluctuation.
This script is not designed to mark every RSI movement, and it is not intended to behave like a generic “overbought / oversold indicator” that treats all oscillator readings the same way. Its purpose is to smooth RSI behavior, define a hierarchy of RSI states, detect reclaim-style transitions out of extreme zones, and optionally map those reclaim events into a projected risk framework directly on the price chart.
The script also includes a compact status panel and an alert structure so users can monitor RSI condition, internal signal state, and projected trade behavior in a more organized way. These features are included to support analysis and review, not to imply future performance.
OPEN-SOURCE NOTE
This script is published open-source so users can inspect the logic directly, verify what the script is doing, and adapt parts of the workflow for their own research if they wish.
Even though the code is open, this description is intentionally detailed because many PulseWire users do not read Pine Script. The goal is for a user to understand what the script does, how it works, why its parts belong together, and how it may be used in practice without having to study the code line by line.
OVERVIEW
At a high level, the script does seven things:
1. It calculates a base RSI from a selected source and length.
2. It optionally smooths that RSI and also derives a separate signal line from the smoothed RSI.
3. It organizes RSI values into multiple zones such as overbought, oversold, extreme high, extreme low, bullish, bearish, and neutral.
4. It detects reclaim-style entry signals when the smoothed RSI exits an extreme condition by crossing back through the selected extreme boundary.
5. It can project entry, stop loss, and take profit structure onto the main chart.
6. It can maintain a compact status panel summarizing RSI state, momentum, and structure.
7. It provides alert conditions for RSI / signal crosses, reclaim events, centerline transitions, and optional trade outcomes.
The script is therefore meant to function as a complete RSI reclaim-entry and review framework rather than as a single-purpose oscillator plot.
CORE IDEA
Many RSI tools are used in one of two broad ways:
- as a visual overbought / oversold reference,
- or as a simple cross-based signal tool.
This script takes a narrower and more structured approach.
Its main idea is that a reclaim out of an extreme zone may be more useful than the extreme reading by itself.
In other words, the script does not assume that simply being overbought or oversold is enough. Instead, it focuses on the transition that occurs when smoothed RSI moves out of a more extreme condition and crosses back through a defined reclaim threshold.
That is the reason the main signal model is based on:
- reclaim above the extreme-low boundary for a bullish entry event,
- reclaim below the extreme-high boundary for a bearish entry event.
This means the script is not centered on “RSI is high” or “RSI is low” alone. It is centered on the moment when a smoothed oscillator moves from extreme positioning into a reclaim state that can be interpreted as a structured shift in short-term momentum.
WHY THIS SCRIPT IS NOT A SIMPLE MASHUP
This script combines several components, but they are not included simply to add more features to one publication.
Each part has a specific role inside the same analytical workflow:
- The RSI engine defines the core oscillator state.
- The smoothing layer reduces noise and makes reclaim logic less reactive to small fluctuations.
- The signal line provides a secondary internal reference for oscillator structure.
- The zone system divides RSI behavior into interpretable states such as neutral, bullish, bearish, oversold, overbought, and extreme conditions.
- The reclaim logic defines the actual entry event.
- The trade projection layer maps that event onto the price chart using entry, stop, and target logic.
- The panel and alerts organize the resulting information for monitoring and review.
These parts are interdependent.
Without RSI calculation, there is no oscillator framework.
Without smoothing, reclaim logic becomes more sensitive to noise.
Without the level structure, reclaim events lose contextual meaning.
Without the reclaim rule, the script becomes a more generic RSI plot.
Without trade projection, the user still has to manually draw entry, stop, and target after each signal.
Without the panel and alerts, the script offers less structure for monitoring and review.
For that reason, the script is intended as a single RSI reclaim-entry framework, not as a random collection of unrelated features.
WHAT THE SCRIPT DOES
The script calculates RSI from a selected source and length, then optionally smooths it using one of several averaging methods.
It also creates a signal line from the smoothed RSI.
Once those two internal series exist, the script can:
- classify RSI state using multiple threshold levels,
- highlight extreme conditions visually,
- detect reclaim signals out of extreme zones,
- plot labels on the RSI pane,
- project BUY / SELL trade structures on the main price chart,
- update TP / SL boxes over time,
- show a compact state panel,
- create alerts for multiple RSI-related events.
This means the script is not just an oscillator display. It is an oscillator-driven entry framework with optional on-chart trade projection.
HOW THE SCRIPT WORKS
1) RSI ENGINE
The script begins with a standard RSI calculation based on a user-selected source and length.
That raw RSI can then be smoothed using one of several methods:
- None,
- EMA,
- SMA,
- RMA.
The smoothed RSI is the main series used for interpretation and signaling.
A second line called the signal line is then derived from the smoothed RSI using its own smoothing method and length.
This creates two internal oscillator references:
- the smoothed RSI itself,
- and a signal line built from that smoothed RSI.
The spread between those two series is also used in the panel to describe whether RSI is currently above or below its signal structure.
2) RSI STATE MODEL
The script does not treat RSI as a single binary oscillator. It organizes RSI values into multiple states:
- Extreme High,
- Overbought,
- Bullish,
- Neutral,
- Bearish,
- Oversold,
- Extreme Low.
These states are determined by the user-defined threshold levels:
- Overbought,
- Oversold,
- Extreme High,
- Extreme Low,
- and the centerline area around 50.
This state model is important because it gives the reclaim signals context. A reclaim signal is not interpreted in isolation; it is interpreted relative to where the smoothed RSI has been and which region it is leaving.
3) LEVEL STRUCTURE
The script plots:
- 0,
- 100,
- 50 centerline,
- Overbought,
- Oversold,
- Extreme High,
- Extreme Low.
It also fills the overbought and oversold regions for easier visual reading, and can optionally highlight the background when RSI is in an extreme condition.
This visual structure is not only cosmetic. It helps the user see why the script treats certain transitions differently from ordinary oscillator movement.
4) PRIMARY ENTRY SIGNAL MODEL
The main entry logic is reclaim-based.
Bullish entry event:
- the smoothed RSI crosses upward through the Extreme Low level,
- and the bar must be confirmed on close.
Bearish entry event:
- the smoothed RSI crosses downward through the Extreme High level,
- and the bar must be confirmed on close.
This means the script does not trigger merely because RSI becomes extreme. Instead, it waits for RSI to transition back through the selected extreme boundary.
That distinction is important.
A low RSI reading alone can persist for multiple bars.
A reclaim above the extreme-low threshold is a different event.
Likewise, a high RSI reading alone can persist,
but a reclaim downward through the extreme-high threshold is a different event.
The script is built around that reclaim event rather than around static RSI position alone.
5) BAR-CLOSE CONFIRMATION
Signals are confirmed only on bar close.
This is an important implementation detail because RSI can move intrabar and then reverse before the bar closes. By requiring confirmation on the close, the script avoids treating temporary intrabar movement as a completed reclaim signal.
This makes the signal model more conservative and more stable.
6) OPTIONAL TRADE PROJECTION
When a valid bullish or bearish reclaim signal appears, the script can optionally project a trade framework onto the main price chart.
This is done even though the script itself is plotted in a separate RSI pane.
Depending on settings, the projection includes:
- entry reference,
- stop-loss calculation,
- take-profit projection,
- TP box,
- SL box,
- entry line,
- BUY or SELL label.
The user can choose the entry reference method:
- Close,
- Open,
- HLC3.
The user can also choose the stop-loss mode:
- Signal Candle,
- ATR,
- Percent.
This means the script separates signal generation from risk projection. The reclaim event comes from RSI behavior, but the projected stop logic can be adapted to different preferences.
7) STOP-LOSS MODES
The script supports three stop-loss methods:
Signal Candle:
The stop is based on the high or low of the signal candle, depending on trade direction.
ATR:
The stop is based on ATR distance from the projected entry.
Percent:
The stop is based on a percentage distance from entry.
This allows the same reclaim signal model to be projected using different risk frameworks without changing the core RSI logic.
8) TAKE-PROFIT PROJECTION
Take profit is projected using a risk/reward multiple applied to the chosen stop distance.
This means the target is not arbitrary. It is derived from the actual stop distance created by the selected stop-loss mode and then multiplied by the chosen RR value.
This makes the trade projection internally consistent:
signal
→ entry method
→ stop-loss method
→ risk distance
→ take-profit distance.
9) SAME-BAR TP / SL PRIORITY
The script includes an explicit rule for bars where both TP and SL appear to be touched after entry.
The user can choose whether the same-bar priority should be:
- SL,
- or TP.
This is an important implementation detail because it affects projected review behavior. Without an explicit priority rule, same-bar ambiguity can produce inconsistent outcome interpretation.
10) TRADE BOX MAINTENANCE
The script stores projected trades internally and extends TP / SL boxes and entry lines forward as long as the trade remains active.
It also limits how many historical projected trades remain visible by using a maximum stored trade setting. This keeps the chart more manageable and prevents the projection layer from expanding indefinitely.
11) STATUS PANEL
The script includes a compact panel that can display:
- the current RSI value,
- the signal-line value,
- the current RSI state,
- short-term momentum direction based on RSI change,
- whether RSI is above or below its signal line.
This panel is designed to summarize the oscillator’s state without requiring the user to read every value directly from the plot.
12) ALERT STRUCTURE
The script can generate alerts for several types of events:
- RSI crossing above its signal line,
- RSI crossing below its signal line,
- RSI reclaiming above oversold,
- RSI rejecting below overbought,
- RSI crossing above the centerline,
- RSI crossing below the centerline,
- bullish reclaim entry signal,
- bearish reclaim entry signal,
- projected TP hit,
- projected SL hit.
This allows the script to be used either visually or as an alert-based monitoring tool.
WHAT MAKES THIS SCRIPT ORIGINAL
This script uses familiar technical-analysis building blocks such as:
- RSI,
- smoothing methods,
- threshold zones,
- ATR-based risk projection,
- percentage-based stops,
- RR-based targets,
- on-chart annotation.
Those building blocks are not original by themselves.
The originality of this script is not in inventing a completely new oscillator primitive. The originality lies in how those familiar elements are arranged into one structured RSI reclaim workflow:
RSI calculation
→ smoothing
→ signal-line derivation
→ multi-zone RSI state model
→ reclaim detection out of extreme conditions
→ optional on-chart trade projection
→ panel-based monitoring
→ alert and review behavior
That full sequence is the main reason this script exists as its own publication.
It is not intended to be simply another RSI plot, another overbought / oversold overlay, another signal-line cross tool, or another TP / SL box script. It is specifically an RSI reclaim-entry framework that combines oscillator conditioning, reclaim detection, projection, and monitoring in one workflow.
WHAT APPEARS ON THE CHART
Depending on settings, the script may display in the RSI pane:
- smoothed RSI,
- the signal line,
- 0 / 100 bounds,
- centerline,
- overbought and oversold levels,
- extreme-high and extreme-low levels,
- overbought / oversold zone fill,
- optional extreme background highlights,
- UP / DOWN labels,
- a status panel.
On the main price chart, it may also display:
- BUY / SELL labels,
- entry line,
- TP box,
- SL box,
- TP hit labels,
- SL hit labels.
This split design is intentional. RSI analysis remains in the oscillator pane, while projected execution structure appears on the price chart.
HOW TO USE THE SCRIPT
A practical workflow is:
1. Add the script to a chart and choose the RSI source and RSI length.
2. Select whether the RSI should remain raw or be smoothed.
3. Configure the signal line used for internal oscillator structure.
4. Set the overbought, oversold, extreme-high, and extreme-low thresholds.
5. Decide whether you want trade projection on the main chart.
6. Choose entry mode, stop-loss mode, and risk/reward multiple.
7. Wait for a bullish or bearish reclaim signal to be confirmed on bar close.
8. Use the projected trade structure as an analysis framework rather than as a blind instruction.
9. Use the panel and alerts to monitor RSI state and signal transitions.
10. Adjust settings only after reviewing how the same logic behaves across the symbols and timeframes you actually use.
This script is best understood as a structured decision-support and review tool, not as a self-sufficient automated trading system.
SETTINGS REFERENCE
RSI Engine
- RSI Source: input source used for RSI calculation.
- RSI Length: length of the base RSI.
- RSI Smoothing: smoothing method applied to raw RSI.
- Smoothing Length: length of the first smoothing stage.
- Signal Length: length of the signal line.
- Signal Smoothing: smoothing method used for the signal line.
Zones
- Overbought: upper reference threshold.
- Oversold: lower reference threshold.
- Extreme High: upper extreme reclaim boundary.
- Extreme Low: lower extreme reclaim boundary.
Visuals
- Highlight Extreme Background: highlights the panel background during extreme conditions.
- Show Status Panel: enables or disables the panel.
- Panel Position: controls panel location.
- Panel Text Size: controls panel text size.
Trade Engine
- Show TP / SL Boxes On Main Chart: enables or disables price-chart projection.
- Entry Price: selects the projected entry reference.
- Stop Loss Mode: selects how stop loss is calculated.
- Risk Reward: sets the take-profit multiple.
- ATR Length: ATR length used when ATR stop mode is selected.
- ATR Multiplier: ATR multiplier used for ATR stop mode.
- Percent Stop Loss: percentage stop value used in Percent mode.
- Same Bar TP/SL Priority: defines which outcome wins when both are touched on one bar.
- Max Stored Trade Boxes: limits how many projected historical trades remain visible.
Alerts
- Enable RSI / Signal Cross Alerts: alerts for oscillator / signal crosses.
- Enable OB / OS Reclaim Alerts: alerts for reclaim behavior around overbought / oversold.
- Enable Centerline Alerts: alerts for 50-line crosses.
- Enable Entry Signal Alerts: alerts for bullish and bearish reclaim entries.
- Enable TP / SL Hit Alerts: alerts for projected trade outcomes.
IMPORTANT PRACTICAL NOTES
This script depends heavily on the chosen RSI thresholds.
If thresholds are too wide, signals may become very rare.
If thresholds are too narrow, signals may become too frequent.
Signal quality and frequency will also change depending on:
- RSI length,
- smoothing method,
- signal-line length,
- timeframe,
- symbol volatility,
- stop-loss mode.
Because trade projection is built from RSI events rather than from direct price-structure analysis, the projected boxes should be understood as a standardized review layer, not as proof that the market itself respects those projected levels.
LIMITATIONS AND SHORTCOMINGS
This script has important limitations:
- It is an oscillator-based reclaim model, not a full market-structure system.
- It does not identify support and resistance or discretionary chart structure.
- It does not claim that all extreme RSI conditions will reverse.
- It does not use volume profile, order flow, or trend structure beyond the oscillator model itself.
- Its signals depend on smoothing choices and threshold definitions.
- Projected TP / SL outcomes depend on the chosen entry and stop-loss method.
- Same-bar ambiguity is handled by a rule, not by true intrabar reconstruction.
- Historical projected trade behavior should not be interpreted as guaranteed live performance.
- No RSI-based reclaim model can remove all false signals or all regime-dependent behavior.
For those reasons, the script should be used as a structured analysis and review framework, not as a promise of future profitability.
WHO THIS SCRIPT MAY BE USEFUL FOR
This script may be useful for traders who:
- use RSI as a state and transition tool rather than as a static threshold indicator,
- care about reclaim behavior out of extreme zones,
- want optional projected risk structure on the price chart,
- want a compact RSI-state panel,
- want alert-based monitoring of oscillator events.
It may be less suitable for traders who:
- want a pure trend-following tool,
- want structural support / resistance logic,
- want a complete strategy with no need for outside confirmation,
- want projected trade statistics to be treated as live-execution evidence.
DISCLAIMER
This script is provided for educational and informational purposes only.
It does not constitute financial, investment, or trading advice.
Market conditions change, historical behavior does not guarantee future results, and users should perform their own analysis, validation, and risk management before using the script in live decision-making. Indicator

Smart Reversal EntrySmart Reversal Entry
Smart Reversal Entry is an open-source reversal-entry indicator built around one specific analytical idea:
after a short, directional three-candle expansion move, the first confirmed candle closing back in the opposite direction can create a structured reversal-entry opportunity when it appears in the correct EMA context.
This script is not designed to mark every bullish or bearish candle, and it is not intended to behave like a generic trend-following overlay, a standard candlestick-pattern indicator, or a broad “signal generator” that reacts to every small reversal. Its purpose is to measure short-term directional exhaustion in a standardized way, filter that move through an EMA context, require close-confirmed reversal behavior, and then project a fixed-risk trade structure directly on the chart for analysis and review.
The script also includes an internal background optimizer and review tables so users can compare how the same reversal framework behaves under different parameter combinations. These review tools are included to support study and comparison, not to imply future performance.
OPEN-SOURCE NOTE
This script is published open-source so users can inspect the logic directly, verify what the script is doing, and adapt parts of the workflow for their own research if they wish.
Even though the code is open, this description is intentionally detailed because many PulseWire users do not read Pine Script. The goal is for a user to understand what the script does, how it works, why its parts belong together, and how it may be used in practice without having to study the code line by line.
OVERVIEW
At a high level, the script does six things:
1. It measures whether the last three candles produced a directional move large enough to matter in pip terms.
2. It checks whether price is positioned on the correct side of a selected EMA filter.
3. It requires the current candle to close in the opposite direction as confirmation of a possible reversal.
4. It maps a fixed stop-loss and a selectable take-profit multiple directly onto the chart.
5. It tracks projected trade outcomes and summarizes them in a review table and a daily PnL table.
6. It runs a hidden background optimizer over multiple EMA and move-threshold combinations so the user can compare the current settings to an internal parameter sweep.
The script is therefore meant to function as a complete reversal-entry and review framework rather than as a single-purpose candle-pattern marker.
CORE IDEA
Many reversal-style tools identify isolated candles or basic candlestick formations, but they do not standardize the market context around them.
This script is built around the idea that a reversal signal becomes more meaningful when three specific things happen together:
1. price has already made a clear short-term directional move,
2. that move is large enough to matter relative to the chosen pip structure,
3. and the next confirmed candle closes back in the opposite direction while price remains on the correct side of an EMA filter.
The model is intentionally narrow.
It does not try to identify every turning point in the market.
It does not try to classify broad market structure.
It does not use discretionary support and resistance interpretation.
It does not rely on vague candle descriptions such as “looks weak” or “looks exhausted”.
Instead, it defines reversal-entry conditions using a fixed sequence:
first measure a three-candle directional push,
then filter it using EMA context,
then require an opposite close-confirmed candle,
then project a standardized risk framework,
then review the resulting projected outcomes over time.
That narrower focus is the main reason this script exists in its current form.
WHY THIS SCRIPT IS NOT A SIMPLE MASHUP
This script combines multiple components, but they are not included simply to place more features into one publication.
Each component has a specific function inside the same analytical workflow:
- The EMA filter defines directional context.
- The three-candle move measurement defines whether a short-term push is large enough to qualify.
- The reversal candle confirmation defines the actual entry trigger.
- The pip-based stop-loss and RR framework standardize trade projection.
- The summary and daily review tables organize projected outcomes into a readable review structure.
- The internal optimizer compares the same reversal logic across multiple hidden EMA and move-threshold combinations.
These layers are interdependent.
Without the three-candle move measurement, the script would react to many small candles that do not represent meaningful short-term expansion.
Without the EMA filter, the script would lose its directional context and become a more generic reversal marker.
Without the close-confirmed reversal candle, the script would identify momentum but not the actual reversal-entry moment.
Without the risk projection layer, the user would still need to manually draw the entry, stop, and target after every signal.
Without the review tables, the user would have less organized feedback when reviewing results under the selected settings.
Without the internal optimizer, the user would see only the current configuration and not how the same logic behaves across a broader parameter range.
For that reason, the script is intended as a single reversal-entry framework, not as a random collection of unrelated features.
WHAT THE SCRIPT DOES
The script identifies reversal-entry setups using a strict, rule-based structure.
Long setup requirements:
- price must be above the selected EMA,
- the prior three candles must all be bearish,
- the combined bearish move across that sequence must reach the minimum pip threshold,
- the current candle must close bullish.
Short setup requirements:
- price must be below the selected EMA,
- the prior three candles must all be bullish,
- the combined bullish move across that sequence must reach the minimum pip threshold,
- the current candle must close bearish.
When a valid signal appears, the script can:
- place a BUY or SELL label,
- project a fixed stop loss in pips,
- project a take-profit level using the selected RR multiple,
- draw TP/SL boxes,
- draw an entry line,
- keep historical projected trades visible for later review,
- summarize projected outcomes in a summary table,
- summarize recent daily projected behavior in a daily PnL table.
The script also evaluates an internal optimizer in the background. That optimizer tests multiple EMA lengths and minimum-move combinations using the same reversal logic and displays the best-performing parameter combination inside the summary table over the shared analysis window.
HOW THE SCRIPT WORKS
1) EMA CONTEXT FILTER
The script uses a single EMA as a directional filter.
For long setups:
price must close above the selected EMA.
For short setups:
price must close below the selected EMA.
This does not turn the script into a pure trend-following system. Instead, it acts as a directional context filter so that reversal entries are only considered when price is positioned on the chosen side of the EMA.
In practical terms, the EMA filter is used to reduce context-free reversal signals. A bullish candle appearing after a bearish push is not enough by itself. The script still wants price to be trading above the selected EMA for longs, and below it for shorts.
2) THREE-CANDLE DIRECTIONAL MOVE MEASUREMENT
The script looks at the three candles immediately before the signal candle.
For a long setup:
those three candles must all be bearish.
For a short setup:
those three candles must all be bullish.
The script then measures the total directional move across that sequence in pip terms.
For long setups, it calculates the bearish move from the open of the first candle in the sequence to the close of the third bearish candle.
For short setups, it calculates the bullish move from the open of the first candle in the sequence to the close of the third bullish candle.
That move must be at least as large as the user-defined “Minimum 3-Candle Move (Pips)” setting.
This is one of the key parts of the script’s logic. It ensures that the setup is not based on three arbitrary candles, but on a directional push that is large enough to meet the minimum threshold selected by the user.
3) REVERSAL CANDLE CONFIRMATION
After the three-candle directional push is identified, the current candle must close in the opposite direction.
For long setups:
the current candle must close bullish.
For short setups:
the current candle must close bearish.
This requirement is intentionally strict. The script does not treat intrabar movement or unfinished candles as a valid signal. Signals are confirmed only when the bar closes.
This matters because a reversal that looks valid intrabar can disappear by the close. By waiting for close confirmation, the script reduces premature signal marking.
4) COOLDOWN FILTER
The script includes a cooldown period between signals.
Once a signal has fired, a new signal is not allowed until a defined number of bars has passed. In the current implementation, that cooldown is handled internally.
The purpose of this filter is to reduce signal clustering and prevent the chart from producing multiple nearby entries from the same short-term market behavior.
5) PIP-BASED RISK PROJECTION
When a valid signal appears, the script creates a projected trade framework using:
- entry at the signal close,
- a fixed stop-loss distance in pips,
- a take-profit level based on the selected risk/reward multiple.
This makes the projection logic standardized across signals.
For long setups:
- stop loss is placed below entry,
- take profit is placed above entry.
For short setups:
- stop loss is placed above entry,
- take profit is placed below entry.
The script can draw:
- entry line,
- TP box,
- SL box,
- BUY / SELL label,
- TP / SL hit labels.
This projection layer is not meant to claim that a setup will succeed. Its purpose is to reduce manual chart annotation and make the behavior of the signal model easier to inspect after the fact.
6) SAME-BAR TP/SL PRIORITY RULE
The script uses a strict and conservative rule when both target and stop would appear to be touched on the same bar after entry:
if TP and SL are both reached on the same bar, SL takes priority.
This is an important implementation detail because it directly affects projected statistics. It makes the review logic more conservative and avoids optimistic ambiguity when bar data alone cannot determine exact intrabar order.
7) SHARED ANALYSIS WINDOW
The script uses a shared analysis window internally.
Projected results and optimizer comparisons are evaluated over a rolling historical range rather than over the full unlimited chart history. This keeps the internal review process more controlled and makes the optimizer comparison consistent inside the same defined lookback window.
8) INTERNAL OPTIMIZER
One of the script’s more advanced components is the internal optimizer.
The optimizer runs in the background and is intentionally not exposed as a user-facing optimization panel. Instead of asking the user to manually test every variation, the script internally evaluates combinations of:
- 10 EMA values,
- 10 minimum-move thresholds.
That produces 100 total internal combinations.
Each combination uses the same reversal logic:
- EMA context,
- three-candle directional sequence,
- minimum move threshold,
- opposite close-confirmed candle,
- same stop-loss and RR structure.
The optimizer then tracks projected wins, losses, net R, gross profit, and gross loss for each combination, and the summary table displays the current best combination based on the script’s internal comparison rules.
This optimizer is not intended to present a “perfect setting”. It is a comparative review aid that helps the user understand how the same reversal framework behaves across multiple hidden parameter combinations.
WHAT MAKES THIS SCRIPT ORIGINAL
This script uses familiar technical-analysis building blocks such as:
- EMA filtering,
- candle-sequence logic,
- pip-based move measurement,
- fixed stop-loss projection,
- risk/reward mapping,
- performance review tables.
Those building blocks are not original by themselves.
The originality of this script is not in inventing a completely new primitive indicator. The originality lies in how these familiar elements are arranged into one tightly defined reversal-entry workflow:
EMA context
→ three-candle directional expansion
→ minimum pip-threshold validation
→ opposite candle close confirmation
→ fixed-risk trade projection
→ on-chart review
→ internal background parameter comparison
That full sequence is the main reason this script exists as its own publication.
It is not intended to be simply another EMA filter, another candlestick marker, another TP/SL visualizer, or another optimizer dashboard. It is specifically a short-term reversal-entry framework that combines directional context, expansion measurement, confirmation logic, risk mapping, and review in one workflow.
WHAT APPEARS ON THE CHART
Depending on settings, the chart may display:
- EMA line,
- BUY labels,
- SELL labels,
- signal-bar background highlights,
- entry line,
- TP box,
- SL box,
- TP hit labels,
- SL hit labels,
- summary table,
- daily PnL table.
Users who want a cleaner chart can disable some visual layers and keep only the ones most relevant to their workflow.
HOW TO USE THE SCRIPT
A practical workflow is:
1. Add the script to a standard candlestick chart.
2. Select the EMA length you want to use as directional context.
3. Set the minimum three-candle move threshold in pips.
4. Set the pip preset correctly for the instrument, or use manual pip size if needed.
5. Choose the stop-loss distance in pips.
6. Select the RR mode used for take-profit projection.
7. Wait for a valid long or short setup to appear.
8. Use the projected entry, stop, and target structure as a chart-analysis framework rather than as a blind instruction.
9. Review projected trade behavior in the summary table and daily table.
10. Compare your selected settings with the optimizer’s best internal combination, but do not treat the optimizer output as a guaranteed best future configuration.
This script is best understood as a structured decision-support and reversal-review tool, not as a self-sufficient trading system.
SETTINGS REFERENCE
Signal Settings
- EMA Length: sets the EMA used as the directional filter.
- Minimum 3-Candle Move (Pips): defines how large the directional three-candle move must be before a reversal candle can qualify.
Pip Settings
- Pip Preset: selects a predefined pip-size interpretation for common instrument types.
- Manual Pip Size: allows direct control when the selected symbol needs a custom pip conversion.
Risk Management
- Stop Loss (Pips): sets the fixed stop-loss distance in pip units.
- Take Profit RR: sets the projected target multiple relative to the stop-loss distance.
Visual Settings
- Show Buy/Sell Labels: shows or hides the signal labels.
- Highlight Signal Bars: adds background color to signal bars.
- Show Entry Line: shows or hides the projected entry line.
- Show TP/SL Hit Labels: controls whether projected outcomes are labeled.
- Show TP Hit Labels: controls TP hit labels specifically.
- Show SL Hit Labels: controls SL hit labels specifically.
Summary Table
- Show Summary Table: enables or disables the main review table.
- Table Position: sets the table location.
- Table Text Size: controls summary-table text size.
Daily PnL Table
- Show Daily PnL Table: enables or disables the daily review table.
- Daily Table Position: sets the daily table location.
- Daily Table Text Size: controls daily-table text size.
INTERNAL LOGIC NOTES
The current code also includes internal settings that are not exposed as user-facing optimization controls. These include:
- signal cooldown,
- shared analysis window,
- maximum stored closed-trade visuals,
- hidden optimizer activation,
- internal optimizer parameter combinations.
These internal elements exist to keep the public interface simpler while still allowing the script to maintain consistent review behavior in the background.
IMPORTANT PRACTICAL NOTE ON PIP SIZE
The script uses pip-based calculations for:
- the minimum three-candle move,
- stop-loss distance,
- take-profit distance,
- optimizer comparison logic.
Because of that, correct pip interpretation is extremely important.
If signals appear too frequent, too rare, too compressed, or visually inconsistent for the instrument being analyzed, the first setting to verify is Pip Preset or Manual Pip Size.
This matters especially for:
- gold symbols,
- 5-digit forex symbols,
- JPY forex pairs,
- indices and CFD-style instruments,
- custom broker symbols with unusual decimal formatting.
LIMITATIONS AND SHORTCOMINGS
This script has important limitations:
- It is a short-term reversal model, not a full market-structure engine.
- It only evaluates one specific reversal pattern based on a three-candle directional push and an opposite close-confirmed candle.
- It does not use support/resistance structure, volume profile, or discretionary context.
- It relies on pip conversion, so poor pip settings can distort signal behavior.
- The internal optimizer compares parameter combinations only inside the defined shared analysis window.
- The optimizer output is a comparative review tool, not a guarantee that the best historical combination will remain best in future market conditions.
- Projected results depend on the script’s own simplified outcome logic.
- If TP and SL are both touched on the same bar, SL is prioritized by design, which makes the logic more conservative but also affects outcome statistics.
- Historical projected trades and review metrics are chart-based review aids, not proof of tradable real-world execution.
- No reversal-entry model can remove all false signals or all regime-dependent behavior.
For those reasons, the script should be used as a structured analysis and review framework, not as a promise of future profitability.
WHO THIS SCRIPT MAY BE USEFUL FOR
This script may be useful for traders who:
- want a rules-based short-term reversal-entry model,
- want EMA-based directional context,
- want a minimum expansion threshold before a reversal is allowed,
- want fixed-risk trade projection on the chart,
- want review tables for projected outcomes,
- want background comparison of multiple EMA and move-threshold combinations.
It may be less suitable for traders who:
- want a broad trend-following system,
- want a discretionary support/resistance engine,
- want a multi-pattern candlestick library,
- want a fully automated strategy with no outside confirmation,
- want outcome metrics interpreted as live performance promises.
DISCLAIMER
This script is provided for educational and informational purposes only.
It does not constitute financial, investment, or trading advice.
Market conditions change, historical behavior does not guarantee future results, and users should perform their own analysis, validation, and risk management before using the script in live decision-making. Indicator

Reaction Entry EngineReaction Entry Engine
Reaction Entry Engine is an open-source supply and demand reaction indicator built around one specific analytical idea:
the first meaningful return into a structurally valid zone can carry different information than later retests of the same area.
This script is not designed to mark every possible touch of every level, and it is not intended to behave like a generic supply and demand overlay that treats repeated interaction the same way. Its purpose is to build supply and demand zones from confirmed pivot structure, optionally validate the strength of the move that created the zone, rank the zone using an internal quality model, detect first-touch reactions, and map those reactions into a structured on-chart framework for analysis and review.
The script also includes review panels so users can inspect how projected setups behaved over time under the current settings. Those review tools are included to support study and comparison, not to imply future performance.
OPEN-SOURCE NOTE
This script is published open-source so users can inspect the logic directly, verify what the script is doing, and adapt parts of the workflow for their own research if they wish.
Even though the code is open, this description is intentionally detailed because many PulseWire users do not read Pine Script. The goal is for a user to understand what the script does, how it works, why its parts belong together, and how it may be used in practice without having to study the code line by line.
OVERVIEW
At a high level, the script does six things:
1. It builds supply and demand zones from confirmed pivot structure.
2. It can source those zones from the chart timeframe, from a higher timeframe, or from both.
3. It can filter weak formations by checking whether the move surrounding the pivot had enough directional strength.
4. It can score zone quality using post-formation displacement, reaction behavior, penetration depth, and repeated-touch penalties.
5. It can detect first-touch reactions into valid zones.
6. It can project entry, stop, and target structure on the chart and summarize projected historical behavior in review panels.
The script is therefore meant to function as a complete first-touch zone reaction framework rather than as a single-purpose zone-drawing tool.
CORE IDEA
Many structural tools identify areas where price may react, but they do not distinguish clearly between the first meaningful return into a zone and later repeated interaction with that same area.
This script is built around the idea that those two situations are not necessarily equivalent.
A fresh or relatively intact zone may behave differently from a zone that has already been tested multiple times. Because of that, the script does not treat all contact events in the same way. It attempts to organize the workflow into a more selective sequence:
first identify structure,
then filter weak structure,
then rank remaining zones,
then focus on the earliest qualifying return,
then map that return into a consistent visual framework for review.
This narrower focus is the main reason the script exists in its current form.
WHY THIS SCRIPT IS NOT A SIMPLE MASHUP
This script combines multiple components, but they are not included simply to place more features into one publication.
Each component has a specific function inside the same analytical process:
- Zone construction defines the structural areas.
- Multi-timeframe sourcing expands or narrows the structural map.
- The impulse filter reduces zones formed without meaningful directional expansion.
- The quality engine separates stronger and weaker structural candidates.
- The first-touch logic makes the model more selective than a repeated-touch zone script.
- The projection layer reduces the need for manual chart annotation after a setup appears.
- The review panels allow the user to examine projected historical behavior under the chosen settings.
These layers are interdependent.
Without the zone engine, there is no structural area to evaluate.
Without impulse validation, the model accepts more weak or noisy pivots.
Without quality scoring, all detected zones are treated too similarly.
Without first-touch logic, the script behaves more like a generic touch-based zone tool.
Without the projection layer, the user still has to manually draw entry, stop, and target structure after each setup.
Without the review layer, the user has less organized feedback when comparing settings or reviewing behavior across time.
For that reason, the script is intended as a single first-touch supply and demand reaction framework, not as a random collection of unrelated features.
WHAT THE SCRIPT DOES
The script identifies supply and demand zones from confirmed pivot highs and pivot lows.
Once a zone is created, the script can continue to monitor it and decide whether it should remain only as a structural reference or whether it qualifies for deeper evaluation inside the reaction framework.
Depending on settings, the script can:
- draw supply and demand zones,
- create zones from the chart timeframe,
- create zones from a selected higher timeframe,
- merge nearby zones of the same type,
- classify zones using an internal quality model,
- detect first-touch BUY or SELL reactions,
- project entry, stop loss, and take profit structure,
- retain historical projected trades on the chart,
- summarize projected behavior in performance and daily review panels.
This allows the chart to function not only as a zone map, but also as a structured review environment for the script’s own reaction model.
HOW THE SCRIPT WORKS
1) SUPPLY AND DEMAND ZONE CONSTRUCTION
The script uses pivot highs and pivot lows to define structural areas.
A pivot high can produce a supply zone.
A pivot low can produce a demand zone.
Rather than treating a pivot as one exact price, the script expands the pivot into a zone using a configurable pip-based thickness. This is important because many traders interpret supply and demand as areas rather than as single lines.
The script can build zones from:
- the current chart timeframe,
- a selected higher timeframe,
- or both at the same time.
If nearby zones of the same type are close enough to one another, the script can merge them into a broader structural area. This is meant to reduce overlap and make the displayed structure easier to read.
2) CONFIRMED ZONE LOGIC
The script includes a minimum-touch setting for confirmed zones.
This setting allows users to distinguish between:
- zones that have merely been detected,
- and zones that have accumulated enough interaction to be considered more established.
Different traders interpret this differently. Some prefer relatively fresh zones. Others prefer zones that have already shown repeated market interaction. The script is designed to support both approaches through settings rather than by forcing one interpretation.
3) TOUCH DETECTION
Zone interaction can be recognized using:
- wick touch,
- body touch,
- or both.
This affects how strict or permissive the model is when determining whether price has returned into a zone.
A wick-based model can capture sharp rejections that only briefly enter the area.
A body-based model is stricter and may reduce noise.
Using both provides broader coverage.
This means the same structural framework can be adapted to different preferences without changing the core logic of the script.
4) IMPULSE VALIDATION
Not every pivot represents meaningful structure.
Some pivots are formed during weak, indecisive, or noisy movement. To reduce that problem, the script can apply an impulse filter around the pivot that created the zone.
The impulse filter can evaluate factors such as:
- candle direction,
- candle range relative to ATR,
- candle body size relative to ATR,
- close location near the candle extreme,
- optional relative-volume participation.
The purpose of this filter is not to predict future direction by itself. Its purpose is simply to reduce zones that were formed without enough directional commitment.
5) QUALITY ENGINE
After a zone is created, the script can score it using an internal quality model.
The quality engine can consider:
- displacement after formation,
- reaction size after the first touch,
- penetration depth into the zone,
- repeated-touch penalty.
That information is then used to classify zones into internal grades such as:
- A,
- B,
- TRASH.
These grades are not guarantees and should not be interpreted as objective truth. They are simply the script’s own ranking method for separating stronger and weaker structural candidates under the current settings.
Users can keep all zones visible or restrict the workflow to higher-grade zones only.
6) FIRST-TOUCH REACTION MODEL
The central idea of the script is first-touch selection.
Rather than treating every revisit of a zone as equally important, the script attempts to detect the earliest qualifying return into a valid zone.
This makes the script more specific than:
- a basic supply and demand overlay,
- a general touch-alert tool,
- or a repeated-contact zone script.
For traders who consider early reactions to be structurally important, this framework may be useful because it intentionally avoids reacting in the same way to every later revisit of the same area.
7) TRADE PROJECTION LAYER
When a valid first-touch reaction is detected, the script can project a structured trade framework on the chart.
Depending on settings, this can include:
- BUY or SELL labels,
- an entry reference,
- stop loss,
- take profit,
- guide lines,
- TP and SL boxes,
- retained historical visual structure for later review.
This projection layer is not meant to claim that a setup will succeed. Its purpose is to reduce manual chart annotation and make the script’s reaction logic easier to inspect after the fact.
8) REVIEW PANELS
The script includes review panels that summarize projected historical behavior.
Depending on available chart history and current settings, the review may include metrics such as:
- total projected trades,
- wins,
- losses,
- win rate,
- profit factor,
- average result,
- net result,
- drawdown behavior,
- streak behavior.
A separate daily panel summarizes projected daily behavior according to the script’s configured timezone logic.
These panels are review tools only. They do not replace formal strategy testing, execution analysis, or live validation, and they should not be interpreted as promises of future performance.
WHAT MAKES THIS SCRIPT ORIGINAL
This script uses familiar technical-analysis building blocks such as pivots, ATR, candle structure, relative range expansion, optional volume comparison, and zone interaction logic.
Those building blocks are not original by themselves.
The originality of this script is not in inventing a completely new primitive indicator. The originality lies in how these familiar elements are arranged into one selective workflow:
pivot-based zone construction
→ optional multi-timeframe structure sourcing
→ impulse validation
→ quality scoring
→ first-touch selection
→ trade projection
→ on-chart review
That full sequence is the main reason this script exists as its own publication.
It is not intended to be simply another pivot tool, another ATR-based filter, or another chart dashboard. It is specifically a first-touch supply and demand reaction framework that combines structure detection, formation filtering, zone ranking, selective reaction logic, projection, and review in one workflow.
WHAT APPEARS ON THE CHART
Depending on settings, the chart may display:
- supply zones,
- demand zones,
- higher-timeframe zones,
- confirmed-zone coloring,
- zone labels,
- zone grades,
- BUY and SELL markers,
- entry / stop / target lines,
- TP / SL boxes,
- review panel,
- daily review panel.
Users who want a cleaner chart can disable some visual layers and keep only the ones most relevant to their workflow.
HOW TO USE THE SCRIPT
A practical workflow is:
1. Add the script to a standard candlestick chart.
2. Decide whether you want zones from the chart timeframe, from a higher timeframe, or from both.
3. Choose how strict touch detection should be by using wick touch, body touch, or both.
4. Enable the impulse filter if you want to reduce weaker pivot-based formations.
5. Enable the quality engine if you want to rank zones and restrict the workflow to stronger structural candidates.
6. Select the minimum accepted grade if you want stricter setup filtering.
7. Wait for a qualifying first-touch BUY or SELL reaction.
8. Use the projected entry, stop, and target structure as an analysis framework rather than as a blind instruction.
9. Review how prior projected setups behaved under the same settings.
10. Combine the script’s output with market context, execution rules, and risk management.
This script is best understood as a structured decision-support and chart-review tool, not as a fully self-sufficient trading system.
SETTINGS REFERENCE
Supply & Demand Engine
- Enable Supply & Demand Engine: turns structural zone detection on or off.
- Show S&D Zones: controls whether zone boxes are visible.
- Pip Value: converts pip-based calculations into instrument-specific price units.
- Pivot Left / Pivot Right: define pivot-confirmation depth.
- Use Chart Timeframe Zones: includes zones from the active chart timeframe.
- Use Higher Timeframe Zones: includes zones from the selected higher timeframe.
- Higher Timeframe: selects the HTF used for additional zone sourcing.
- Minimum Touches for Confirmed Zone: defines when a zone is considered confirmed.
- Zone Thickness (pips): controls zone thickness.
- Zone Merge Distance (pips): controls when nearby zones may be merged.
- Break Close Buffer (pips): defines the close-through buffer used in break logic.
- Maximum Stored Zones: limits how many zones remain in memory.
- Use Wick Touch / Use Body Touch: define how interaction with a zone is recognized.
Impulse Filter
- Enable Impulse Filter: turns pivot-strength filtering on or off.
- Impulse Candle Count: number of candles checked after pivot formation.
- ATR Length: ATR period used by the impulse model.
- Minimum Range x ATR: required range expansion relative to ATR.
- Minimum Body x ATR: required body expansion relative to ATR.
- Close Near Extreme: requires the candle to close near its extreme.
- Require Volume Condition: optionally adds a relative-volume filter.
- Volume SMA Length / Minimum Volume x SMA: control the volume filter.
Quality Engine
- Enable Quality Engine: turns zone scoring on or off.
- Displacement Bars: measures post-formation expansion.
- Minimum Displacement (pips): required structural push after formation.
- Reaction Window (bars): number of bars used to evaluate post-touch behavior.
- Minimum Reaction (pips): minimum bounce or rejection required.
- Maximum Penetration %: limits acceptable penetration into the zone.
- Touch Penalty: reduces score as repeated interaction accumulates.
- Hide TRASH Grade Zones: removes weaker zones from view.
- Show Grade on Zones: displays grade labels on the chart.
- Show Zone Labels / Zone Label Size: control zone-label visibility and size.
Trade Projection
- Enable Simulator: turns first-touch trade projection on or off.
- Take Profit RR: sets the target multiple relative to stop distance.
- Stop Loss (pips): sets the projected stop distance.
- Use Chart TF Signals Only: restricts projected setups to chart-timeframe zones.
- Minimum Grade: defines the lowest accepted grade for projected setups.
- Show Entry / Exit Labels: displays entry and exit labels.
- Show Entry / SL / TP Lines: displays projection lines.
- Projection Length (bars): extends projected visuals into future bars.
- Show TP / SL Boxes: displays TP and SL boxes.
- Box Fill / Border controls: change trade-box styling.
- Show Performance Panel / Panel Position: control review-panel visibility and position.
- Show Daily PnL Panel / Number of Days / Panel Position: control daily-review settings.
IMPORTANT PRACTICAL NOTE ON PIP VALUE
The script uses a Pip Value setting to convert internal pip-based distances into actual price distances.
This matters because different instruments use different decimal structures.
If zones, stop loss, take profit, or projected distances appear too compressed, too large, or otherwise inconsistent for the instrument being analyzed, the first setting to verify is Pip Value.
On some symbols, especially small-decimal forex instruments, this setting may need adjustment for the script’s structural and projection logic to behave as intended.
LIMITATIONS AND SHORTCOMINGS
This script has important limitations:
- It relies on pivot confirmation, so some structural elements are recognized only after a confirmation delay.
- Zone behavior can vary across symbols, brokers, spreads, sessions, and volatility regimes.
- Higher-timeframe zones depend on the selected timeframe and can materially change the number and spacing of setups.
- The quality engine is a ranking model, not an objective truth detector.
- The review panels reflect the script’s own projected logic and settings, not guaranteed tradable outcomes.
- The script can be sensitive to pip-conversion settings on some markets.
- First-touch logic is selective by design, so it may ignore later reactions that some traders would still consider relevant.
- No zone model can remove all false signals or all regime-dependent behavior.
For those reasons, the script should be used as a structured analysis and review framework, not as a promise of future profitability.
WHO THIS SCRIPT MAY BE USEFUL FOR
This script may be useful for traders who:
- study supply and demand behavior,
- care more about first-return reactions than repeated retests,
- want structural filtering rather than raw touch alerts,
- want automatic trade mapping for chart review,
- want historical on-chart review of projected outcomes.
It may be less suitable for traders who:
- want every zone retest marked,
- want a minimal chart with almost no overlays,
- want a finished strategy that requires no outside confirmation or discretion.
DISCLAIMER
This script is provided for educational and informational purposes only.
It does not constitute financial, investment, or trading advice.
Market conditions change, historical behavior does not guarantee future results, and users should perform their own analysis, validation, and risk management before using the script in live decision-making. Indicator

[ A L P H A X ] Dynamic Liquidity Matrix
AlphaX Dynamic Liquidity Matrix — Volume-Weighted Liquidity Heatmap, Fair Value Gap Overlay, Sweep Detection & Live Bias Dashboard
AlphaX Dynamic Liquidity Matrix is a professional-grade liquidity mapping system that identifies where stop-loss clusters and unfilled liquidity pools accumulate across the recent price range — and tracks them in real time. Unlike a static volume profile that simply measures historical volume at price, this indicator builds a fully dynamic heatmap from volume-weighted pivot extremes, recalculates on every bar, and only displays zones that price has not yet revisited. These are the active pockets that institutions and smart money systematically target for liquidity sweeps.
Built on the AlphaX brand framework, the indicator combines four distinct analytical layers: a dynamic liquidity profile, a Fair Value Gap (imbalance) overlay, a sweep detection engine, and a live market context dashboard — all unified under a single, clean visual system.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔬 The Dynamic Liquidity Profile — How It Works
Most volume profiles are passive historical tools. The AlphaX Dynamic Liquidity Matrix is active and forward-looking.
On every bar within your configured lookback window, the indicator identifies swing highs and swing lows and assigns each one a volume weight based on the smoothed cumulative volume at that moment — normalized against the maximum volume within the entire lookback window. This produces a volume score (0–100%) for every extreme, which represents the relative significance of the liquidity pool at that price.
These volume-weighted extremes are then distributed across a configurable number of price bins (resolution levels) spanning the full high-to-low range of the lookback window. Each bin accumulates the total volume from every pivot that maps into it. The result is a real-time heatmap profile showing exactly where liquidity is concentrated — heavier at some levels, lighter at others.
The ATR is used to scale the pivot offset distance dynamically, meaning the profile adapts automatically to the current volatility regime. On high-volatility instruments and timeframes, the pivot offsets expand; on quiet markets, they contract. No manual recalibration is required.
What makes this different from a standard Volume Profile:
Standard volume profiles measure how much volume traded at a price — they are backward-looking and include already-filled orders
AlphaX DLM tracks unmitigated pivot extremes — zones where stops and unfilled orders still exist because price has NOT revisited them since they formed
Every pivot that gets swept by price is automatically removed from the profile — keeping the map clean and relevant at all times
The profile rebuilds every bar, so it reflects the current state of the market's liquidity landscape, not a snapshot from hours or days ago
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Profile Visualization
The profile is displayed as horizontal bars extending to the right of the current price, with each bar representing one price bin. The visual system communicates multiple layers of information simultaneously:
Color Logic
Yellow-green bars — bins where the current close is above the bin midpoint (buy-side liquidity / demand zones)
Red bars — bins where the current close is below the bin midpoint (sell-side liquidity / supply zones)
Orange highlight — the Point of Control (POC) bin, the single highest-volume level in the entire profile
Gradient Depth
Each bar uses a gradient that scales from near-transparent at low volume to fully opaque at high volume. At a glance, the most significant liquidity concentrations stand out immediately — no need to read numbers or hover over elements.
Volume Labels
For bins with above-average volume accumulation, the raw volume figure is displayed inside the bar. A percentage label on the left side of each bar shows what proportion of the maximum bin volume that level represents. This gives you both absolute and relative context for every zone.
POC Line
The Point of Control — the level with the highest accumulated liquidity in the profile — is marked with a full dashed horizontal line that extends across the entire lookback window. This makes it easy to see how price has historically reacted around the dominant liquidity level: rejected it, consolidated around it, or broken through it cleanly. A labeled marker on the right identifies the POC precisely.
Liquidity Level Lines
Each active bin above the noise floor is also represented by a dotted horizontal line on the chart itself. The line starts from the bar where price last tested that level and runs to the current bar, giving you a visual connection between the historical pivot origin and the current profile position. Line width scales with the bin's relative volume weight — heavier lines mean more significant zones.
Buy / Sell Split Mode
An optional split view separates each profile bar into its buy-side and sell-side components, stacked side by side. This lets you see at a single level whether it is dominated by buy-side stop clusters (below price), sell-side stop clusters (above price), or a balanced mix — critical for anticipating which direction a liquidity sweep is more likely to run.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ Fair Value Gap (Imbalance) Overlay
A Fair Value Gap is a three-candle imbalance where the body of the middle candle is not overlapped by the wicks of the surrounding candles, creating a gap in price delivery. These gaps represent unfilled orders left by rapid, one-sided moves — and price has a strong statistical tendency to return to fill them.
AlphaX DLM detects and displays these gaps directly on the chart as shaded rectangular zones:
Bullish FVG — the low of the current candle is higher than the high of the candle two bars prior. Price moved up so quickly it left an unfilled gap below. Displayed in yellow-green.
Bearish FVG — the high of the current candle is lower than the low of the candle two bars prior. Price moved down so quickly it left an unfilled gap above. Displayed in red.
Mitigation Tracking
Once price returns and closes inside a FVG zone (mitigating it), the box is automatically removed from the chart. Only genuinely unmitigated gaps remain visible at all times — the overlay stays clean and actionable regardless of how many gaps have formed historically.
ATR-Scaled Minimum Size Filter
A configurable minimum FVG size (expressed as a multiple of the current ATR) filters out micro-gaps caused by normal spread or noise. Only structurally significant imbalances that represent real impulsive moves are displayed.
Background Highlight
When the current close is inside an active FVG zone — meaning price is currently sitting inside an unmitigated imbalance — the chart background highlights in a subtle amber tone. This is a real-time alert that price is at a decision point within institutional supply or demand.
How to trade FVGs with the Liquidity Matrix:
When a FVG aligns with a high-volume liquidity bin on the profile, the confluence is significant — two independent reasons for price to react at the same level
Bullish FVG zones near buy-side liquidity clusters are high-priority long re-entry areas
Bearish FVG zones near sell-side liquidity clusters are high-priority short re-entry areas
A sweep into a zone followed by an immediate close back through it (a sweep-and-reverse pattern) is one of the cleanest entry setups the indicator can flag
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 Liquidity Sweep Detection
Liquidity sweeps are the mechanism by which institutional players clear stop-loss orders before reversing price in the opposite direction. Identifying sweeps in real time gives retail traders the opportunity to enter after the stops have been taken — in alignment with the direction the institution is positioning.
AlphaX DLM detects sweeps using the following logic:
Bullish Sweep (⚡ SWEEP LOW)
The current bar's low breaches the lowest low of the configurable sweep lookback window, but the bar closes above that low and closes as a bullish candle. This pattern indicates that sell-side stops below the recent range were triggered, absorbed, and reversed — a classic stop hunt before an upside move.
Bearish Sweep (⚡ SWEEP HIGH)
The current bar's high breaches the highest high of the sweep lookback window, but the bar closes below that high and closes as a bearish candle. Buy-side stops above the recent range were triggered and absorbed — a stop hunt before a downside move.
Visual Presentation
Bullish sweeps are labeled with a cyan "⚡ SWEEP LOW" marker below the sweep candle
Bearish sweeps are labeled with an orange "⚡ SWEEP HIGH" marker above the sweep candle
The sweep candle itself is barcolored in the respective sweep color — immediately visible on the chart without needing to look for the label
The most recent 20 sweep labels are retained on the chart, automatically pruning the oldest when new ones form
How to use Sweep Detection with the Liquidity Profile:
A sweep into a high-volume buy-side liquidity bin followed by a close back above that bin is a high-conviction long entry signal
A sweep into a high-volume sell-side liquidity bin followed by a close back below that bin is a high-conviction short entry signal
When a sweep coincides with a FVG zone AND a high-volume profile bin, the three-way confluence represents the highest quality trade setup the indicator can identify
The sweep lookback can be tightened (lower value) for more sensitive detection on fast-moving instruments, or widened for cleaner, less-frequent signals on slower timeframes
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📋 Live Market Context Dashboard
A compact real-time dashboard displays the current state of all indicator systems at a glance. It is divided into four sections:
Profile Section
Active Pivots — total number of unmitigated pivot extremes currently mapped in the profile. Higher counts indicate a richer, more complex liquidity landscape.
Buy Pivots — number of unmitigated buy-side (demand) extremes
Sell Pivots — number of unmitigated sell-side (supply) extremes
Liquidity Bias — overall directional lean of the liquidity map. BUY SIDE means more unmitigated demand zones exist; SELL SIDE means more supply zones exist; BALANCED means roughly equal. This is not a trade signal on its own, but it tells you where the more significant unfilled orders are positioned.
Sweep Section
Last Sweep — whether the current bar is a bullish or bearish sweep, highlighted in the respective sweep color when active
Sweep Lookback — the currently configured lookback window for sweep detection
Fair Value Gap Section
Active FVGs — total number of unmitigated fair value gaps currently displayed on the chart
FVG Split — the breakdown between active bullish and bearish FVGs. When bullish FVGs dominate, unmitigated demand imbalances outnumber supply imbalances — and vice versa.
Market Context Section
ATR — current ATR value and its percentage of price. Color-coded: green for low volatility, orange for moderate, red for elevated. High ATR readings mean liquidity zones will be wider and stops should be placed further from entry.
Normalized Volume — current volume expressed as a percentage of the maximum volume within the lookback window, labeled VERY HIGH / HIGH / NORMAL / LOW / VERY LOW. Elevated volume on a sweep candle significantly increases the probability of follow-through.
Price in Range — where the current close sits within the full liquidity range as a percentage, labeled as upper zone / mid-range / lower zone. This tells you at a glance whether price is approaching a range extreme (potential sweep target) or sitting in the middle of the distribution.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 How to Identify Trade Opportunities — Step by Step
Step 1 — Assess the Liquidity Landscape
Load the indicator and check the profile: are liquidity bins densely clustered in a narrow zone, or spread across a wide range?
Check the Liquidity Bias in the dashboard: does the map lean buy-side or sell-side?
Identify the POC line — this is the dominant reference level for the session
Step 2 — Identify High-Value Target Zones
Look for thick profile bars with high volume percentages — these are the zones that price is most likely to revisit for a sweep
Note any FVG boxes that overlap with high-volume bins — these dual-layer confluences are the strongest setups
Mark the POC: if price is approaching from below with buy-side bias, the POC is a likely magnet. If approaching from above with sell-side bias, the same applies.
Step 3 — Wait for a Sweep into a Liquidity Zone
Watch for price to push into a high-volume bin — especially below a cluster of buy pivots or above a cluster of sell pivots
A sweep label (⚡ SWEEP LOW or ⚡ SWEEP HIGH) confirms the stop-hunt pattern has occurred
The sweep candle will be highlighted in cyan (bull sweep) or orange (bear sweep) for instant identification
Step 4 — Confirm the Reversal
The most important confirmation is the close: the sweep candle must close back on the opposite side of the liquidity zone it spiked through
If price is also inside a FVG zone and closes back out of it, the reversal confluence is stronger
Elevated normalized volume on the sweep candle (VERY HIGH or HIGH) significantly increases the conviction of the setup
Step 5 — Enter and Manage
Enter in the direction of the sweep reversal — long after a bullish sweep, short after a bearish sweep
Place your stop loss below the sweep wick low (for longs) or above the sweep wick high (for shorts) — the stop hunt has already occurred, so price should not need to revisit that level
Target the POC level, the next high-volume bin on the profile, or the opposite side of an active FVG zone
If the Liquidity Bias matches your trade direction (e.g., BUY SIDE bias on a long trade), hold with greater conviction — the overall liquidity landscape supports continuation
Step 6 — When NOT to Trade
If the profile is extremely thin (very few active pivots), the liquidity landscape is unclear — wait for the profile to rebuild
If the ATR is very low (quiet, compressed market), FVGs and sweep signals may be less reliable — tighten the FVG minimum size filter
If price is in mid-range with BALANCED bias and no nearby FVGs, there is no clear structural edge — wait for price to approach a zone with confluence
Do not chase a sweep candle — the entry is on the confirmation close, not the spike
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙ Settings Reference
Core Settings
Lookback Bars — how many bars back the indicator scans for pivot extremes and builds the liquidity profile (default: 300). Increase for a broader, more historical view; decrease for a tighter, more immediate profile focused on the current session.
Profile Resolution — the number of price bins the range is divided into (default: 50). Higher values give finer granularity; lower values produce a smoother, broader profile. Recommended range: 30–70.
Volume Smoothing — the rolling sum window for volume normalization (default: 10). Higher values reduce the effect of individual volume spikes; lower values make the profile more reactive to each candle's volume.
ATR Length — the lookback period for the ATR calculation used to scale pivot offsets (default: 14). Match this to your typical ATR analysis setting.
Profile Display
Show Profile Bars — toggle the horizontal heatmap bars on/off
Show Volume % Labels — toggle volume figures and percentage labels inside and beside each bar
Show POC Line — toggle the full-width dashed POC level line and label
Show Liquidity Level Lines — toggle the dotted horizontal lines connecting each pivot's origin to the current bar
Split Buy / Sell Bars — splits each profile bar into its buy-side and sell-side volume components displayed side by side
Bar Offset from Price — controls the gap between the current bar and where the profile starts rendering (default: 20 bars). Increase if the profile overlaps with recent candles.
Max Bar Width — controls the maximum horizontal length of the widest profile bar in bars (default: 50). Adjust based on your chart's zoom level.
Fair Value Gaps
Show Fair Value Gaps — toggle the FVG overlay on/off
Min FVG Size (ATR mult) — minimum gap size as a multiple of ATR for a gap to qualify as a valid FVG (default: 0.1×). Increase to filter out minor imbalances; decrease to show all gaps.
Max FVGs to Display — maximum number of unmitigated FVGs shown simultaneously (default: 8). Oldest gaps are pruned first when the limit is reached.
Sweep Detection
Highlight Sweeps — toggle sweep labels and candle barcolor on/off
Sweep Lookback (bars) — the window used to define the recent high/low for sweep detection (default: 5). Lower values detect micro-sweeps on fast instruments; higher values detect only significant structural sweeps.
Colors
Buy Liquidity — color for buy-side profile bars and bullish FVGs (default: yellow-green #c8e624)
Sell Liquidity — color for sell-side profile bars and bearish FVGs (default: red #ff1744)
POC / Max Level — color for the Point of Control bar, POC line, and FVG background highlight (default: orange #ff9800)
Sweep Bull Label — color for bullish sweep labels and barcolor (default: cyan #00e5ff)
Sweep Bear Label — color for bearish sweep labels and barcolor (default: orange #ff9100)
Dashboard Background / Text / Neutral — dashboard theme colors
Dashboard
Show Dashboard — toggle the live context dashboard on/off
Position — choose Top Left, Top Right, Bottom Left, or Bottom Right
Text Size — Tiny, Small, or Normal
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 Alert Conditions
Bullish Liquidity Sweep — fires when a bullish sweep pattern is confirmed on bar close
Bearish Liquidity Sweep — fires when a bearish sweep pattern is confirmed on bar close
Any Liquidity Sweep — fires on either sweep direction — use for a single catch-all alert
Bullish FVG Created — fires when a new unmitigated bullish fair value gap forms
Bearish FVG Created — fires when a new unmitigated bearish fair value gap forms
Price Entered FVG — fires when the current close moves inside any active unmitigated FVG zone
All alert messages include {{ticker}} and {{interval}} placeholders for clean webhook and bot integration.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ Key Features
🔬 Fully dynamic volume-weighted liquidity heatmap — rebuilds every bar, not a static historical snapshot
🗑 Auto-removal of swept/mitigated pivot levels — the profile always reflects only active, unvisited liquidity
📊 ATR-adaptive pivot offsets — automatically scales to the current volatility regime, no manual recalibration
🟡 Volume-gradient profile bars with buy/sell split mode — see the composition of every liquidity zone
◆ POC full-width level line with label — the dominant liquidity reference level clearly marked at all times
⚡ Fair Value Gap overlay with real-time mitigation tracking — only unmitigated imbalances remain visible
🌐 FVG background highlight — instant visual alert when price is sitting inside an active imbalance
🎯 Liquidity sweep detection with barcolor — cyan for bull sweeps, orange for bear sweeps
📋 Live dashboard — active pivots, buy/sell count, liquidity bias, sweep status, FVG split, ATR, normalized volume, and price-in-range percentage
🎨 Full AlphaX brand theme — yellow-green / red / orange / dark background, consistent with the AlphaX indicator suite
🔔 6 alert conditions — sweep entries and FVG events with clean ticker/interval message formatting
⚙ Fully configurable — all lookback windows, resolution, sensitivity, colors, and display toggles adjustable from the settings panel
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
👥 Who This Is For
🥇 Smart Money Concept (SMC) traders — the entire indicator is built around the core SMC concepts of liquidity pools, stop hunts, and fair value gaps. It automates the manual process of mapping where stops are likely clustered and where imbalances need to be filled.
📊 Order flow and volume profile traders — the dynamic heatmap provides a volume-at-price context that updates in real time, giving a live picture of the market's liquidity distribution.
⚡ Intraday scalpers and day traders — the sweep detection and FVG alerts fire on bar close, making them practical for fast timeframe traders on instruments like XAUUSD, indices, and forex majors.
🧠 Traders who struggle with entry timing — the sweep reversal pattern gives a precise, rules-based entry trigger rather than a subjective "it looks good" decision.
📈 Traders who want confluence, not single indicators — when a sweep, a high-volume bin, and a FVG all align at the same level, the three-layer confluence removes ambiguity and provides an objective framework for decision-making.
🎯 Traders building systematic approaches — all signals are rule-based, non-repainting, and confirmed on bar close. The dashboard provides quantitative context — not just visuals — for every condition the indicator monitors.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 Notes
All signals are non-repainting — every sweep label, FVG box, and profile bar is confirmed on bar close and does not move or disappear retroactively
The profile renders only at the last bar (barstate.islast) and redraws on each new bar — this is by design and standard practice for all right-side profile indicators. Historical profile positions are not stored.
On very low timeframes (sub-1-minute) or extended chart history windows, PulseWire's 500-box and 500-line limits apply — the indicator operates within these limits by design. Reducing the lookback or bins will always keep rendering within limits.
The ATR-adaptive offset means the indicator self-adjusts across different instruments and timeframes without requiring separate configurations for each. The same settings work on XAUUSD 1-minute and EURUSD 15-minute with no manual changes needed.
For best results, use in combination with AlphaX Vision (Fusion Trend Engine) — the Liquidity Matrix identifies where to enter within the zones that Vision's trend system defines as directionally favored.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ 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 read the market at the level where institutions operate.
Indicator
