Mbf Rz Ultra Core Smc Sm4c RoadmapA four-module confluence overlay built around one rule: no confirmed story, no trade.
Ultra merges Smart Money Concepts structure, ICT liquidity mapping, a classic momentum core, and our SM4C execution engine into a single indicator, so the chart itself enforces the discipline most traders try to hold in their head.
— The SM4C engine: four confirmations, in order —
A signal exists only when four events occur in sequence, each inside a defined bar window:
1. Liquidity sweep — price runs a resting pool (prior day high/low, session extreme, equal highs/lows) and rejects it. A wick through the level with a close back inside is liquidity being taken; a close through it is structure breaking. The engine treats these as different events.
2. Higher-timeframe fair value gap delivery — a HTF gap is delivered into the sweep, confirming the move had institutional fuel behind it.
3. Fair value gap inversion — an opposing gap inverts, confirming the shift in delivery.
4. CISD — a close through the change-in-state-of-delivery level (the open of the last counter-move candle series). Entry is at this close, never before it, never chasing after it.
The sequence is chain-validated with progressive freezing: each link locks the moment the next forms, so a mid-chain event cannot silently rewrite the story. A broken chain is consumed and cleared — the engine always waits for a fresh, complete sequence. Every blocked setup names the filter that rejected it, on the chart.
— What draws on the chart —
Dashed preview box the moment CISD fires ("the engine is thinking"), with entry, stop at the swept wick, targets at opposing liquidity, and live risk-reward. A 3/4 heads-up callout names the exact level that would complete the setup. A solid graded signal (A+ / A / B / C) prints only on a full 4/4 with valid risk-reward. Full trade lifecycle follows: TP1, stop to breakeven, TP2, TP3 runner, with alerts at each stage.
Structure suite: BOS and CHoCH on closes, order blocks, the fair-value-gap family, premium/discount zones, equal highs/lows, session and daily/weekly/monthly level ladders, killzone shading, midnight open. Roadmap scenario engine with sweep-and-reclaim detection and armed long/short gates. Dual Adaptive Trend Finder fitting log-regression channels over auto-selected lookbacks with Pearson-R confidence. A status board summarizes trend stack, MACD/RSI/VWAP, channel fit, roadmap state, gates, and last signal age.
A trend alignment gate (on by default) requires signals to agree with the higher-timeframe trend EMA — counter-trend sequences can complete and still will not print. A Focus Clock (off by default) adds a session timer and post-win cooldown that suppresses new signal invitations while leaving the engine and statistics running.
— Grading and statistics —
Signals are graded by independent-engine agreement: risk-reward quality, higher-timeframe trend alignment, roadmap gate state, and sweep freshness. Built-in win-rate and average-R tracking scores scaled exits (one third at TP1 with stop to breakeven, one third at TP2, runner to TP3); same-bar stop/target conflicts are excluded as ambiguous rather than scored.
— Quick start —
Pick the preset matching your timeframe. Wait for the 3/4 heads-up, then the CISD close — the panel reads trade-ready only on a complete story. Stop belongs at the swept wick; targets at real liquidity. If the session filter reads closed on futures traded off-hours, widen the trading session window or disable the filter.
— Credits and license —
This script merges and extends open-source work, published open-source as those licenses require:
• SMC structure engine © frank7285 — MPL-2.0
• Adaptive Trend Finder © Julien_Eche — GPL-3.0
• ConditionalAverages library © PineCoders — MIT
• ICT concepts module © DivergentTrades
• SM4C sequence integration © Roach Node
Pine v6 merge, sequence chain validation, TP ladder and lifecycle, grading, trend alignment gate, Focus Clock, timing analytics, and suite design © MBF & RZ Trading.
— Disclaimer —
Educational tool only — not financial advice. No indicator predicts the future; this one exists to enforce process: defined risk at entry, confirmation before commitment, and the discipline to skip incomplete setups. On-chart statistics use stop/target first-touches, exclude commissions and slippage, and do not predict future results. You are responsible for your own risk. Indicatore

ICT Killzones + Session Liquidity Levels [ForexCracked]🔵 OVERVIEW
Most killzone indicators shade the London and New York windows and stop there. This one uses the sessions as the starting point and then answers the question you actually open the chart for: which session highs and lows are still sitting there untaken, how deep price usually runs past a level like that when it does get taken, and whether the next session is even big enough to reach it.
Asia, London and New York are boxed with their ranges in pips. Every completed session leaves its high and low behind as a liquidity zone. The moment one gets swept it is deleted, so everything you can see is still in play.
🔵 THE ZONES ARE BANDS, NOT LINES, AND THE THICKNESS IS MEASURED
This is the part that is different. When a session high gets taken, price rarely stops exactly at it. It runs past, and how far it runs is a property of the symbol and the session, not a round number.
So the engine records the overshoot every single time a level of that session and side is taken, keeps the last forty, and draws the zone with a thickness equal to the median of those overshoots in ATR units. The upper edge of a pink zone is therefore a measured price: the level where the run past this kind of high has historically finished. Below eight recorded samples the zone falls back to a default height and the label says so, so you always know whether the number has anything behind it.
🔵 SESSION HANDOFF TALLIES
Under each Asia and London level is a count of what the sessions after it have actually done with levels like it.
An Asia high shows two counts: how often London swept it, and how often New York did. A London level shows what New York did with it. New York is the last session of the day, so its levels carry no handoff count, they are simply untapped until swept. The counts read like "LDN swept 34/60 sessions", counted price events from the chart in front of you with the sample size attached. On very low timeframes the chart does not hold 60 sessions, so n will be smaller. The label always shows the real n.
🔵 THE FORWARD ENVELOPE
Right of the last bar, the session that has not opened yet is drawn as a dashed box, sized by the median range of that session over its recent history, with both edge prices labelled.
That is there to keep you honest about distance. An untapped Asia high forty pips above price means something different when London's median range is seventy pips than when it is thirty. The envelope shows you which situation you are in before you plan the trade.
🔵 WHAT IS ON THE CHART
• Navy session boxes for Asia, London and New York, each labelled with its range in pips
• A faint tint over the London and New York killzone windows
• Pink zones for liquidity above price, teal for liquidity below, each with its price, its distance, its measured depth, and, on Asia and London levels, its handoff tallies
• A dashed forward envelope for the next session, with edge prices
• A compact panel: the live session, today's ranges against their medians, how many levels are untapped each side, and the nearest one
🔵 HOW TO USE
• Read the untapped levels as destinations, not entries. They are where resting orders sit, which is where price is often drawn.
• Use the far edge of the zone for invalidation. That edge is the measured median overshoot, so a stop just beyond it sits past where the run usually finishes rather than at a round number inside it.
• Check the forward envelope before you commit to a level as a target. If the level sits outside the next session's median range, reaching it is the exception rather than the expectation.
• Treat the handoff tally as base rate, not prediction. Thirty-four out of sixty tells you it is close to a coin flip. Fifty out of sixty tells you something much stronger about that symbol.
• Set your own session hours. The defaults are the common GMT windows, but the timezone dropdown and the three session inputs let you match your broker or your own killzone definitions.
🔵 SETTINGS
• Intraday only, 4H or faster. Sessions have no meaning on daily bars, and the script says so on the chart if you try
• Timezone, and the three session windows (defaults are Asia 0000-0800, London 0800-1600, New York 1300-2100 GMT)
• Skip weekend sessions in statistics (default on): on 24/7 symbols the quiet weekend sessions still draw their levels, but they stay out of the medians and tallies so they do not drag the numbers down
• Two killzone windows, shaded faintly, defaulting to the London and New York opens
• Statistics window: how many completed sessions the medians and tallies are counted over
• Minimum zone height in ATR, so a zone never becomes too thin to see on a small chart
• Days of session boxes to keep, untapped levels per side, dashboard position, colours
🔵 ALERTS
• A session opens, or a killzone opens
• An untapped session level is swept
• Price comes within a quarter of an ATR of the nearest untapped level
⚠️ DISCLAIMER
"ICT" is used here as the community vocabulary for killzones and session liquidity concepts. This script is independent work and is not affiliated with or endorsed by Inner Circle Trader.
The tallies and median depths are counted descriptions of what has already happened on this symbol, not forecasts. A level that has been taken fifty out of sixty times can hold today. Sample sizes vary by symbol and timeframe and small samples are unreliable by nature. Nothing here is a trade signal. Results depend on market conditions, settings, and your own execution and risk management. Shared for educational and research purposes. Not financial advice. Indicatore

Indicatore

Market Structure with ATR trailing stop [EDGE]Market Structure with ATR trailing stop — Multi-Timeframe Structure + ATR Trailing Stop.
A precision market-structure tool that goes beyond a simple pivot indicator by combining SMC-style swing detection, multi-timeframe CHoCH/BOS tracking, and a school-standard ATR trailing stop — all adapted automatically to the chart timeframe.
How it works:
The indicator scans pivot highs and lows using an SMC-calibrated Length (automatically picked for the current timeframe or set manually). Each broken pivot is classified as CHoCH (character change, phase start) or BOS (continuation) using your chosen breakout method — Wick, Body, or 2-Close confirmation. The same logic is mirrored across D1, H4, H1 and M5 in a summary table, so you always see whether the higher timeframes agree with the current one.
What it calculates:
- Swing pivots with HH / HL / LH / LL classification (optional labels)
- CHoCH / BOS counter — "UP (C)", "UP (C+1)", "DOWN (C+2)" — showing phase maturity per timeframe
- Trend direction on D1 / H4 / H1 / M5 in one summary table
- ATR trailing stop with EMA basis and one-directional ratcheting
- Live ATR% with a dynamic percentile-based "normal range" window
- Distance to trailing stop in %
Key features:
- Auto Length by timeframe (SMC standard: M5 = 7, H1 = 15, H4 = 20, D1 = 30 …)
- Three breakout modes: Wick (early), Body (default), 2-Close (conservative)
- Auto ATR multiplier and EMA basis per timeframe — sourced from Raschke, Carter, Chandelier Exit, Minervini, Wilder and Weinstein school standards
- Multi-timeframe trend dashboard with CHoCH/BOS phase counter
- Dynamic ATR% range (percentile lookback) — instant read on whether volatility is normal, muted or hot
- Configurable trailing-stop history window (2 or 10 last ranges)
- Optional HH / HL / LH / LL swing labels
- Fully customizable up/down colors
- Built-in alerts: trend flip up, trend flip down, stop touch up, stop touch down
- Disabled on timeframes below 5M with an on-chart notice — the indicator is calibrated for 5M and above
Who it's for:
Traders who want a single, opinionated structure tool that reads the market the same way institutional and SMC playbooks do — with automatic parameters that respect every timeframe, a clean multi-TF dashboard, and a trailing stop built from real trading-school standards rather than arbitrary defaults. Indicatore

Liquidity Stress Exhaustion [MarkitTick]💡 A market-microstructure stress detector that flags moments of seller or buyer exhaustion by combining an Amihud-style illiquidity z-score with trend regime, a regression-based fair-value channel, and automated ATR trade levels. Rather than reacting to price alone, this script measures how much price is moving relative to the volume behind it, then cross-references that stress reading against trend direction and candle behavior to identify points where aggressive selling or buying is likely running out of steam.
✨ Originality and Utility
Most exhaustion-based tools on TradingView rely on oscillator extremes (RSI, Stochastic) or candlestick pattern recognition in isolation. This script takes a different route: it borrows a concept from academic market-microstructure literature — price impact per unit of volume, i.e., illiquidity — and turns it into a real-time, standardized stress signal. Instead of asking "is price overextended?", it asks "is price moving too much for the volume that's actually trading?" A large true-range on abnormally low volume is treated as a sign of thin, stressed liquidity, and it is this stress, combined with a counter-trend candle, that defines exhaustion here — not price level alone.
This is not a simple mashup of unrelated indicators bolted together for the sake of a new publication. The illiquidity stress engine, the trend filter, the regression channel, and the correlation/ADX filters are all working toward a single, coherent question: is the current directional move statistically and structurally likely to reverse or stall? The z-scored stress reading identifies unusual conditions, the EMA trend filter and candle-close direction confirm which side is under pressure, and the optional Pearson-R and ADX filters exist specifically to suppress signals when the broader price action lacks the statistical structure (trending correlation, directional strength) needed to make the exhaustion reading meaningful. Each component narrows the false-positive rate of the others; removing any one of them would meaningfully change what the tool measures.
The script goes further than a plain signal generator by translating each exhaustion event into a fully computed trade plan — an ATR-derived stop, a dynamically computed R (risk unit), and three R-multiple take-profit targets — visualized directly on the chart and exposed through a structured alert payload designed for automation.
🔬 Methodology and Concepts
• Illiquidity Stress Engine
The core of the script computes a proxy for market illiquidity on every bar: true range divided by volume (with a safe fallback when volume is zero or unavailable), then compressed with a natural-log transform to tame outliers. This raw illiquidity series is then standardized into a z-score using a rolling mean and standard deviation over the "Stats Lookback" period. A z-score above your chosen "Stress Threshold (σ)" marks the bar as being in a state of high stress — meaning price moved an unusually large amount for the volume that supported it, a hallmark of thin liquidity and potential exhaustion of the prevailing move.
• Trend Regime Filter
Direction is established by comparing price (optionally pre-smoothed by an adaptive filter, see below) against an EMA of configurable length. Price below the EMA defines a downtrend; price above defines an uptrend. Exhaustion signals are only valid when they occur against the backdrop of an established trend in the opposite direction — a seller exhaustion signal requires the prior bar to have closed in a downtrend on a red candle, while buyer exhaustion requires an uptrend and a green candle.
• Adaptive Price Filters (Optional)
Two optional smoothing methods can replace raw closing price throughout the trend calculation:
Kalman Filter: a lightweight recursive estimator that continuously balances trust between the incoming price and its own prior estimate, adapting its responsiveness based on a fixed process/measurement noise ratio derived from your chosen length.
LLAMA (Linear-Lag Adjusted Moving Average): a hybrid that takes a simple moving average and adjusts it by half the recent linear slope, aiming to reduce the lag inherent in plain moving averages.
These exist to give the trend filter a smoother, less noise-reactive input than raw closing price when desired.
• Regression Fair-Value Channel
On the most recent bar, the script performs a least-squares linear regression over a lookback window (either a fixed length, or a dynamic length measured from the most recent qualifying pivot, capped by "Max Lookback Cap") using hlc3 as the source. From this it derives the regression line itself, its standard deviation, and the Pearson correlation coefficient (R), which measures how well price actually fits a straight line over that window. Inner and outer channel bands are plotted at user-defined standard-deviation multiples above and below the regression line, giving a visual statistical envelope for the recent price trend.
• Correlation and ADX Filters
Two independent filters can suppress exhaustion signals when the broader trend lacks structural conviction:
Pearson R Filter: when the absolute value of the regression's correlation coefficient falls below your threshold, the trend is considered statistically weak/directionless, and the channel is recolored neutral to flag this — though note this filter affects only the visual channel coloring, not signal firing.
ADX Filter: when enabled, exhaustion signals are only permitted when ADX is at or above your threshold, filtering out exhaustion calls during periods of weak directional movement.
• Pivot Detection
Standard confirmed pivot highs and lows (requiring the specified number of bars on each side) are tracked internally to support the optional Dynamic Pivot Mode, which — when enabled — sizes the regression lookback to the distance since the most recent confirmed pivot rather than using a fixed length.
• ATR Trade Level Construction
When a qualifying exhaustion signal fires and is confirmed, the script computes a full trade plan: the entry is the closing price of the confirmed exhaustion bar, the stop-loss is placed one ATR-multiple away (your "ATR SL Multiplier" times ATR over "ATR Length"), and the resulting stop distance defines one Risk unit ("R"). Three take-profit levels are then placed at your chosen R-multiples (default 1R, 2R, 3R) from entry. This entire trade plan updates and redraws only when a new, unlocked exhaustion signal fires.
• Lock Signal
Enabling "Lock Signal" freezes the currently displayed trade plan on the chart, preventing new exhaustion events from overwriting the active levels — useful for manually tracking a single trade through to its conclusion without the visual being replaced mid-trade.
🎨 Visual Guide
● Exhaustion Labels
"SE" label below a bar (bullish color by default) marks a confirmed Seller Exhaustion event — sellers pushed price down under stress conditions, and the setup favors a potential upside reaction.
"BE" label above a bar (bearish color by default) marks a confirmed Buyer Exhaustion event — buyers pushed price up under stress conditions, and the setup favors a potential downside reaction.
● Regression Channel
The dashed center line is the linear regression fair-value line over the active lookback window.
The two dotted inner lines mark the "Inner Deviation" band (default 1.0σ).
The two solid outer lines mark the "Outer Deviation" band (default 2.0σ).
The shaded fill between the inner bands is colored by trend direction — bullish or bearish color when the trend is statistically valid, neutral gray when the Pearson R Filter flags the trend as too weak/uncorrelated to trust.
An optional floating "STATS" label above the current bar displays the regression length, Pearson R value, and current stress z-score (σ) numerically, when "Show Metrics Label" is enabled.
● Trade Level Lines
Plotted only after a qualifying exhaustion event, extending toward the current bar:
Red solid line and "✕ SL" label: the calculated stop-loss.
Blue dashed line and "▶ Entry" label: the entry price (signal bar's close).
Three teal dashed lines of increasing opacity/solidity, with "◆ TP1", "✦ TP2", "◆ TP3" labels: the three R-multiple take-profit targets.
A red-tinted fill between the stop and entry lines visualizes the risk zone.
A teal-tinted fill between the entry and TP3 lines visualizes the reward zone.
● Dashboard (Table)
A compact panel, positioned per your "Dashboard Position" setting, reporting in real time: Lock status, current Trend Regime (Bullish/Bearish), Seller Status and Buyer Status (Exhausted/Normal), a visual Channel Width bar-meter (color-graded green/amber/red by relative width), a visual Pearson R bar-meter (same color grading by correlation strength), and — when an exhaustion signal is currently active — the live Entry, Stop Loss, and TP1 price levels. ADX value and Adaptive Filter type are appended as additional rows only when those features are enabled in the inputs.
📖 How to Use
Watch for an "SE" (Seller Exhaustion) label — this suggests a downtrend that produced an unusually large price move for its volume, on a down candle, potentially signaling sellers are running out of conviction and a bounce could follow.
Watch for a "BE" (Buyer Exhaustion) label — the mirror case in an uptrend, potentially signaling an approaching pullback or reversal.
Use the dashboard's Pearson R and Channel Width meters as a quick sanity check on trend quality before acting on a signal — a low R reading (channel shown in neutral gray) suggests the recent price action lacks a clean directional structure.
If ADX filtering is enabled, only signals occurring during sufficiently strong directional movement (per your threshold) will fire, which can help avoid exhaustion calls inside choppy, low-ADX conditions.
Once a signal fires, the plotted SL/Entry/TP1-3 lines and the dashboard's live level readout offer a pre-built framework for position sizing and target-setting — always cross-check these levels against your own risk tolerance before acting on them.
Enable "Lock Signal" if you want to study a single active trade plan without it being replaced by a new signal appearing on a later bar.
All signals, dashboard values, and trade levels are calculated strictly on confirmed, closed bar data — nothing on this chart is repainted or recalculated retroactively into the past.
⚙️ Inputs and Settings
● Core Settings
Trend Length: EMA period used for the directional trend filter. Longer values smooth out the trend classification; shorter values make it more reactive.
Stats Lookback: rolling window for the illiquidity mean/standard deviation used to compute the stress z-score.
Stress Threshold (σ): the z-score level that must be exceeded for a bar to be classified as "high stress." Raising this makes exhaustion signals rarer but more extreme.
Dynamic Pivot Mode: when enabled, the regression channel's lookback length is derived from the distance to the most recent confirmed pivot instead of a fixed value.
Fixed Length: the regression lookback used when Dynamic Pivot Mode is off.
Pivot Left / Pivot Right: bars required on each side to confirm a swing high/low for Dynamic Pivot Mode.
Max Lookback Cap: hard ceiling on the regression window length, regardless of pivot distance, to control computation and keep the channel visually relevant.
Inner/Outer Deviation: standard-deviation multiples defining the two channel bands around the regression line.
● Filters
Filter Weak Correlations / Pearson R Threshold: controls the channel's neutral-color flagging when regression fit quality is below this threshold.
Use ADX Filter / ADX Threshold / ADX Length: optional directional-strength gate that must be satisfied for exhaustion signals to fire.
Adaptive Filter (None / Kalman Filter / LLAMA) and its Length: optional pre-smoothing applied to price before the trend/EMA calculation.
● Trade Tools
Lock Signal: freezes the current trade plan against being overwritten by new signals.
ATR SL Multiplier / ATR Length: controls stop-loss distance as a multiple of ATR.
TP1/TP2/TP3 (R Multiple): sets each take-profit target as a multiple of the initial risk (R).
● Visuals
Show Metrics Label: toggles the floating STATS label showing regression length, R, and z-score.
High/Low Volatility Width %: reference thresholds used to color-grade the dashboard's Channel Width meter.
Line Extension: controls whether regression channel lines extend left, right, both, or not at all.
● Dashboard
Dashboard Position: places the summary table in any of the four chart corners.
● Alerts
Six customizable action-tag fields (Seller/Buyer Exhaustion, TP1/TP2/TP3 Hit, SL Hit) let you rename the "action" field inside each alert's JSON payload to match your own automation or webhook naming scheme.
● Colors
Full palette control over bullish/bearish/neutral coloring, text and background colors, dashboard styling, and all trade-level line/fill colors.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
● Illiquidity as a Price-Impact Proxy
The stress engine's core calculation — true range divided by volume — is a simplified, bar-by-bar adaptation of the price-impact style illiquidity measures used in market microstructure research, most notably the Amihud illiquidity ratio, which relates absolute returns to trading volume as a proxy for how much a given amount of volume "costs" in terms of price movement. The underlying academic intuition is that in illiquid or stressed conditions, smaller volumes produce disproportionately larger price swings; the log transform compresses the resulting distribution to reduce the influence of extreme outlier bars before standardization.
● Z-Score Standardization and Statistical Anomaly Detection
Converting the raw illiquidity reading into a z-score against its own rolling mean and standard deviation is a direct application of statistical process control / anomaly-detection theory: rather than using a fixed, market-agnostic threshold, the script defines "abnormal" relative to each instrument's and timeframe's own recent behavior. This adaptive standardization is a common approach in quantitative finance for regime and outlier detection, since raw price-impact values are not comparable across instruments, timeframes, or volatility regimes without normalization.
● Ordinary Least Squares Regression and Goodness-of-Fit
The fair-value channel is constructed using closed-form ordinary least-squares (OLS) regression formulas computed directly from the summary statistics of the price series (sums of x, y, x², xy, y²) rather than an iterative solver — a standard, numerically efficient approach for simple linear regression. The accompanying Pearson correlation coefficient is the classical goodness-of-fit statistic for this regression: it quantifies how well a straight line explains the price action over the lookback window, providing a principled, quantitative basis (rather than visual judgment) for deciding whether "trend" is a statistically meaningful description of recent price behavior.
● Recursive State Estimation (Kalman Filtering)
The optional Kalman Filter smoothing option is a simplified, single-dimension implementation of the classical Kalman filter from control theory and signal processing — a recursive Bayesian estimator that maintains a running estimate of a system's true state (here, price) and continuously updates it by weighting new observations against the model's own uncertainty. This provides a theoretically grounded alternative to fixed-window moving averages for noise reduction.
● Trend-Following Directional Strength (ADX/DMI)
The optional ADX filter draws on Welles Wilder's Directional Movement System, a long-established technical framework for separating trend strength from trend direction. Using it as a gate rather than a signal generator reflects its intended academic role: ADX does not indicate direction, only the strength of whatever directional move is present, making it a natural confluence filter for suppressing signals during structurally weak, low-conviction price action.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. We expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion. Indicatore

Indicatore

Asian Range Liquidity Sweep - Kill Zone ReversalASIAN RANGE LIQUIDITY SWEEP — the complete ICT Asian Range liquidity model in one indicator
The Asia session builds a small, quiet range. London opens, runs the stops sitting above or below that range, and then walks the price the other way. That single move is one of the most repeatable things in FX, and this indicator is the full rule set for it: the range, the liquidity raid, the higher-timeframe point of interest that makes the raid tradeable, the entry, the stop, the targets — and, just as important, the days on which the raid will NOT happen.
Everything is drawn in New York time, the way the model is defined.
━━━ WHAT IT DOES ━━━
① ASIAN RANGE (20:00 – 00:00 New York)
A time based range, not a structural one. The box, its high, its low and its 50 % are projected forward into the whole trading day. The high is buy side liquidity, the low is sell side liquidity. Direction is mechanical and never inverts: above the range this model only sells, below the range it only buys.
② HIGHER TIMEFRAME POI ENGINE — the filter that decides everything
A raid of the Asian high on its own is, most of the time, a trap. The raid only becomes high probability when it lands inside a higher-timeframe point of interest. The indicator scans three timeframes at once (15m / 1h / 4h by default) for
· Fair Value Gaps
· Order Blocks
· Breaker Blocks (a demand block that price closed through and that now acts as resistance)
· Inverse Fair Value Gaps (a bullish gap that got closed through and flipped bearish)
Every zone is anchored to the exact candles that built it, is extended while it is alive, and is dropped once it is used up or once it sits too far from the daily range to matter. On top of that, the higher-timeframe structure itself has to agree: bearish structure for shorts, bullish for longs.
③ LONDON KILL ZONE (02:00 – 05:00, optional 01:30 start) — Trade 1
Between those hours the indicator waits for price to raid the Asian high (or low) INTO one of those zones. A raid is not even accepted as valid until price has traded back into a fair value gap. Then it waits for a lower-timeframe confirmation and enters at a point of interest — never at market:
· MSS + FVG — market structure shift, entry on the retracement into the gap
· CISD — change in state of delivery, entry back at the CISD level itself
· FVG tap — proximal edge on small gaps, 50 % on big ones
· HIDDEN ORDER BLOCK — the opposite-colour candle trapped between two same-direction fair value gaps. The block almost nobody marks, and the sharpest entry in the whole model
That list is a risk ladder: 1m MSS+FVG is the most aggressive and pays the most, 15m FVG is the safest, wins most often and pays the least. Pick the timeframe you actually want to trade and run the indicator there.
Stop goes on the protective structure that belongs to the entry zone. Target 1 is always the opposite side of the Asian range. Target 2 extends to the next inducement swing — the draw for the day.
④ NEW YORK KILL ZONE (07:00 – 10:00) — Trade 2, the continuation
When the London raid then breaks the OPPOSITE side of the Asian range with displacement, the London extreme is very likely the high or the low of the day. The indicator draws the optimal trade entry fibonacci over that impulse — 0.5 / 0.618 / 0.705 / 0.79 — and takes the continuation from the retracement into it, with the stop beyond 0.79 or 1.0. The setup is strongest when the origin zone was a 4h zone, because the whole day is then a 4h market-maker model running internal to external. If the draw on liquidity was already reached before New York opens, the day is flagged as low probability and skipped.
⑤ THE NO-SWEEP FILTERS — the part almost nobody explains
Two situations mean the raid you are waiting for will never come:
· HTF POI ALREADY TAPPED IN ASIA — price worked into the zone during the Asian session and then broke structure against the range. The Asian high is now protected. The indicator says so on the chart and points you at the fallbacks instead: the 50 % of the range, an internal range high (trend line liquidity), or a fair value gap built inside the Asian session.
· STRONG HIGH / STRONG LOW INSIDE THE RANGE — a sweep immediately followed by a break of structure. That extreme is protected. What looks like equal highs later on is a rejection-block reversal, not a raid. Wait for the sweep and you miss the trade.
⑥ NEWS FILTER
High-impact US news in the New York session turns London into a range or a one-way run with no reversal. Pine cannot read a news feed, so paste the dates and those days are skipped.
━━━ WHY EVERY SIGNAL EXPLAINS ITSELF ━━━
Hover any signal pill and you get the full reasoning, not a label:
the range and its size, the exact price the liquidity was raided at, which point of interest it landed in, what the higher timeframe structure was doing, which confirmation fired, whether the raid was validated by a fair value gap, plus entry, stop, both targets, risk in pips, reward in pips and the R multiple.
Setups that were found but rejected are explained too. A "NO TRADE" tag tells you the raid, the zone and the confirmation were all there but the reward did not pay for the stop — so you learn the filter instead of wondering why nothing fired.
Every zone, every structure event, the range lines, the OTE levels and both education cards carry the same kind of tooltip. There is a HOW TO READ THIS card and an honest BEFORE YOU TRADE THIS card on the chart.
━━━ COCKPIT PANEL ━━━
Live session state, symbol, chart timeframe, higher-timeframe bias, the full Asian range with a PROTECTED / OPEN flag on each side, an eight-step checklist that fills in as the setup builds, the open position with stop and target, a large status line, a rough win / loss / break-even tracker and the timestamp of the last signal.
━━━ ALERTS AND AUTOMATION ━━━
Every event fires a clean JSON payload ready for a webhook — entry, stop, both targets, the range boundaries, the point of interest that produced the signal, symbol, exchange, timeframe, volume and an optional account field. Events: ENTRY, TP1, SL, BE, SWEEP, RANGE. Five plain-language alertconditions are included as well for anybody who just wants a notification.
━━━ SETTINGS WORTH KNOWING ━━━
· Sessions are fully configurable if your broker feed needs a different reference
· Turn individual POI types and POI timeframes on and off
· Choose one confirmation model or let it take the first valid trigger
· Four stop modes, two-target management, break-even at a chosen R
· Full chart theme with navy background, mint / red candles and session shading — or switch it off and keep your own
━━━ HONEST NOTES ━━━
This model is mechanical up to the trigger. Direction is fixed and never inverts, the windows are fixed, the filters are fixed — but the final judgement, is this really the high of the session, stays discretionary. Anybody telling you a setup is 100 % mechanical is selling you something.
Expect zero to four setups a day across two pairs, roughly 20 pips average per trade, and losing days. Judge it weekly and monthly, never daily. The safest entry model fires rarely by design; the aggressive ones fire more and stop out more.
The win / loss counter in the panel is a rough on-chart tracker that assumes a fill at the marked price and resolves target before stop within the same bar. It is not a backtest and it is not a performance claim.
This indicator is a study tool. It is not financial advice.
━━━ CREDIT ━━━
The rule set follows the well-known ICT Asian-sweep model as it is taught publicly in the ICT community. The implementation, the point-of-interest engine, the no-sweep filters, the panel and the design are original work.
Open source — read it, change it, learn from it.
WHY THESE PARTS BELONG TOGETHER
The session range, the higher-timeframe point of interest and the lower-timeframe confirmation form
a single filter chain, and the model does not work with any link missing. The range supplies the
liquidity pool that is going to be raided, the higher-timeframe zone decides whether that raid is a
reversal or a trap, and the lower-timeframe trigger decides when. A raid without a zone is noise,
a zone without a raid has nothing to react to, and both without a trigger have no entry.
Indicatore

Liquidity Draw Probability Map [ForexCracked]🔵 OVERVIEW
Every liquidity tool draws the pools. This one measures whether price actually goes there.
The Liquidity Draw Probability Map finds the resting liquidity on your chart, equal highs and lows, the prior day high and low, the prior week high and low, and the session extremes, then studies your chart's own history and prints what actually happened to pools like each one: how often price reached them, how long it took, and how often the touch rejected versus cut straight through.
The phrase "price is drawing on liquidity" gets said a thousand times a day. This script puts a measured number on it.
🔵 HOW THE MEASUREMENT WORKS
Every pool is filed by two things: its type, and how far from price it was born, measured in ATR units so the numbers transfer across symbols and timeframes.
For each combination the script keeps running counts on your chart's own history:
• How many pools like this were created
• How many were reached within 50 bars
• Of the touches, how many rejected (price closed at least 1 ATR back inside within 20 bars) and how many cut through (price closed at least 0.5 ATR beyond). A touch that does neither within the window is filed as a stall.
• The median number of bars it took to get there
Nothing is estimated and nothing comes from outside data. Every figure is a frequency counted on the chart in front of you, and the sample size is printed next to it, so a number built on 12 events never dresses up as a number built on 300.
🔵 THE MAP
Active pools draw as horizontal lines from the swing that created them. The line gets thicker and more solid as its category's measured reach frequency gets higher, so the levels price has historically honoured stand out and the ones it historically ignores fade back. Each pool carries a compact label: type, measured reach frequency, rejection share of touches, and the sample size behind those numbers.
When a pool is touched, a small circle prints on that bar to mark the purge (these are measurement events, not signals, and they can be switched off). The engine then watches the next 20 bars, classifies the outcome, adds it to the tables, and retires the pool. Purged liquidity leaves the map, exactly as it leaves the market.
🔵 WHAT THIS IS NOT
This script fires no signals. There are no buy or sell arrows, no sweep alerts dressed as entries, no order blocks and no fair value gaps. It does not tell you to trade anything. It is a measurement instrument: it maps where the resting liquidity is and reports what historically happened to liquidity like it, with the sample sizes in plain view. What you do with that context is your decision.
🔵 NET DRAW BIAS
Each active pool contributes its measured reach frequency, discounted by how far away it currently sits. Everything above price is summed against everything below, and the result is z-scored against its own recent history. A strongly positive reading means the statistically heavier magnet is overhead. A strongly negative one means it is below. The dashboard prints the score and the direction plainly.
🔵 THE DASHBOARD
• Nearest pool above: type, distance in ATR, measured reach frequency, median bars to reach, sample size
• Nearest pool below: the same
• Net Draw Bias: score and direction
• Last purge: which pool type was taken and how the touch resolved
• Sample: total pools logged and bars of history measured
🔵 HOW TO USE
• Treat high-frequency pools as context, not entries. A pool whose category was historically reached 75 percent of the time within 50 bars is a level price has tended to gravitate toward on this chart. Useful when planning targets, never a trigger on its own.
• Read the rejection versus cut-through split before assuming a reaction. Some categories on some charts get swept and keep going. The split tells you which kind of chart you are on.
• Use Net Draw Bias for directional context between levels. It answers "which side's liquidity is heavier right now" with a measured number instead of a feeling.
• Respect the sample sizes. Early in a chart's history the tables are thin and the map says so. The numbers firm up as history accumulates.
• Combine with your own structure and risk rules. This is a measurement instrument. It does not know your plan.
🔵 SETTINGS
• Pivot strength and equal-level tolerance control how pools are detected
• Reach horizon (default 50 bars) and outcome window (default 20) control the measurement windows
• Session input defines the session whose extremes are tracked, set it to your Asia hours for the classic use
• Max pool age retires stale levels; per-side caps keep the map readable
• Dashboard position, colors, and line extension are adjustable
🔵 ALERTS
• Price approaching a high-reach pool (within 0.25 ATR, category at or above 70 percent with a meaningful sample)
• Pool purged (liquidity taken)
• Net Draw Bias flips sign
⚠️ DISCLAIMER
These are descriptive statistics of past price behaviour on your chart, not predictions. A pool that was historically reached 80 percent of the time can be ignored today. Sample sizes vary by chart and timeframe, and small samples are unreliable by nature. Nothing here is a trade signal, and results depend on market conditions, settings, and your own execution and risk management. Shared for educational and research purposes. Not financial advice. Indicatore

ICT Entry Model Liquidity Sweep, MSS & FVG [LunqFX]A smart-money entry is never a single signal — it is a sequence. Price runs the stops beyond a swing, structure shifts the other way, and the entry is taken from the imbalance that shift left behind. Most ICT indicators draw one of those pieces and leave you to assemble the rest by hand. This one tracks the whole sequence live and finishes it with an actual trade: entry, stop, target and a quality score that tells you whether the setup was worth taking at all.
❶ THE FOUR STAGES
▸ LIQUIDITY SWEEP — price trades beyond a swing high or low, takes the stops resting there, and closes back inside. The sweep is marked and the level it raided is drawn. This is the manipulation leg, and it is where the stop for the trade will sit.
▸ MSS (MARKET STRUCTURE SHIFT) — after the sweep, price closes through the last short-term swing in the opposite direction. This is the confirmation that the sweep was a reversal and not a continuation. Note that the shift is measured against internal structure, not the major swing: waiting for a major swing to break would put the entry far too late, which is the single most common mistake in automated ICT tools.
▸ FVG ENTRY — the displacement that broke structure leaves a three-candle imbalance. That gap is the entry zone, drawn as a box, because price commonly returns to fill it before continuing.
▸ RISK AND TARGET — the stop goes beyond the sweep extreme, the target is your chosen R multiple. Both are drawn as filled zones running back to the entry, so the whole trade reads as one object instead of a set of loose lines.
❷ SETUP QUALITY 0–100
Not every sequence deserves a trade, and this is where the indicator does something no other entry tool does. Every setup is graded on four measurable properties:
▸ SWEEP DEPTH — how far beyond the level price actually ran, in ATR. A deeper raid means more stops were genuinely taken. ▸ DISPLACEMENT — how decisively the structure was broken, in ATR. A weak break is a weak setup. ▸ FVG SIZE — how large the imbalance is. A bigger gap is a stronger entry. ▸ SPEED — how quickly the shift followed the sweep. A fast reversal is aggressive; a slow one has lost its edge.
The four are blended into a single 0–100 score shown on every entry tag and in the dashboard. Set the minimum quality in the settings and weak sequences simply stop being drawn — you trade the good ones instead of every arrow.
❸ HOW TO TRADE IT
1 — Wait for the SWEEP marker. The dashboard turns amber and reads SWEEP · WAITING MSS. Nothing to do yet: the manipulation has happened but it is not confirmed.
2 — Wait for MSS. When structure shifts, the setup is drawn and the dashboard turns green for a long or red for a short. If structure does not shift within the allowed window, the sweep is discarded and the model resets — no stale signals.
3 — Check the quality score before committing. High scores come from a deep sweep, a decisive break and a clean imbalance. If the number is low, the sequence was technically valid but structurally weak.
4 — Place the trade from the ticket. Entry at the FVG edge, stop beyond the sweep, target at your R multiple. The dashboard shows all three plus the exact risk in price, so the position size follows directly.
5 — Let price come to you. The FVG is a limit entry, not a market entry. If price never returns to the gap, the setup is simply skipped — that is the model working as intended.
❹ HOW IT WORKS
Liquidity swings and internal structure are detected with confirmed pivots, so a level only exists once the bars on both sides of it have closed. A sweep requires a bar to trade beyond the swing and close back inside it, and it is only registered when the shift level is still unbroken — otherwise the sequence could confirm itself on the very next bar. The structure shift requires a close through that internal level within your chosen window. The imbalance is found in the displacement leg using the standard three-candle definition. The stop is the sweep extreme, the target is the entry plus or minus the risk times your R multiple, and setups whose stop would be smaller than a fraction of ATR are rejected as untradeable. The quality score is a weighted blend of the four properties above, each normalised by ATR so the score behaves the same on every symbol and timeframe.
Works on any market and timeframe — forex, gold, indices, crypto and stocks. Intraday charts from 5m to 4h suit the model best, since that is where liquidity raids and structure shifts happen most often.
SETTINGS — liquidity swing length, internal structure length, maximum bars from sweep to shift, R multiple for the target, minimum stop distance, minimum quality, number of setups kept, level extension, FVG and level visibility, candle colouring and dashboard position.
ALERTS — long setup confirmed, short setup confirmed, and any setup confirmed. All fire on closed bars only.
NON-REPAINTING — every stage is validated on bar close and built from confirmed pivots. A setup that has printed never moves, never changes its levels and never disappears.
The four stages are not four indicators bundled together — they are four steps of one entry model, and none of them is tradeable alone. The sweep without the shift is just a wick; the shift without the sweep is just a break; the imbalance without either is just a gap. That is why they belong in a single tool.
This indicator is an educational market-analysis tool, not financial advice. The quality score describes the structure of a setup and does not predict its outcome. Always confirm with your own analysis and manage your risk. Indicatore

Apex Edge - Wyckoff Exhaustion + Lag CorrelationApex Edge — Wyckoff Exhaustion + Lag Correlation
Two edges, one chart: internal exhaustion meets external confirmation.
Most indicators show you what price is doing. This one goes a layer deeper — it tells you when the move is running out of steam (Wyckoff effort-vs-result), and cross-checks that against what other markets are already telling you before that steam runs out (lag correlation). When both align, you're not just reading price — you're reading the market's exhaustion against a leading signal from a related asset.
The core idea
Wyckoff's Law of Effort vs. Result says: big volume should produce big price movement. When it doesn't — heavy effort, weak result — that's a sign smart money is absorbing supply or demand, and a reversal or pause is brewing. That's the internal signal.
Internal exhaustion alone can still give false signals, though. So this script adds an external check: does a correlated asset (the Dollar Index, VIX, 10-Year Yield, or whatever leads your instrument) show a lagged relationship that supports the same conclusion? When exhaustion and cross-asset correlation line up, the script flags it as genuine confluence.
What it detects
1. Exhaustion (Effort vs. Result)
Compares volume pressure to the price movement it produced:
Effort = current volume ÷ its moving average
Result = the bar's price range ÷ ATR
Exhaustion Ratio = effort ÷ result (boosted when result is near-zero, catching true "big volume, no movement" bars)
Ranked against its own history via percentile rank, so "exhausted" adapts to each instrument's own behaviour rather than a fixed number
2. Springs & Upthrusts
A Spring is a failed breakdown below the range low on a volume spike — often marking accumulation
An Upthrust is the mirror image at the top — often marking distribution
Both require volume to clear a multiple of its average, filtering out noise
3. Sign of Strength / Sign of Weakness (SOS/SOW)
Confirms a spring or upthrust is turning into an actual markup/markdown, not just a failed test that goes nowhere.
4. Accumulation/Distribution boxes
Visual range boxes drawn around the structure each signal is reacting to.
5. Cross-Asset Lag Correlation
For each candidate asset (auto-selected by asset class — DXY, VIX and the US 10Y yield for Forex; VIX, DXY and the 10Y/2Y for Indices; BTC dominance and total crypto cap for Crypto), the script tests your instrument's returns against the candidate's returns shifted back across a range of lags, and keeps whichever lag produced the strongest relationship. This is deliberately a leading-indicator search only — same-bar/concurrent correlation is intentionally excluded, so a candidate only earns a place in the table by predicting your instrument, not just moving alongside it.
Why the correlation dashboard
Correlations aren't static — DXY might lead EURUSD strongly one month and weakly the next. Rather than betting on one hardcoded relationship, the dashboard shows you live, per-candidate: symbol, lag (in bars), and correlation strength, color-coded so a genuinely strong lead stands out from noise.
How to trade it
Don't act on a Spring/Upthrust label alone. It marks a test, not a confirmed turn — treat it as "get interested," not "get in."
Wait for SOS/SOW. This is the market confirming the test held. A Spring followed by SOS is a materially stronger case than the Spring alone.
Use the Exhaustion tag as a warning, not a trigger. It flags disproportionate effort right now — good for tightening stops or hesitating before chasing a breakout, not for blind entries.
Treat the confluence triangle as the highest-conviction signal on the chart. It only fires when a Spring/Upthrust coincides with a genuinely leading cross-asset correlation above your threshold — internal structure and external confirmation agreeing at once.
Check the correlation table's Lag column before trusting a triangle. A low lag (1–3 bars) means a short reaction window. A higher lag gives more breathing room but is often a weaker, less reliable relationship.
No triangle doesn't mean no valid setup. A triangle only appears when the external confirmation clears your threshold — the underlying Wyckoff signal can still be valid without it.
The dashboard is optional
Want pure Wyckoff with none of the extras? Flip off "Show Correlation Dashboard" in settings and the table disappears entirely, leaving a clean chart of springs, upthrusts, SOS/SOW, exhaustion tags, and phase boxes. The cross-asset engine still runs quietly underneath for confluence triangles, but the HUD itself won't take up chart space unless you want it. Indicatore

Session Range BoxSession Range Box
A universal tool that draws the range of a chosen session as a box. The trader
sets the conditions: the session, the timezone, and the window. The borders are
built from the session highs and lows - an area of potential liquidity, since
resting orders tend to build up above the highs and below the lows.
This is a tool, not a signal system. It gives a clean, non-repainting map of the
range. How to use it is up to the trader's own strategy.
How It Works
1. Accumulation window. The trader sets the session time in their own timezone.
The highest high and the lowest low inside this window become the box borders.
2. Freeze. Once the window closes, the borders are locked and never repaint.
What you see on history is what actually happened at that moment.
3. Extend. The frozen box is stretched to the right until the end of the day, so
you can watch price test the borders after the session. A new day starts a new box.
What It Pairs With
Smart Money logic and the accumulation - manipulation - distribution model. The box
shows where potential liquidity sits; the trader applies their own scenario on top.
Applications
- Trading the Asian range
- Trading the European and US range
- First-hour range
- Mean reversion (from the box midline)
Settings
- Timezone: city entries (which adjust automatically for daylight saving) or fixed
UTC offsets (to match a broker's server time).
- Accumulation window: any length, from one hour to a full session.
- Extend box to end of day: on/off.
- Style: color, fill, borders, midline, label.
To show several sessions at once (Asia + Europe + US), add the indicator to the
chart more than once with different settings.
Notes
- Recommended timeframe: M1 to H1, depending on the strategy.
- Time is based on the selected timezone; city entries adjust for daylight saving,
fixed offsets do not. Indicatore

FVG CrossfireGENERAL OVERVIEW:
FVG Crossfire identifies and plots the exact price bands where a bullish and a bearish imbalance have overlapped. These overlap bands, called crossfire zones, are the only objects the indicator draws. Ordinary Fair Value Gaps are tracked in the background as inputs, but a standalone gap is never rendered on the chart; a zone is created only when a fresh FVG overlaps an older, still-unfilled FVG of the opposite direction. From that point the zone remains on the chart, reversing direction each time an opposing FVG overlaps it, recording each transition with a star counter, marking every retest with an arrow, and being removed only when price trades fully through it.
What is the theory behind the indicator?
A Fair Value Gap records a price imbalance: price moved quickly enough that a gap was left between the wicks of the surrounding candles. The problem is that FVGs are common. On a fast chart dozens print every session, most of them noise, and drawing them all obscures the few levels that actually matter.
FVG Crossfire is built on a stricter criterion: the event worth displaying is the overlap. When a new imbalance prints in the opposite direction directly on top of an older, still-unfilled one, that price band is no longer one-sided; buyers have left an imbalance there, and now sellers have as well (or the reverse). That overlap marks a contested level, one the market has already reacted to from both directions.
The sequence often continues. Each additional opposing FVG flips the zone again, and because a flip keeps only the portion of the zone where the imbalances actually overlap, the contested band becomes tighter and more precise with each transition. What remains is a narrow, repeatedly tested level with a visible history, which is among the strongest forms of support or resistance an imbalance structure can produce.
The FVG Crossfire indicator includes 5 main features:
FVG CROSSFIRE FEATURES
Crossfire Zone Detection
Zone Flipping & Flip Counter
Retest Detection
Zone Mitigation
Alerts
CROSSFIRE ZONE DETECTION:
🔹What Is a Crossfire Zone?
A crossfire zone is the price band shared by two opposite imbalances: an older, still-unfilled Fair Value Gap and a newly formed FVG in the opposite direction that printed on top of it. The zone covers only the overlap, and it takes the direction and color of the newer FVG, the most recent side to print. An optional "origin funnel" draws converging lines from the older gap into the zone, so the source of the overlap remains visible.
🔹What Is a Fair Value Gap?
For background: an FVG is a three-candle pattern where the middle candle moves so strongly that a gap is left between the first candle and the third: the low of candle three above the high of candle one (bullish), or the high of candle three below the low of candle one (bearish). In this indicator FVGs are inputs, not output: they are detected and tracked entirely in the background, and one that never overlaps an opposite gap is discarded without ever being drawn.
🔹Why Are Crossfire Zones Important?
A single gap indicates one-sided aggression at a price. A crossfire zone indicates that both sides were aggressive at the same prices and disagreed. These contested bands tend to attract price repeatedly, which makes them stronger candidates for support, resistance, and reaction trades than any single gap. And because only overlaps are drawn, every object on the chart is already a filtered, higher-significance level.
🔹How Crossfire Zones Are Detected:
Every candle close, the engine scans the last three candles for a new FVG (gaps smaller than your minimum size are skipped, and candles around daily or weekly session breaks are excluded so overnight gaps don't create false patterns). Each stored gap is also tracked as later candles fill it (by wick or by close, depending on the setting), and a fully filled gap is dropped from the pool. When a fresh FVG confirms, it is compared against every waiting opposite gap: wherever it overlaps the unfilled part of one, a crossfire zone is created on the overlap and the origin funnel appears. Every FVG participates exactly once; after creating (or flipping) a zone it is consumed, so one price move never produces duplicate zones. Live zones extend to the right edge of the chart, and an optional "Combine" mode merges same-direction zones that overlap in price into one bigger zone.
🔹Settings: Base FVG Group (the detection engine)
Base FVG mitigation: whether wicks or only candle closes fill a waiting gap before it can participate in an overlap.
Min FVG gap (% of price): ignore gaps below this size; 0 keeps every gap.
Show origin funnel: draw the converging lines from the source gap into its zone.
Border, Style, Colors: visual control of the funnel; color transparency sets the fill strength.
🔹Settings: Crossfire Zone Group
Lookback (candles): zones are only built inside the most recent N candles (default 3000); every zone created in the window is shown.
Border, Style, Midline: outline and optional equilibrium line for each zone.
Bullish / Bearish colors: transparency sets the zone fill strength.
Combine overlapping zones: merge same-color zones that overlap in price.
ZONE FLIPPING & FLIP COUNTER:
🔹What Is a Zone Flip?
If a live crossfire zone is overlapped by another FVG in the opposite direction, the zone flips: the current box is frozen in place and a new, opposite-colored box continues from that point. Read left to right, a flipped zone forms a timeline of directional control over that price band.
🔹Why Do Flips Matter?
Every flip is another change of direction at the same level, evidence that the market continues to react to that price. And because each flip keeps only the part of the zone that the new FVG actually overlapped, the contested band tightens with every flip. A zone that has flipped three times is a narrow, precise, repeatedly contested level, exactly the kind of area worth planning trades around.
🔹How the Flip Counter Works:
Each live zone shows a star counter on its edge at the latest candle: green stars touching the bottom edge of bullish zones, red stars touching the top edge of bearish zones. One star means the zone has formed once, two stars means one flip, and so on; zones with five or more entries display a compact count instead (for example "6 ★"). There is no limit on flips; the chain only ends when the zone is fully mitigated.
RETEST DETECTION:
🔹What Is a Retest?
A retest is price leaving a live crossfire zone and then coming back to touch it again. The indicator marks every single retest: a small green ▲ below the candle that re-entered a bullish zone, a small red ▼ above the candle that re-entered a bearish zone.
🔹Why Are Retests Important?
The retest is usually the tradeable moment. A contested zone holding on a return visit is the confirmation many traders wait for before entering, and repeated successful retests indicate the level continues to hold.
🔹How Retests Are Detected:
On every candle close, the indicator checks whether the candle touched the zone (any wick contact counts) while the previous candle did not. Each fresh re-entry counts; price must leave the zone before the next retest can register, so a candle sitting inside the zone for several bars only counts once. Every retest can also fire an alert.
🔹Settings:
Retest markers: show or hide the ▲/▼ arrows.
ZONE MITIGATION:
🔹What Is Zone Mitigation?
A crossfire zone is complete (fully mitigated) when price trades all the way through it: through the bottom of a bullish zone, or through the top of a bearish zone. At that point the zone and its whole flip history are removed from the chart, or kept and faded out if you prefer to study them.
🔹Why Does Mitigation Matter?
A zone that price has completely passed through has served its purpose: the imbalance on both sides is resolved. Removing finished zones keeps the chart focused on levels that still matter, while the optional faded view lets you review how past zones resolved.
🔹How Mitigation Is Detected:
You choose what counts as trading through the far side: any wick, or only a candle close. Until that happens, the zone stays live no matter how many times it flips or gets retested.
🔹Settings:
Zone mitigation: Wick or Close.
Show mitigated zones: keep finished chains on the chart, frozen and dimmed.
ALERTS:
FVG Crossfire covers the full life of a zone with four alert events, each with its own on/off switch. Create one alert on the indicator using "Any alert() function call" and every enabled event will come through with the symbol and timeframe in the message:
New crossfire zone: two opposite FVGs overlapped and a new zone was created.
Zone flipped: a live zone changed direction (bullish ↔ bearish).
Zone retested: price re-entered a live zone after being outside it (fires on every re-entry).
Zone mitigated: a zone was fully traded through and completed.
IMPORTANT NOTES:
Plain FVGs are never drawn. Gaps are tracked in the background, and a gap only becomes visible, through its origin funnel, at the moment it produces a crossfire zone. Every object drawn on the chart is already an overlap.
All detections are evaluated on candle close. Zones, flips, retests, and mitigations are confirmed events; they do not repaint.
Background gaps are filled on a three-candle delay. This is deliberate: the same impulsive move that creates the new FVG is often the move that fills the old one, and without the delay the overlap could never be detected.
Each FVG participates exactly once. After creating or flipping a zone it is consumed, so one price move never produces duplicate zones.
A flip requires the new FVG to overlap the currently visible zone, and the flipped zone keeps only the overlapping part; zones tighten as they flip.
A retest requires price to leave the zone first. Consecutive candles inside the zone count as one visit.
Candles around daily and weekly session breaks are excluded from gap detection so overnight gaps don't create false patterns.
Internal drawing limits keep the script within TradingView's object budget; on extremely gap-dense charts the oldest zones are released first.
UNIQUENESS:
Most FVG tools draw every gap and leave the trader to determine which ones matter; inversion (IFVG) tools go one step further and record a single change of direction. FVG Crossfire does not draw ordinary gaps at all. It uses them purely as inputs and puts only one thing on the chart: the price bands where opposite imbalances have overlapped, and it then tracks the full lifecycle of each contested level. Zones flip an unlimited number of times, each previous state freezes into a left-to-right timeline, the band tightens to the true overlap on every flip, a star counter records the number of transitions, every individual re-entry is flagged with a retest arrow and alert, and the level is only removed when price fully trades through it. The result is not another gap plotter: it is a filtered map of where opposing imbalances keep forming at the same prices, how many transitions each level has recorded, and exactly how tight the contested band has become.
Indicatore

Smart Money Volume Absorption Signals I EonMetricsSmart Money Volume Absorption Signals
Volume Absorption marks a specific situation as a LONG or SHORT setup, with an entry, a stop and two targets. But instead of only printing an arrow and leaving you to reconstruct what happened, it tracks that setup through four stages and shows you exactly how far along it is — how many conditions are met, which one is still missing, how many bars are left before the setup is discarded, and what the same sequence has already done on the history your chart has loaded.
🔶 THE SITUATION IT TRACKS
A bar trades far more volume than its own recent normal, and then closes at the wrong end of its own range. Heavy participation that failed to pay the side that pushed: effort without result. The direction is set against the side that was absorbed — a heavy bar closing in the bottom third of its range is a short premise, one closing in the top third is a long premise.
One thing has to be said plainly, because it decides how much weight this premise deserves: total volume cannot tell you who traded. It cannot separate buyers from sellers. What this gate actually measures is heavy participation combined with a failure to hold the direction the bar travelled. The absorption reading is an interpretation of that pattern, not a measurement of order flow. If you want that distinction to matter less, the remaining three gates are where the work is done.
Absorption on its own happens constantly and most of it leads nowhere. So the tool requires three further confirmations, in order, before it marks anything.
🔶 THE FOUR GATES
G1 · ABSORPTION — bar volume lands in an extreme percentile of its own recent history while the bar closes in the far third of its own range. This gate fixes the direction and nothing later can change it. It also plants the invalidation anchor at that bar's extreme. Optionally the direction must agree with a slow trend filter.
G2 · REACTION — a following bar closes in the direction G1 set. The absorption produced something instead of merely stalling.
G3 · EXPANSION — a candle body in the top percentile of its own recent history, pointing the setup's way. That candle's OPEN becomes the origin level, and the origin level is where entry would be.
G4 · HOLD — price returns to the origin level and closes without violating it. Only now does the signal print, on bar close.
This is a retest model, not a breakout model, and the consequence is worth stating before you use it. A setup whose expansion runs away and never comes back to the origin level will never complete, no matter how far the move goes. You will see setups sit at 3/4 while price travels past the drawn targets, and then expire. That is the design working as intended — the entry is the retest — but if you want a tool that chases the move instead, this is not that tool.
The dashboard reads: which stage the setup is in, the direction, which gate is being waited on, the expiry countdown, the entry and stop levels, and the record of every completed setup on the loaded history.
🔶 ORIGINALITY
Five design decisions separate this from a stack of conditions with an AND between them.
Percentiles instead of ATR multiples. A fixed "1.5 × ATR" or "2 × average volume" threshold means something different in a trending market than in a compressed one, so it has to be re-tuned per symbol and per period. Every threshold here is a percentile rank against the instrument's own recent history — "top 30% of the last 200 bars" keeps its meaning when volatility changes, without tuning.
Gates do not add up to a score. Each gate is a separate class of evidence and none substitutes for another. Three expansion bars in a row are still 1/4, not 3/4. A weighted-sum model can be outvoted by one loud condition repeating itself; this one cannot. There is deliberately no confidence percentage anywhere in this script — with four binary gates in a fixed sequence, the only honest information is how many of them have filled, and dressing that up as a percentage would add precision that does not exist.
The setup dies on its own. Every tracked setup carries an invalidation anchor (a close beyond the absorption bar's extreme) and a bar countdown that resets at each gate advance. When either fires, the setup is discarded immediately — it does not linger until an opposite signal replaces it, and it does not quietly stay on the books.
One setup at a time. While a completed setup is still resolving toward its target or its stop, a new setup will not complete — it waits at 3/4 and may still fire later if the first one resolves in time, or expire if it does not. This exists so that what the dashboard counts is what a person following the tool could actually have taken, one position at a time, rather than an overlapping stack of positions nobody could hold.
It shows its own record. The last two rows of the dashboard walk every completed setup on the chart you are looking at, bar by bar, and count which level price reached first — Target 1 or the stop. The stop is checked before the target, so a bar that spans both counts against the setup, and the bar the signal prints on is not counted at all. That number is whatever it is. It is not a claim, it is not tuned to flatter, and it will read differently on every symbol and timeframe you load — which is exactly the point. You are meant to check it on YOUR instrument before deciding what the tool is worth to you, instead of taking anyone's word for it. Most signal tools do not show this. That is a choice they made, and this is a different one.
🔶 HOW IT IS CALCULATED
Both percentile ranks are ta.percentrank() over one configurable window — one on bar volume (G1), one on the absolute candle body (G3). The close position is (close − low) / (high − low), so it describes where the bar finished inside its own range rather than relative to any external level.
The optional trend filter is a plain exponential moving average of the closing price on the chart's own timeframe, used as a slow-trend proxy: long setups are only allowed above it, short setups only below it. Set its length to 0 to switch it off. There are no higher-timeframe data requests anywhere in this script.
Entry is the open of the expansion bar. The stop is the absorption bar's extreme, plus an optional buffer in ticks. Both targets are multiples of that entry-to-stop distance, so they scale with the setup instead of with a fixed price amount. Target 1 is the level the record row measures against; Target 2 is drawn for reference only.
Every gate is evaluated and latched on confirmed bars only. There is no lookahead and there are no forward-looking references. A filled gate is never un-filled retroactively; the live bar can only be rejected, never rewritten. A bar that would satisfy two gates at once advances the setup by exactly one step — each gate has to be paid for with its own bar.
The chart geometry is redrawn from scratch on the last bar rather than accumulated, so what you see on the chart is always the setup the dashboard is describing, and closed setups do not leave debris behind.
🔶 ALERTS
Six conditions: setup reached 2/4, setup reached 3/4, signal LONG, signal SHORT, setup expired, setup invalidated.
The staged alerts follow from the same idea as the meter: being told a setup is one gate away is more useful than only being told after it is over.
🔶 HOW TO USE
1. Read the record row before anything else. Load your instrument and your timeframe and see what it says there. If it does not convince you, that is the tool telling you honestly that it is not for that market.
2. Check the sample size in the same row. A run of ten or twenty setups is an anecdote. The row flags small samples for exactly this reason.
3. Watch the meter, not the arrows. Most of the information is in setups that reach 2/4 or 3/4 and then die — that tells you what the market is refusing to do.
4. The stop sits at the absorption bar's extreme by default, which is tight. On fast intraday charts try the Stop Buffer input and watch how the record row responds.
5. The trend filter changes the population of setups substantially. Check the record row with it on and with it off on your own market before deciding which you prefer.
6. Set the 3/4 alert if you want to be at the chart before a setup completes rather than after.
🔶 SETTINGS
Volume (percentile window) · Gate Thresholds (G1 volume percentile, G1 close position, G3 body percentile, trend filter length, setup TTL) · Trade Levels (draw toggle, stop buffer in ticks, two R-multiple targets) · Display (dashboard and position, current-signal marker, all-past-signals marker, colors).
🔶 HONEST LIMITATIONS
Volume alone cannot be attributed to buyers or sellers. This tool reads total bar volume against the bar's close position. It does not know who traded, and it is not order-flow data. Treat the absorption premise as a reading of effort against result, which is what it is.
The volume itself is only as good as the feed. On spot forex and CFDs the exchange reports TICK volume rather than real traded volume, so the percentile ranks describe activity rather than quantity. On symbols with no volume data at all the gates cannot fill, and the dashboard says so in its top-right corner.
The retest requirement will cost you moves. As described above, setups that never return to the origin level expire unfilled even when price travels well beyond the drawn targets. This is structural, not a bug, and on strongly trending stretches it happens often.
Percentiles are relative to their window. After an abrupt change of volatility regime the ranks need a few dozen bars to catch up, and during that stretch the thresholds are still measuring the old regime.
The record row is an honest count, not a backtest. It assumes a fill at the exact entry price and it ignores fees, spread and slippage — all of which work against you in reality, and all of which matter a great deal when the outcome is close to even. A record that looks positive before costs can be negative after them. It also covers only the setups on the history your chart has loaded, which on intraday timeframes is a small sample.
Results vary far more between markets than between settings. The same script on the same timeframe can produce a very different record on two different symbols, and there is no timeframe this tool is generally "best" on. Any suggestion otherwise would be an invention. Check your own market.
This tool describes a sequence of conditions in price and volume. It does not forecast anything, it makes no claim about how often the sequence resolves favourably, and the drawn levels are the geometry of the setup, not a recommendation. It is published for analysis and education, it is not financial advice, and past behaviour of a pattern does not guarantee its future behaviour. Check the record on your own market, manage your own risk, and decide for yourself.
Part of the EonMetrics toolset.
Indicatore

Indicatore

Delta Volume Profile,Order Flow, Buy/Sell&Absorption POC LunqFXA normal volume profile shows you HOW MUCH volume traded at each price. Delta Volume Profile shows you WHO did it — buyers or sellers — at every price level. Each row of the profile is split into buying volume and selling volume, turning a plain histogram into a clean order-flow map that reveals where demand and supply were really built, and the one level where a large player was quietly absorbing the flow.
❶ WHAT YOU SEE
▸ THE DELTA PROFILE — a horizontal volume profile on the right of price, but every price level is split in two: blue = buying volume, orange = selling volume. The total length of a row is the volume traded there; the blue/orange split is the delta — the balance of buyers versus sellers at that exact price. One glance tells you whether a level was accumulation, distribution, or a fair two-sided fight.
▸ ABSORPTION POC — this is the level that matters most, and it is not the ordinary Point of Control. A classic POC is simply the highest-volume row. The Absorption POC is the row where heavy volume traded with a balanced delta — lots of buying AND selling at the same price. That is the signature of absorption: a large participant filling orders against the crowd without letting price move. It is marked with a gold line and label, because it is where reversals and strong reactions most often begin.
▸ DASHBOARD — a compact readout of the whole range: NET DELTA (are buyers or sellers in control overall), the Buy/Sell split as a percentage, and the exact Absorption price.
❷ WHY DELTA AND ABSORPTION MATTER
Price only tells you where the market went. Order flow tells you the effort behind the move. A rally on weak buying delta is fragile; a level held by heavy two-sided absorption is where smart money is defending a position. By splitting volume into buy and sell at every price — and by isolating the absorption level — this profile shows the intent behind the volume, not just its size. That is the difference between a plain volume profile and an order-flow read.
❸ HOW TO USE IT
1 — Read the NET DELTA in the dashboard. Positive = buyers dominated the range (look for longs on pullbacks); negative = sellers dominated (favour shorts on rallies).
2 — Trade toward and away from the ABSORPTION level. It acts as a magnet and a strong support/resistance zone — price often returns to it, and reactions from it are among the cleanest on the chart. Use it as a target or as your line in the sand.
3 — Read each level's split before you trust it. A level that is mostly blue (buying) is genuine demand; a level built on orange (selling) is supply. When price approaches a level, its colour tells you which side is likely to defend it.
4 — Watch for imbalance vs balance. Strongly one-sided rows (almost all blue or all orange) mark aggressive, directional levels. Balanced rows — especially the Absorption POC — mark battle zones where the trend is most likely to stall or turn.
❹ HOW IT WORKS (transparent)
For every bar, volume is split into buy-volume and sell-volume from where price closed inside the bar's range: buy-volume = volume × (close − low) ÷ range, sell-volume = volume × (high − close) ÷ range. This is a transparent, range-based delta estimate — it needs no tick or bid/ask feed, so it runs on any symbol. Each bar's buy and sell volume is added to the price row it traded in, across a fixed rolling lookback. The Absorption POC is the row that maximises (row volume ÷ largest row volume) × (1 − |buy − sell| ÷ row volume) — heavy volume weighted by how balanced its delta is. On symbols that report no exchange volume, the profile falls back to equal weight per bar (a price-density profile) so it still works everywhere, and the panel says PRICE PROFILE instead of DELTA PROFILE.
Best used on markets with real volume — crypto (e.g. BINANCE:BTCUSDT), stocks, futures and indices — on any timeframe. On forex the volume is broker tick-volume, so treat the delta as an approximation of order flow.
SETTINGS — lookback, number of rows (resolution), profile width, row gap, absorption line on/off, neutral candles on/off, and dashboard position.
NON-REPAINTING — the profile is built only from closed historical bars over a fixed lookback and drawn on the last bar. It uses no request.security and no lookahead, so history never changes; only the current forming bar updates live, as with any volume profile.
This indicator is an educational market-analysis tool, not financial advice. The volume delta shown is a transparent estimate from price and volume, not exchange-audited bid/ask order flow, and past behaviour does not guarantee future results. Always confirm with your own analysis and manage your risk. Indicatore

Session Seasonality Deviation [MarkitTick]💡 A highly advanced analytical framework meticulously engineered to quantify, measure, and visualize volatility anomalies within specific, localized trading windows. By programmatically isolating price action strictly to predefined market hours—such as the London or New York opens—this tool establishes an objective statistical baseline of expected market movement based exclusively on historical day-of-the-week performance data. Rather than relying on lagging continuous averages, this mathematical model detects the precise moment a market transitions from baseline activity into statistically significant expansion or compression, providing an objective lens through which to view true price dynamics.
● ✨ Originality and Utility
Traditional volatility metrics and bands typically analyze continuous price data streams, inadvertently blending distinct, structurally different trading periods into a single, homogenized moving average. This generalized approach inherently degrades the accuracy of volatility forecasting. The core utility of the SSD indicator lies in its targeted isolation of distinct market sessions, mathematically acknowledging the reality that a Tuesday London session behaves with entirely different liquidity parameters than a Friday New York session.
By creating an isolated historical distribution for each specific day of the week, this tool offers a highly accurate, predictive baseline for expected volatility that adapts to the calendar. Furthermore, the integration of structural price action filters ensures that these statistical anomalies are always correlated with actual market mechanics, elevating the tool beyond simple moving average bands and providing a robust, multidimensional analysis of market intent.
● 🔬 Methodology and Concepts
This script operates on a sophisticated confluence of statistical profiling and structural market analysis, creating an unyielding logic engine designed to filter market noise.
Time-Series Stratification: The underlying logic initiates by isolating raw price data exclusively within a user-defined temporal window. It captures the extreme upper and lower boundaries of this session, establishing the true operational range and discarding irrelevant data from inactive hours.
Day-of-Week (DOW) Seasonality Profiling: Rather than utilizing a generic rolling lookback of consecutive calendar days, the algorithmic engine stores and categorizes historical session ranges based on the specific day of the week. It builds an independent, localized statistical distribution for each day, calculating the mean average range and the variance of those specific historical instances.
Standardized Deviation (Z-Score) Engine: The primary mathematical trigger relies on a rigorous Z-Score calculation. It compares the current session's confirmed range against the historical DOW average, divided by the established standard deviation. This quantifies exactly how far the current volatility deviates from the empirical historical norm.
Structural Confluence and Market Character: To prevent the system from acting on anomalous volatility that lacks definitive directional intent, the logic engine requires a structural confirmation. It evaluates recent high and low boundaries, demanding that the closing price breaches these structural bounds to validate the statistical signal and confirm a genuine shift in market character.
● 🎨 Visual Guide
The visual interface is precision-engineered for rapid cognitive interpretation of complex statistical states, designed to relay critical data without cluttering the charting canvas.
Dynamic Heatmap Candles: The primary price action is overlaid with a responsive heatmap. Candlesticks are colored dynamically to reflect the internal bias of the active session, providing an immediate visual cue of the dominant buying or selling pressure.
Average Range Bounds: Subtle, non-intrusive bracketing lines are plotted symmetrically around the session open, projecting the historical average range. This creates a visual baseline for expected session expansion, allowing the user to see when price escapes the statistical norm.
Actionable Trade Levels: Upon the generation of a confirmed signal, the tool plots projected Entry, Stop Loss, and multiple Take Profit coordinates. Chart labels are meticulously configured to display raw value strings without percentage signs, ensuring a clean, distraction-free presentation of critical price levels.
Analytical Heads-Up Dashboard: A sophisticated data table is rendered on the chart, centralizing key real-time metrics. It details the active session, current directional bias, real-time Z-Score, Sample Size validity, and structural state. The dashboard is explicitly designed to display a matching, comprehensive evaluation of both long and short transaction outcomes, ensuring a perfectly balanced view of all potential market trajectories.
● 📖 How to Use
Interpreting the output of this tool requires a methodical, step-by-step approach, focusing heavily on the intersection of statistical deviation and structural shifts.
Monitor the on-chart dashboard for the Z-Score to definitively exceed the user-defined deviation threshold, which serves as the primary indicator of a statistically significant expansion in volatility.
Verify the directional bias of the current session using the Heatmap Candles and ensure this localized momentum aligns with the broader, macro market structure.
Wait for a confirmed structural breach signal that perfectly matches the directional bias of the initial statistical deviation, ensuring momentum is backed by actual price displacement.
Utilize the automatically plotted Trade Action Levels for strict risk management. The Stop Loss is dynamically calculated based on historical variance, and Take Profit levels offer scaled, mathematically logical target zones.
Exercise extreme caution and avoid executing signals during periods of severe price compression, or when the dashboard indicates that the sample size of historical data is insufficient to form a mathematically reliable statistical distribution.
● ⚙️ Inputs and Settings
The configuration panel is categorized logically to allow for the precise, modular tuning of both the statistical engine and the visual outputs.
Core Settings: Select the target session (Asia, London, New York) and define the lookback period for the seasonality model. Adjust the precise Deviation Threshold (Z-Score limit) to control the strictness and sensitivity of the generated signals.
Filters: Toggle specific confirmation layers, including the minimum required historical sample size, minimum expansion criteria, and specific structural requirements necessary to validate a move.
Trade Tools: Calibrate the multiplier values for the dynamically calculated Stop Loss and Take Profit levels, allowing the user to seamlessly align the tool with their individual risk parameters and payout models.
Visuals and Dashboard: Customize the display properties of the heatmap candles, the average range bands, and the spatial positioning of the analytical dashboard to suit personal workspace preferences.
● 🔍 Deconstruction of the Underlying Scientific and Academic Framework
The theoretical foundation of this analytical tool is deeply rooted in advanced Quantitative Finance, specifically drawing upon the established principles of Volatility Clustering and the Day-of-the-Week Anomaly. Academic literature frequently notes that financial markets exhibit leptokurtic distributions, wherein volatility is not a constant force but rather clusters densely in specific, predictable temporal windows. By employing a variance measurement technique akin to Standardized Moments, the script effectively normalizes session volatility.
This process allows the underlying algorithm to objectively classify current price action relative to an empirical baseline, entirely removing subjective human bias from the equation. Furthermore, the integration of structural pivot analysis introduces a deterministic filter to an otherwise probabilistic model. This synthesis ensures that statistical outliers are only deemed actionable when they are accompanied by a verifiable, measurable shift in the underlying supply and demand equilibrium.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. We expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion. Indicatore

Indicatore

XI0033 Williams FractalA Williams fractal confirms late by definition: the pattern is complete only after the bars to its right have closed, so the marker always appears in the past. This script keeps the classic fractal template — three- or five-bar — and adds the one thing the classic version cannot show: the bar that is about to become a fractal, before the confirmation arrives.
It draws triangles for confirmed fractal highs and lows, plus one highlighted triangle for the last potential fractal on the live edge. Nothing else: no lines, no levels, no signals.
Confirmed fractals
A fractal high is a bar whose high stands above the highs of its neighbours; a fractal low mirrors that on the lows. The 3-bar mode compares one neighbour on each side, the 5-bar mode two on each side — the original Bill Williams definition. The Periods input sets how many bars back the reference bar sits. Confirmed fractals are painted as muted grey triangles above the highs and below the lows, and once the pattern that produced them is closed, they are history: they do not move and do not disappear.
Confirmed fractal highs and lows in the muted default colour: every triangle marks a bar whose extreme beat its neighbours on both sides, printed only after the pattern completed.
The last potential fractal
This is the addition. One bar to the right of the last confirmable centre there is always a candidate: a bar already higher (or lower) than its closed neighbours, waiting only for the current bar to keep its distance. The script highlights that candidate with an orange triangle — pointing down above a potential high, pointing up below a potential low — so the developing swing is visible before it becomes official.
The highlight exists only on the live bar. It is recalculated tick by tick, disappears the moment price violates the candidate, and is deliberately dropped on the bar's final update, so it never leaves a trace in the chart history. Scroll back and you will find only confirmed fractals.
Left: the orange triangle under the newest low is the last potential fractal. Right, a few bars later: that low now carries a grey confirmed triangle — the preview left no trace — and a new potential fractal already sits above the latest high.
What repaints, and what does not
The potential marker repaints by design — that is its job. It is a live preview that appears, moves and vanishes with the current bar, and it is intentionally not committed to history. Confirmed fractals in the default 3-bar mode are built from closed bars only, so once a triangle prints, it is final. In the 5-bar mode with the default period, the newest confirmation still involves the forming bar's extreme, so it can appear and be withdrawn until that bar closes; after the close it is final. And every confirmed fractal is late by definition — the triangle appears above a bar that is already in the past, because that is what confirmation means.
What is reused, and what is new
The confirmed-fractal logic is the classic Bill Williams fractal template as coded by Mit Nayi, reused open-source with attribution in the source header. What this edit adds: the port to Pine Script v6, and the whole potential-fractal layer — the candidate detection one bar to the right of the confirmable centre, and the barstate mechanism that shows the preview on the live bar only and drops it on the bar's final update, so it never piles up in history.
What it does not do
It gives no signals. A fractal marks a local extreme, and most local extremes get traded through; on their own they are not entries. This is a structural marker — swing logic, liquidity maps and ICT-style analysis use fractals as raw material, and the potential marker only tells you where the next one may appear. The decision stays yours.
The Inputs allow you to set:
Periods: how many bars back the fractal centre sits; the triangles are drawn on that centre bar
3 or 5 Bar Fractal: one or two neighbours compared on each side
Show last potential fractal: the live-edge preview on or off
Potential down and up fractal colours
About the chart
BYBIT:BTCUSDT.P, 5-minute chart. The only script on it is this one, with default settings: muted grey triangles mark confirmed fractal highs and lows across the chart, and the orange triangle at the right edge is the last potential fractal, not yet confirmed. No other indicators, no drawings. Indicatore

Fractal Timeframe Collision Node [MarkitTick]💡 The financial markets operate across multiple interacting timeframes, creating complex structural geometries that cannot be accurately analyzed through a single, isolated lens. The tool presented here acts as a comprehensive multi-timeframe aggregation engine, designed to isolate highly significant structural support and resistance clusters. By evaluating pivot points across four distinct time spans and merging them based on volatility-adjusted proximity, this system identifies high-probability reaction zones where structural exhaustion is most likely to occur. It is built strictly for the modern Pine Script environment, utilizing an entirely non-repainting architecture that respects the highest standards of data integrity and execution logic.
● ✨ Originality and Utility
Standard pivot or support/resistance scripts typically plot historical swing highs and lows independently. This creates chart clutter and often leaves the analyst guessing which level holds the most technical weight. This tool introduces the concept of "Collision Nodes." Instead of simply drawing every pivot, the algorithm scans higher timeframe data, identifies structural extremes, and clusters them together using a dynamic, adaptive mechanism.
When multiple higher timeframes project a pivot at the exact same price zone, a structural "Collision Node" is formed.
The utility lies in its objective strength grading: a node formed by the confluence of the 1-hour, 4-hour, and Daily charts mathematically demands more respect than a single localized swing point on a lower timeframe.
By filtering out the noise and only projecting nodes that meet a user-defined minimum strength threshold, the analyst is presented with a remarkably clean chart displaying only the most critical, high-liquidity zones.
Furthermore, the script automatically generates full trade execution parameters (Entry, Stop Loss, and multiple Take Profits) directly on the chart when a valid structural rejection occurs.
● 🔬 Methodology and Concepts
• Multi-Timeframe Pivot Extraction
The core engine relies on detecting localized extrema (Pivot Highs and Pivot Lows) over a user-defined lookback window. The script fetches these pivot values simultaneously from three higher timeframes plus the current chart's timeframe. To ensure absolute data integrity and prevent any future data leakage (repainting), the algorithm strictly requests historical, confirmed data using offset historical referencing.
• Volatility-Normalized Spatial Clustering
Once the pivots are extracted, the algorithm must determine if they "collide" or overlap. Because absolute price distance is irrelevant across different assets, the script uses a dynamic clustering mechanism normalized by the Average True Range (ATR).
A tolerance band is calculated by multiplying the current ATR by a user-defined coefficient.
If a newly discovered higher timeframe pivot falls within this exact tolerance band of an existing pivot cluster, it is merged into that cluster, and the cluster's "strength" rating is incremented.
If it falls outside the tolerance band, a new independent node is registered.
• Memory Management and Age Pruning
Financial markets possess a memory, but structural relevance decays over time. The script incorporates a memory management protocol that continually monitors the age of all registered nodes. If a node has not been tested or updated within a specific bar count limit, it is automatically pruned from the active array, ensuring that only highly relevant, modern liquidity pools are analyzed.
• Automated Signal Validation
A visual node is not a signal; it is an area of interest. The script validates trade signals by combining spatial location with price action. A valid signal requires the price to close inside the tolerance zone of a high-strength node, accompanied by a rejection candle (where the wick constitutes a significant percentage of the total candle range), and a structural close confirming the directional bias.
● 🎨 Visual Guide
• Collision Nodes
Teal Horizontal Lines: Represent bullish support nodes. The opacity of the line dynamically shifts based on the strength of the node (darker/more solid lines indicate higher timeframe confluence).
Red Horizontal Lines: Represent bearish resistance nodes. Like the bullish nodes, their visibility scales with structural strength.
Diamond Labels (◆×2, ◆×3): Attached to the end of the node lines, these labels explicitly display the node's strength rating. A "◆×3" label means three separate timeframes have confirmed a pivot at this exact mathematical level.
• Trade Execution Box
Dashed Blue Line: Indicates the exact Entry price upon signal confirmation.
Solid Red Line: Represents the dynamic Stop Loss, which is placed behind the collision node with an added ATR-based buffer to avoid premature liquidation.
Dashed Teal Lines (TP1, TP2, TP3): Represent calculated Take Profit levels projected automatically based on the user's defined Risk-to-Reward (RR) multipliers.
Red Background Fill: Visually maps the total risk zone between the Entry and the Stop Loss.
Teal Background Fill: Visually maps the total reward zone extending from the Entry up to the final Take Profit target.
• Real-time Dashboard
Located by default in the top right corner, this data table provides an instant summary of the market structure.
Bias: Displays the current active signal direction (LONG, SHORT, or NONE).
Active Nodes & Strengths: Lists the exact price levels of the nearest active bull and bear nodes, accompanied by visual progress bars displaying their respective strengths (Green for high strength, Yellow for medium, Red for low).
Trade Tracking: Displays the currently active Stop Loss and primary Take Profit levels if a trade configuration is locked on the chart.
● 📖 How to Use
Apply the indicator to your chart and set your three preferred higher timeframes in the settings (e.g., if trading on the 15-minute chart, you might select 1-Hour, 4-Hour, and Daily).
Observe the chart for the formation of high-strength Collision Nodes (look for ◆×3 or ◆×4 labels). These are your primary zones of interest.
Wait for price action to approach these nodes. Do not place blind limit orders.
Allow the script's internal logic to identify a structural rejection. When a valid rejection candle forms and closes at a node, a trade execution box will automatically populate on the chart.
Use the provided Entry, Stop Loss, and Take Profit lines to format your position sizing and manage the trade according to the mapped risk-to-reward parameters.
Optionally, link the script's advanced JSON webhook alerts to an external execution platform for automated trade routing.
● ⚙️ Inputs and Settings
• Core Settings
Pivot Lookback: The structural length required to confirm a swing high or low.
TF 1, TF 2, TF 3: The three higher timeframes used to scan for structural confluence.
Include Chart TF: Determines if the current chart's timeframe should also contribute to node strength.
Node Tolerance (×ATR): The spatial bandwidth used to cluster pivots together, measured as a multiplier of current volatility.
Min Node Strength: The minimum number of overlapping timeframes required for a node to be rendered on the chart.
• Filters
Require Rejection Candle: Enforces strict price action criteria, demanding that signals only fire if the candle displays a prominent rejection wick.
Min Wick % of Range: The exact percentage of the candle that must be composed of the wick to validate a rejection.
Max Node Age (bars): The duration a node remains active without being re-tested before being permanently purged from memory.
• Trade Tools
SL Buffer (×ATR): Adds a dynamic volatility buffer beyond the structural node to determine the absolute invalidation point.
TP1, TP2, TP3 (×SL Risk): The respective risk-to-reward multipliers used to dynamically project profit targets.
Lock Current Trade Levels: Freezes the visual risk/reward box on the chart until the trade hits either the final target or the stop loss, ignoring subsequent signals.
• Dashboard & Alerts
Show Dashboard: Toggles the visibility of the real-time data table.
Alert Actions: Customizable text fields allowing users to define specific JSON payload strings for long, short, and exit triggers.
● 🔍 Deconstruction of the Underlying Scientific and Academic Framework
The architectural foundation of this algorithm is heavily rooted in the Fractal Market Hypothesis (FMH), which posits that financial markets exhibit self-similar statistical structures across varying scales of time. In practical terms, a distribution pattern on a 5-minute chart mathematically resembles a distribution pattern on a Weekly chart. By aggregating pivot extrema from multiple independent time scales, this script exploits these fractal geometries to identify areas of harmonic resonance—price zones where liquidity pools overlap across different cohorts of market participants.
To resolve the spatial clustering problem, the system utilizes a volatility-normalized one-dimensional grouping algorithm conceptually akin to Density-Based Spatial Clustering of Applications with Noise (DBSCAN). Instead of utilizing fixed scalar distances (which fail as asset prices scale), the algorithm calculates an epsilon distance bounded by the Average True Range (ATR). This ensures that the clustering logic expands and contracts organically with market entropy. The ultimate output is a mathematically objective reduction of structural noise, isolating only the highest-density liquidity nodes that possess the greatest statistical probability of halting directional momentum.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. We expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion. Indicatore

EQH/EQL Liquidity Sweep | AlphaScript⚖️ EQH/EQL Liquidity Sweep
Detects clusters of equal highs (EQH) and equal lows (EQL) the resting-liquidity pools that price hunts and tracks exactly what happens to each one: swept, broken, or still active. Then it measures the real sweep rate so you can see your actual edge.
🎯 Why equal highs and lows matter
When price makes a high, pulls back, then makes another high at the same level, stops pile up just beyond that level — breakout orders, protective stops, resting liquidity.
The more times price taps the same level, the more orders accumulate there. Those pools are what larger participants hunt. This tool maps them automatically and then tells you whether each pool got raided or genuinely failed.
🔍 How pools form
The indicator finds swing highs and lows, then groups any that sit within a configurable tolerance of each other into a single pool.
A pool needs at least a minimum number of touches (default 2) to display. The pool line is drawn at the extreme of the cluster — the highest of the equal highs, or lowest of the equal lows — because that is where the stops actually rest. A small × marks each individual swing that built the pool, and the line thickness and badge show the touch count.
Each pool resolves in one of these ways:
⚡ SWEPT — price wicks through the pool extreme but the bar closes back on the original side. Stops were taken, but the level held on a closing basis. A liquidity raid.
💥 BROKEN — a bar closes through the pool extreme. The level genuinely failed — continuation, not a raid. Breaks are shown separately and never labeled as sweeps.
🛡️ Active — the pool has neither been swept nor broken and is still in play. Pools that go too long without resolving expire and are removed.
First qualifying event wins: one outcome per pool. If a bar both wicks through and closes through, it counts as a break — a close through the level can never be a sweep.
📊 Sweep-rate table | know your real edge
This is what separates the tool from every other equal-highs indicator: instead of just drawing levels, it measures what actually happens to them. The table breaks down every resolved pool by touch count (2 / 3 / 4+) and shows the real sweep and break percentages for each group — computed live from your own instrument, timeframe, and history.
That means you can answer the question that matters before taking a trade: do the pools you're watching actually get swept, or do they break? If 3-touch pools on your instrument sweep far more often than they break, that's a measured edge you can trade around. If 2-touch pools are a coin flip, you know to demand more confluence. The numbers come from the chart, not from a claim on a marketing page.
Only fully resolved pools are counted, active pools are excluded, so the rates can never be inflated by in-progress levels. The denominator is honest: what you see is what actually happened.
⚙️ Settings
-Swing lookback, and equal tolerance in ATR multiples (instrument-independent) or fixed ticks.
-Minimum touches to form a pool, maximum pool age, and how many active pools to track per side.
-Optional minimum wick penetration (ATR-based) to filter marginal sweeps. Does not apply to breaks.
-Optional "Strict Virgin Liquidity" mode: discards a forming level if price closes decisively beyond it before a second touch, so only levels that were never truly broken can pair. Off by default.
-Full display control: pool zones, touch badges, × touch markers, colors, line styles and widths, and how many resolved pools remain on the chart.
-Sweep-rate table with position options.
🔔 Alerts
Per-side sweep alerts (EQH and EQL), separate break alerts, and a combined "Any Pool Swept" alert. All alerts fire on the close of the event bar.
📌 Notes and limitations
-Designed for intraday and swing timeframes. Very low timeframes produce many small pools; adjust tolerance and swing lookback to suit.
-Detection uses standard swing pivots. A peak whose neighboring bar wicks slightly higher may not register as a separate pivot, so not every visual high becomes a pool — tune the swing lookback and tolerance to match how you read structure.
-The equal tolerance is the single most important setting. Too tight and genuine equal levels are missed; too loose and unrelated highs merge. Start moderate and adjust to your instrument.
-The sweep-rate table describes the pools on your loaded chart history. It is a measurement of what happened, not a prediction of what the next pool will do.
✅ Why no repaint
-Pivots are confirmed only after the swing lookback completes, and all pool detection runs on closed bars only. A sweep or break tag will never appear intrabar and then vanish.
-A pool is only evaluated for sweep or break once it has fully formed. A level still building cannot be resolved.
-No request.security() calls are used anywhere. All detection is chart-timeframe state. Indicatore

Supply & Demand Zones Liquidity & Stop Hunt [LunqFX]Supply and demand zones are where price reacts — but most indicators draw every swing as a box and leave you to guess which one matters. Liquidity Zones ranks them: it marks the key supply and demand zones, scores each one by how much liquidity it holds, and shows whether it is still fresh — so you know which level to trade and which to ignore.
❶ WHAT EACH ZONE SHOWS
Every zone is a coloured block — magenta = SUPPLY (sellers, above), teal = DEMAND (buyers, below) — and carries three readings that are original to this script:
LIQ SCORE (0–100) — how much volume traded inside the zone versus the strongest zone on the chart. 100 = the heaviest zone (the real magnet); a low score = a thin, weak level.
VOLUME ▲ / ▼ — the up-volume vs down-volume that built the zone: did buyers or sellers do the work inside it.
FRESH / TESTED N× — FRESH = price has not returned yet (strongest reaction expected); TESTED N× = already retested N times, weaker each time.
❷ HOW TO TRADE IT
1 — Read the BIAS in the panel. ▲ BUY-SIDE = favour longs, ▼ SELL-SIDE = favour shorts. Trade with it, not against it.
2 — Pick a zone with a HIGH LIQ Score (70+). Low-score zones are thin and unreliable — skip them.
3 — Prefer FRESH zones. A FRESH high-LIQ zone is the highest-probability reaction. A many-times-TESTED zone is more likely to break than hold.
4 — Wait for price to return to that zone. The bright edge line is your reference level.
5 — Enter on the reaction: LONG — bias BUY-SIDE, price drops into a FRESH teal DEMAND zone, LIQ 80, Volume ▲ (buyers dominant). Long on the reaction, stop below the zone, target the next supply zone above. SHORT — bias SELL-SIDE, price rallies into a FRESH magenta SUPPLY zone, LIQ 76, Volume ▼ (sellers dominant). Short on the reaction, stop above the zone, target the next demand zone below.
❸ WHAT TO AVOID
Trading low-LIQ zones — they hold little liquidity. Fading a zone whose Volume split disagrees with its side (e.g. a supply zone built on heavy up-volume) — the level is weak. Chasing a many-times-TESTED zone expecting a clean bounce.
Works on any symbol and timeframe — forex, gold (XAUUSD), indices, crypto and stocks — intraday and higher timeframes alike.
❹ DASHBOARD
The panel lists every zone with its price, LIQ Score, FRESH/TESTED status and side (BUY/SELL), plus a LIQ-weighted overall bias — the full picture at a glance. Optional neon candles can be turned off to keep your own style.
❺ HOW IT WORKS
1 — Swing highs and lows are found from confirmed pivots (closed bars — no repainting). Each swing high opens a supply zone, each swing low a demand zone. 2 — Each zone is a block centred on the swing, its height scaled to ATR so it fits the instrument's volatility. 3 — For every zone the script measures the volume traded inside it, the up/down-volume split, and how many separate times price entered it. 4 — LIQ Score = the zone's volume ÷ the strongest zone's volume, scaled 0–100. 5 — The bias is weighted by LIQ Score, so one heavy zone counts for more than several thin ones — an honest read of whether liquidity leans buy or sell.
No repainting
Zones are built only from confirmed pivots and rendered on the last bar over a fixed lookback. A zone that appears in a screenshot is a zone that was there live — history is never recalculated.
This indicator is an educational market-analysis tool, not financial advice. Zone strength and past reactions describe historical behavior and do not guarantee future results. Always confirm with your own analysis and manage risk. Indicatore

Liquidity Radar Engine [MarkitTick]💡 The financial markets operate on a continuous search for liquidity, moving dynamically from areas of consolidation to zones of unmitigated resting orders. This technical evaluation tool is engineered to objectively map these critical liquidity thresholds and provide a comprehensive framework for identifying high-probability market reversals and continuation phases. By tracking the exact interaction between historical pivot structures and real-time volume dynamics, it offers a highly systemic, algorithmic approach to charting price action.
✨ Originality and Utility
● A Synergistic Approach to Market Dynamics
Standard technical tools typically evaluate a single dimension of market data, such as momentum or trend direction, which frequently leads to fragmented analysis and false signals. This script stands out by synthesizing pure price structure, volume delta approximation, and multi-timeframe consensus into a unified visual environment. It removes the guesswork from order block and liquidity trading by mathematically defining structural shifts.
• Justification of the Integrated Logic
This tool is a deliberate fusion of price action concepts and mathematical volume filtering. Relying strictly on a breakout of a previous day's high or low can be highly susceptible to false moves and liquidity traps. By incorporating a relative volume (RVOL) filter and a proprietary candle-based delta estimation, the tool validates structural shifts with quantifiable market participation. Additionally, the inclusion of momentum divergence protocols ensures that price action is aligned with the anticipated structural pivot, filtering out low-probability setups in exhausted trends.
🔬 Methodology and Concepts
● Core Analytical Framework
The script operates by mapping significant price extremes across varying temporal horizons and evaluating the market's precise reaction when these zones are breached.
• Liquidity Sweep Detection
The algorithm constantly monitors the Highs and Lows of the Previous Day, Week, and Month. When current price action breaches one of these levels but fails to sustain the breakout—closing back inside the defined range—a sweep zone is generated. This defines a failed auction mechanism where stops may have been triggered without genuine directional follow-through from larger market participants.
• Equal Highs and Lows (EQH/EQL)
To identify resting liquidity pools, the script evaluates historical pivot points within an adjustable lookback window. Using the Average True Range (ATR) as a dynamic tolerance threshold, it mathematically defines whether two separate swing points are functionally "equal," marking them as magnetic targets for future price action.
• Structural Shifts and Displacement
Once a sweep occurs, the engine scans for a localized Change in State of Delivery (CISD). A valid shift requires displacement, which is measured by comparing the breakout candle's body size against a moving average of recent candle bodies, or by the immediate formation of a Fair Value Gap (FVG).
• Multi-Factor Validation
Signals are not generated strictly on price structure. They must pass a rigorous matrix of internal filters:
Relative Volume (RVOL): Requires the sweep or shift to occur with volume significantly exceeding the recent moving average.
Cumulative Volume Delta (CVD): Approximates buying and selling pressure within the candle spread to confirm directional momentum.
Trend Alignment: Evaluates the current price against a long-term Exponential Moving Average (EMA).
Volatility Squeeze Avoidance: Uses ATR ratios to actively block signals in exceptionally low-volatility environments.
Currency Correlation: Compares the traded pair against a reference index to ensure macroeconomic alignment.
News Blackout: Blocks all signals during user-defined, high-impact news windows to protect against erratic slippage.
🎨 Visual Guide
● Chart Elements and Topography
The visual interface is meticulously designed to present complex, multi-dimensional data without obfuscating the primary candlestick action.
• Historical Liquidity Levels
PDH/PDL Lines: Displayed as subtle, translucent lines indicating the Previous Day's High and Low.
PWH/PWL Lines: Denoting the Previous Week's extremes in distinct, moderately visible hues.
PMH/PML Lines: Marking the Previous Month's extremes for macro higher-timeframe context.
Equilibrium Line: A distinct midline drawn between the daily extremes to gauge intraday premium and discount pricing.
• Structural Zones and Markers
Sweep Zones: Highlighted boxes marking the exact area of a failed breakout. Buy-side sweeps appear in a muted green-toned box, while sell-side sweeps are marked in a red-toned box. These zones feature active aging, gently fading as time progresses.
FVG Clouds: Displayed as gold or yellow background areas denoting supply/demand imbalances.
EQH/EQL Markers: Small textual annotations above or below the price, bounded by a semi-transparent box, indicating concentrated liquidity pools.
• Execution and Management Visuals
Signal Labels: Distinct text markers indicating validated Buy or Sell conditions upon bar close.
Position Boxes: When a signal is active, a structured box appears showing the Entry level (dashed neutral line), Stop Loss (dashed red line), and up to three Take Profit targets (dashed teal lines).
Heatmap Candles: The main chart candles are dynamically colored based on the dominant daily bias or RSI momentum.
• The Multi-Timeframe (MTF) Dashboard
A tabular data panel positioned on the chart displays the trend and liquidity status across three distinct timeframes. It also features a comprehensive statistics section monitoring the active trading session, the current volatility regime, the count of unfilled fair value gaps, and the dynamic risk-to-reward ratio of any open simulated positions.
📖 How to Use
● Interpreting the Data
The primary workflow involves observing the direct interaction between price velocity and the mapped structural zones.
• Executing an Analysis
Wait for a visual Sweep Zone to form, indicating that a significant historical level has been tested and rejected by the market.
Observe the Signal Labels. A signal is only printed if the internal confluence engine—validating volume, delta, and structural displacement—has fully approved the setup.
If the FVG entry model is active, wait for price to retrace into the highlighted Fair Value Gap cloud before considering the setup valid for engagement.
• Trade Management
Utilize the plotted Position Boxes to evaluate the mathematical risk profile. The entry, stop loss, and targets are drawn directly on the chart for immediate visual feedback.
Monitor the MTF Dashboard to ensure the lower timeframe execution signal is not fighting a dominant higher timeframe trend.
If Dynamic Trade Management is enabled, closely observe the Stop Loss line as it automatically trails price based on the selected ATR, Swing, or Chandelier mathematical logic.
⚙️ Inputs and Settings
● Configuration Options
The script is heavily modular, allowing for extensive adjustment of its internal validation logic.
• General and Display Limits
Toggle the visibility of specific liquidity levels (Daily, Weekly, Monthly) and limit the maximum number of historical zones, FVG clouds, or signal boxes retained on the chart to maintain a highly optimized workspace.
• Validation Filters
Volume Validation: Adjust the Moving Average length and the RVOL threshold multiplier to define what constitutes a genuine volume climax.
Delta Filter: Toggle the requirement for estimated volume delta to perfectly align with the signal direction.
Divergence Source: Choose whether the script requires RSI, MACD, or a combination of both to display divergence before validating a reversal.
ADX Threshold: Define the strict minimum trend strength required for continuation signals.
• Target and Management Settings
Risk to Reward (R:R) Inputs: Define the exact mathematical multiples for Target 1, Target 2, and Target 3.
Position Sizing: Input an account balance and risk percentage to have the engine calculate the exact unit size for the plotted setup.
Trailing Logic: Select between None, ATR-based, Swing-based, or Chandelier-based trailing stops, complete with user-defined multiplier adjustments and partial profit scaling.
• Dashboard and Visual Preferences
Modify the specific timeframes monitored by the MTF panel, alter its position, and heavily customize the color palettes for all sweep zones, lines, heatmaps, and interface text.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
● Theoretical Foundations
The architecture of this script is grounded in several well-documented financial theories, primarily focusing on Auction Market Theory and the statistical modeling of price volatility distributions.
• Auction Market Theory and Liquidity
The core premise of the sweep detection logic rests securely on the concept of order matching and liquidity cascades. Markets move constantly to facilitate trade, frequently gravitating toward areas with a high density of resting stop orders, such as historical highs and lows. When these areas are breached but fail to attract aggressive participation, the auction process is deemed to have failed. This script mathematically quantifies these failed auctions by tracking the spatial relationship between the breakout wick and the closing price relative to the historical pivot.
• Statistical Variance and Normalization
The tool heavily utilizes the Average True Range (ATR) as a core normalization factor. Financial time series exhibit continuous heteroskedasticity, meaning volatility varies over time. Hardcoding a fixed point-value for concepts like "Equal Highs" or "Trailing Stops" is mathematically flawed. By utilizing ATR ratios, the algorithm rapidly adapts its spatial thresholds to the current standard deviation of price movement, ensuring highly consistent behavior across varying market regimes and asset classes.
• Momentum Divergence and Rate of Change
The inclusion of oscillators like the Relative Strength Index (RSI) and Moving Average Convergence Divergence (MACD) serves to measure the first and second derivatives of price—specifically velocity and acceleration. By actively requiring a divergence between price extremes and momentum extremes, the script effectively filters for environments where the kinetic energy of the prevailing trend is decaying, thereby increasing the statistical probability of a mean-reverting event or structural reversal.
• Volume Delta Approximation
While granular tick data is technically required for an exact volume delta calculation, the script employs a highly robust approximation algorithm that distributes volume proportionally across the candle's spread. This provides a quantifiable metric of localized supply and demand imbalances, adhering strictly to the Wyckoffian principle of Effort versus Result, ensuring that price moves are backed by actual transactional weight.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. We expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion. Indicatore

Liquidity Sweep Hunter & Targets | AlphaScript⚡ Liquidity Sweep Hunter & Targets
Tracks the High and Low of the Asia and London sessions, tells you exactly what happened to each level, and plots a risk-defined trade framework when a level is swept during the New York session.
This indicator is an upgrade to the : Session Sweep Detector
🔍 What it does
When a session closes, its High and Low become fixed liquidity levels. The indicator draws each level from the exact candle that printed the extreme and watches it until the same session opens again the next day.
Each level resolves in exactly one of three ways:
⚡ SWEEP — price wicks through the level but the bar closes back on the original side. A liquidity raid: stops were taken, but the level held on a closing basis.
💥 BREAK — a bar closes through the level. This is not a sweep, and the indicator never labels it as one. Breaks are displayed separately (and can be hidden) so the two events are never conflated.
🛡️ Untouched — the level survives its full watch window without either event.
First qualifying event wins: one outcome per level, per session, per day. If a bar both pierces and closes through a level, it counts as a break — a close through the level can never be a sweep.
🎯 NY Sweep Targets
When a session level is swept during the New York session, the indicator plots a risk-defined framework:
-Entry at the sweep bar's close
-Stop beyond the sweep wick or beyond the swept level (your choice), plus a tick buffer
-Four fully configurable R-multiple targets (default 1R / 1.5R / 2R / 3R)
-Optional risk / reward zone shading
A Low swept = bullish framework (targets above); a High swept = bearish (targets below). The targets are risk-multiple geometry measured from your entry and stop — planning levels for trade management, not predictions of where price will go.
📖 How to read the chart
-Solid colored lines are session levels, each starting at the candle that actually made the High or Low, so the line points at the liquidity itself.
-Every level line extends to the same right edge, so the name/price labels line up in a clean column.
-When a level is swept or broken, a tag prints at the event bar marking exactly where it happened.
-Previous sessions' levels remain on the chart as reference, with an option to keep or hide their labels.
⚙️ Settings
-Toggle each level independently (Asia High/Low, London High/Low), with per-session colors and fully configurable session hours (New York time; defaults: Asia 18:00–04:00, London 03:00–12:00).
-Minimum wick penetration filter (in ticks) to ignore marginal pokes when qualifying sweeps. Does not apply to breaks.
-Full control over the target framework: stop anchor, buffer, four R-multiples, line styles, colors, and optional risk/reward fills.
-Control how many previous sessions stay on the chart, whether previous-session labels are shown, and optional transparency for past levels.
🔔 Alerts
Per-level sweep alerts (Asia High/Low, London High/Low), combined "Any Sweep" and "Any Break" alerts, and an "NY Sweep Setup" alert that fires when a target framework is plotted. All alerts fire on the close of the event bar.
📌 Notes and limitations
-Designed for intraday timeframes (1 minute to 30 minutes). On higher timeframes, sessions span too few bars for meaningful detection.
-Session times are defined in New York time (America/New_York) and handle the midnight crossover correctly. If you use another session-levels indicator, match the session hours so both tools agree on where the levels are.
-The target framework is a trade-management and planning tool. Entry, stop, and R-targets are geometry based on the sweep — use your own analysis and risk management to decide whether and how to act on a setup.
-Sweep-vs-break classification depends on your chart timeframe: a wick-through-and-reclaim on a 15m bar may resolve as a break on 1m if an intermediate bar closed beyond the level. Neither reading is wrong — they answer different questions.
✅ Why no repaint
-Events are evaluated on confirmed (closed) bars only. A sweep or break tag will never appear intrabar and then vanish.
-Levels are only armed after their session has fully completed. A session High that is still forming cannot be "swept" — price touching it would simply extend it — so no detection runs until the level is final.
-No request.security() calls are used anywhere. All session tracking is chart-timeframe stat Indicatore
