HTF Candle Architecture [MQLSoftware]HTF Candle Architecture overlays up to three higher-timeframe candles simultaneously on any chart, rendering each at full structural fidelity — body, wicks, and open mid-line — and extending the live candle in real time as bars print. A right-side panel shows the bias, range position, and cross-timeframe alignment for all active levels. Level-touch signals mark when price closes near a key HTF boundary.
This is a visual analytical tool intended for chart reading and structural context. It does not execute trades and does not provide financial advice.
Key Features
Three simultaneous HTF levels, auto-selected from the standard timeframe ladder above the chart, with an override for manual pinning
Three display modes per level: Candles (body box + wicks), Bars (H-L spine with open/close ticks), and HL (high and low range lines only)
Live candle extends in real time — the body, wicks, and projection lines follow price as the current HTF period develops
OHLC Projection lines project the current HTF candle's High, Low, Open, and Close as dotted levels to the right, labeled with the timeframe and price
Range Position gauge — a filled-block bar (`████░░░ 71%`) showing where price sits inside each HTF candle's range; extremes (above 80% or below 20%) highlight in amber
Alignment row — cross-timeframe bias summary: ↑↑ ALIGNED when all enabled levels agree bullish, ↓↓ ALIGNED when all agree bearish, ⇅ MIXED when they conflict
Level-touch signals — fires when price first closes within a configurable ATR threshold of a HTF High, Low, or Open; one signal per HTF candle, per level
HTF Bias Background — subtle background tint matching the primary level's direction (blue for bull, red for bear)
Four alert conditions, all confirmed-bar only
Core Concept
Most HTF candle overlay scripts show a single timeframe. The useful information in a multi-timeframe view is not just that a candle exists at a higher timeframe — it is the structural relationship between that candle and the current position of price, repeated across multiple timeframes at once.
This indicator builds that view directly. Three independent HTF levels render simultaneously with separate depth cues: the closest timeframe uses a lighter body and thinner border; deeper timeframes use heavier borders and darker fills, so the layered structure reads without confusion at a glance.
The range position gauge is the specific addition that single-timeframe tools miss. Whether price is at 91% or 47% of the current Weekly candle's range changes the structural read. The gauge answers that for all three active levels without requiring the user to manually measure.
The alignment row adds the cross-timeframe read in a single line. When all enabled timeframes agree on direction, a single colored label replaces the need to read each row and compare manually. When they conflict, ⇅ MIXED in amber flags it explicitly so a false conviction read is not made.
The level-touch signal system layers actionable entries on top of the structural view. It applies a zone-entry filter — the signal fires only when price moves into the zone on this bar, not while it is already inside — and a per-period gate that allows at most one signal per active HTF candle per level. Combined, these two filters remove the signal spam that plagues basic proximity alerts.
Anatomy of the Display
HTF candle bodies are box objects spanning the HTF period's bar range. The live body updates right-edge and color on every bar. Closed candles are committed once the HTF period ends and stay anchored.
Wicks are line objects centered within the body's bar range, connecting the body edge to the High or Low. In Bars mode, the same lines form the H-L spine, open tick, and close tick of a standard bar representation.
The open mid-line is a dashed horizontal line at the Open price inside the body, visible when the body height exceeds 5% of ATR14, so it is suppressed on doji-like candles where it would overlap the border.
OHLC Projection lines are dotted horizontals extending from the HTF period start to `bar_index + N bars` (configurable). Each carries a tiny label on the right showing the timeframe abbreviation, level name, and price. They update every bar, so they track the live candle's developing values until the period closes.
The panel occupies the top-right corner. Rows 1-3 show the active timeframe, its bias (↑ BULL / ↓ BEAR), and the range position gauge. Row 4 shows the alignment verdict with a colored background. Rows 5-6 show the last signal fired. The header row shows the ticker.
Level-touch signal arrows appear below or above the bar that closes near a HTF level: ▲ for a Low touch (potential support), ▼ for a High touch (potential resistance). Signal size scales with HTF depth: L1 uses the smallest arrow, L3 the largest.
Notes on Repainting
HTF candle visual rendering uses `request.security` with `lookahead=barmerge.lookahead_on`. The live body and wicks update intrabar as the current HTF candle develops. This is display-only and is the standard practice for visualizing a forming HTF candle. The `lookahead_on` value is never used in any signal condition.
All signals are gated by `barstate.isconfirmed` and fire only on closed bars, never intrabar.
Zone-entry filter : a signal fires only if `math.abs(close - level) <= threshold` on this bar AND `math.abs(close - level) > threshold` on the prior bar. Price must move into the zone on this bar; already being inside the zone does not retrigger.
Per-period gate : a boolean flag resets at the start of each new HTF candle and is set on the first signal. At most one signal fires per HTF period per level.
Alerts are gated by `barstate.isconfirmed` and fire once per confirmed bar.
Typical Analysis Workflow
A common analytical workflow may include:
Checking the alignment row to establish a directional context — ↑↑ or ↓↓ ALIGNED suggests all active timeframes agree; ⇅ MIXED means caution
Reading the range position gauge to see whether price is extended (above 80% or below 20% of the HTF range, highlighted in amber) or mid-range
Watching the OHLC projection lines for the current session's active levels — these are the structurally meaningful prices for the live HTF candle
Noting level-touch signals as markers where price has closed near a key HTF boundary; combine with other analysis to assess significance
Configuration
Auto Timeframes — when enabled, selects the three most relevant standard TFs above the chart automatically. Disable to pin timeframes manually per level.
Candles to Show — how many closed HTF candles to keep on chart per level. Older candles are removed as new ones close.
Display Type — Candles, Bars, or HL. Applied to all levels simultaneously.
Per level (HTF 1 / 2 / 3) — enable/disable, custom timeframe, body opacity (0=opaque to 95=near-transparent), and separate bull/bear color pickers.
Visual group — show/hide wicks, mid-line, timeframe labels, live-candle highlight, bias background, anchor dots at period starts, and new-period shade.
Projections — show/hide H, L, O, C levels independently; extend-right bars; price labels on/off.
Panel — show/hide.
Signals — show/hide; touch threshold as ATR multiplier (0.05–1.0); H/L and Open toggles per level independently.
Markets and Timeframes
Works on any instrument and timeframe where at least one higher timeframe exists above the chart:
Forex
Stocks and Indices
Commodities
Cryptocurrencies
Auto timeframe selection scales from 1m charts (1H / 4H / D auto) through Daily (W / M auto). At the top of the timeframe ladder, fewer than three higher timeframes exist and the unused levels can be disabled.
Alerts
HTF 1 H/L Touch — price closed near HTF 1 High or Low
HTF 2 H/L Touch — price closed near HTF 2 High or Low
HTF 3 H/L Touch — price closed near HTF 3 High or Low
Any HTF H/L Touch — price closed near any active HTF High or Low
All alerts fire on confirmed bars only. Indicator

Elliott Wave Scanner [MarkitTick]💡 An automated structural analysis tool engineered to detect, classify, and visualize complex market cycles based on classic wave progression principles. By scanning localized price extrema and passing them through a rigorous matrix of geometric and proportion-based filters, this indicator distills highly subjective chart analysis into objective, rule-based pattern recognition. Designed for traders who rely on structured market phases, the scanner not only maps five-wave impulses and three-wave corrections but also integrates dynamic risk-to-reward calculations, volume confirmation, and higher-timeframe alignment to evaluate the probabilistic quality of every structural sequence it identifies.
✨ Originality and Utility
Wave theory is traditionally plagued by subjectivity and observer bias, where two analysts might map entirely different structures on the same chart. The utility of this script lies in its strict, algorithmic standardization. It removes emotional interpretation by requiring market swings to conform to precise mathematical tolerances before a sequence is validated.
This tool distinguishes itself by moving beyond mere drawing utilities. It is a complete analytical environment that actively assesses the viability of a market structure. It calculates a predefined Risk-to-Reward (R:R) ratio, establishes a clear target, and sets a protective invalidation level for every valid formation. Furthermore, it incorporates confluence filters—such as market structure midlines and higher-timeframe directional bias—ensuring that localized patterns are only presented when they align with the broader macroeconomic flow. This multifaceted approach provides a systematic, highly actionable framework rather than a simple visual overlay.
🔬 Methodology and Concepts
The core engine of this scanner is built upon the identification of sequential market pivots and the subsequent validation of their relationships through Fibonacci retracement and extension parameters.
• Algorithmic Pivot Detection
The script continuously monitors price action to identify localized peaks and troughs, referred to as Pivot Highs and Pivot Lows. A pivot is mathematically confirmed only when a central price point is surrounded by a user-defined number of lower highs (or higher lows) on both its left and right sides. This ensures that only significant market turning points are evaluated, filtering out intraday noise.
• Impulse Validation (1-2-3-4-5)
To confirm a five-wave impulse, the script isolates an alternating sequence of six confirmed pivots and applies strict proportional rules:
Wave 2 must retrace between 38.2% and 78.6% of Wave 1.
Wave 3 must extend beyond the terminus of Wave 1 and mathematically cannot be the shortest wave in the 1-3-5 sequence.
Wave 4 must retrace between 23.6% and 50.0% of Wave 3.
The script enforces an optional but standard rule where the extreme of Wave 4 must not overlap the extreme of Wave 1.
• Correction Validation (A-B-C)
For three-wave corrective structures, the engine isolates a sequence of four alternating pivots:
Wave B is required to retrace between 38.2% and 78.6% of the initial Wave A sequence.
Wave C must form a proportional extension of Wave A, operating strictly between the 61.8% and 161.8% boundaries.
• Structural Confirmation and PRZ
Once geometric rules are satisfied, the script calculates a Potential Reversal Zone (PRZ). For an impulse, the PRZ represents the logical termination area for Wave 5, derived by projecting 100% to 161.8% of Wave 1's magnitude outward from the origin of Wave 5. The entire sequence is then subjected to a Risk:Reward calculation, validating the pattern only if the theoretical trade setup meets the required profitability threshold.
🎨 Visual Guide
The indicator is designed to provide maximum data density without cluttering the charting environment.
• Structural Pathing
Valid Impulse waves are rendered using robust, continuous lines connecting the validated pivots, clearly demarcating the 1-2-3-4-5 progression. Corrective A-B-C structures are rendered in a distinctly contrasting color, providing immediate visual differentiation between trending and counter-trend market phases.
• Fibonacci Anchor Lines
Dotted horizontal projection lines extend outward from the Wave 4 terminus, visually indicating the 1.0x, 1.618x, and 2.618x Fibonacci extensions of Wave 1. These serve as dynamic targets for Wave 5 completion.
• Potential Reversal Zone (PRZ)
A shaded, transparent box is drawn at the culmination of the pattern. This box highlights the specific price region where harmonic and Fibonacci projections converge, signifying the highest probability area for the pattern's completion and subsequent market reversal.
• Trade Parameters
Upon pattern completion, three distinct dashed lines are projected forward on the chart:
An Entry line, anchored at the final wave's closing extreme.
A Stop line, calculated dynamically using an Average True Range (ATR) buffer applied to the penultimate structural pivot.
A Target line, mathematically derived from a 61.8% proportional measurement of the dominant impulsive wave.
• The Analytical Dashboard
A comprehensive data table anchors to the top right of the screen. This dashboard tracks real-time system metrics, including the prevailing market bias, the active pattern type, exact price levels for the generated trade parameters, and a dynamic Risk:Reward quality score visualized via an integrated block-bar system. It also tracks historical pattern frequency and individual wave magnitudes.
📖 How to Use
This script is engineered to act as an objective entry generation tool based on wave completion.
• Trading the Impulse W5
When the scanner identifies a validated 1-2-3-4 progression and projects the final Wave 5 into the PRZ box, traders should monitor price action within this shaded region. A rejection or stabilization within the PRZ, accompanied by the printing of the Entry, Stop, and Target dashed lines, signals a valid execution window. The structural stop-loss ensures that if the wave count is invalidated by overlapping previous structure, risk is immediately contained.
• Trading the A-B-C Correction
Corrective sequences are utilized to position into the resumption of the primary trend. When an A-B-C sequence completes, indicating that the counter-trend exhaustion has been reached, the system will output actionable levels targeting the previous macro swing high or low. Traders can utilize the volume confirmation toggle to ensure that the reversal away from the Wave C terminus is supported by institutional participation.
• Managing Pivot Delay
Because the indicator relies on confirmed pivots (requiring a set number of bars to close on the right side of the extreme), signals are generated only after the structural turning point is mathematically locked. Traders should view the generated Entry line as the execution threshold, waiting for price to retest or confidently cross this parameter rather than attempting to guess the absolute bottom or top of the raw price action.
⚙️ Inputs and Settings
The indicator offers deep modularity, allowing adaptation across different asset classes and timeframes.
• Pivot Configurations
Adjusting the Pivot Left and Pivot Right parameters alters the sensitivity of the extrema detection. Lower values yield aggressive, micro-wave tracking suitable for scalping, while higher values isolate macro-economic market cycles.
• Elliott Rules and Tolerances
The Fib Tolerance (%) input allows the user to expand or contract the leniency of the retracement measurements. The system also includes logical toggles to enforce strict structural laws, such as ensuring Wave 4 never overlaps Wave 1, or that Wave 3 must explicitly extend beyond Wave 1.
• Filter Systems
Traders can enforce a Higher Timeframe (HTF) Bias , ensuring the script only plots bullish waves when the macro trend is positive. A Volume Confirmation toggle is also available, suppressing signals if the momentum behind Wave 3 fails to breach the baseline volume moving average.
• Visual and Dashboard Toggles
Every graphical element, from the PRZ shading to the individual wave labels, can be toggled on or off to maintain chart hygiene. The dashboard can also be customized with specific text and background colors to fit any chart template.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
The foundational framework of this indicator is deeply rooted in fractal geometry and the statistical behavior of financial time series. Markets, much like natural phenomena, exhibit self-similarity across different scales—a concept heavily explored in the mathematics of fractional Brownian motion. This indicator applies this academic premise by assuming that macroeconomic trending phases (impulses) and mean-reverting phases (corrections) manifest in predictable, repeating geometric sequences, regardless of the timeframe observed.
At the core of the algorithm is the algorithmic isolation of local extrema. By utilizing a rolling array of historical price highs and lows, the engine establishes a localized topology of the market. This topology is then subjected to proportional analysis governed by the Fibonacci sequence, a mathematical series intimately connected to the golden ratio (1.618). In financial econometrics, these specific ratios function as a psychological boundary mechanism; because market participants aggregate their risk and take-profit parameters around these proportional extensions, they generate measurable zones of supply and demand clustering.
The script synthesizes these disciplines by requiring that the distance between consecutive topological extrema strictly conforms to these irrational proportions. By enforcing a rule set where localized wave measurements must divide into one another to produce specific golden ratio derivatives, the indicator successfully models the non-linear, oscillatory nature of crowd psychology and market liquidity into a rigid, computable output.
⚠️ 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. Indicator

Vortex Signals [Gabremoku]Vortex Signals is a reworked version of the classic Vortex Indicator designed to make directional shifts easier to read and less reactive than raw crossover-based interpretations.
Instead of treating every VI+ / VI- crossover as a direct trading signal, this script uses the Vortex lines as a regime detector first, then looks for signal quality through spread expansion and re-activation after a pullback. The goal is to reduce the noisy sequence of repeated entries and exits that often appears when the standard Vortex is used on its own.
What the script does:
Plots the classic Vortex components, VI+ and VI-.
Fills the space between the two lines with a dynamic gradient that reflects which side is dominant and how strong the current spread is.
Detects bullish and bearish dominance regimes.
Uses a signal engine based on regime change, spread expansion, and first valid continuation after weakening.
Prints compact chart markers for LONG, SHORT, and CLOSE events.
Includes a dashboard to show current state, sequence status, setup condition, spread, slope, and directional bias.
How it works:
Regime: the script first determines whether VI+ is above VI- or VI- is above VI+.
Spread: it measures the distance between the two Vortex lines to evaluate whether dominance is meaningful or weak.
Expansion: a regime becomes more relevant when the spread rises above its short baseline and continues widening.
Trigger logic: instead of firing on every crossover, the script waits for either an early valid impulse after regime change or the first useful re-expansion after a pullback inside the same regime.
Why this is different from the classic Vortex:
The built-in Vortex is often read through raw line crossovers.
This script reframes the indicator as a dominance and continuation tool rather than a pure crossover trigger.
The signal engine is designed to capture cleaner transitions and continuation phases while avoiding part of the back-and-forth noise that often occurs in choppy conditions.
How to use it:
In Long mode, focus on bullish dominance and the appearance of a LONG marker after spread expansion or re-expansion.
In Short mode, focus on bearish dominance and the appearance of a SHORT marker after the same logic on the opposite side.
CLOSE markers appear when the opposite Vortex condition breaks the active sequence.
Suggested use:
This script is generally better suited to trending or directional environments than to highly compressed sideways markets.
In my testing and chart observation, the signals can appear cleaner on the 1H timeframe, where short-term noise is often reduced compared with very low timeframes, but users should still adapt settings to the instrument and market structure they trade.
Notes:
This indicator is not predictive and does not guarantee profitable signals.
It should be used as a decision-support tool together with price structure, risk management, and broader market context.
As with any directional model, false signals can still occur during whipsaw or transition phases. Indicator

Multi Timeframe Order-Flow CockpitMulti-Timeframe Order-Flow Cockpit
A single overlay that turns raw volume into a multi-timeframe order-flow read. It draws a compact row of higher-timeframe (HTF) candles beside price — each split into buy vs sell volume — and condenses several timeframes' order flow into one plain-language verdict. Unusually, it ships with a built-in calibration layer that forward-tests its own verdict and tells you, in plain words, whether that verdict actually beats a base rate — instead of asserting an edge it cannot show.
WHAT IT DOES
For each timeframe you enable, the script reconstructs the buy/sell volume that built every bar, scores how one-sided that flow is, reads market structure, and fuses everything into a single bias with a stated conviction. It then projects key price levels and marks where current price sits inside each timeframe's range — so you can see, at one glance, what order flow is doing across the whole timeframe stack.
WHY THESE COMPONENTS ARE COMBINED
This is not a pile of unrelated overlays. It is a pipeline where each stage feeds the next, and a final stage audits the whole:
Higher-timeframe candles are the canvas — see several timeframes' auctions at once without flipping charts.
Intrabar delta classifies sub-bar volume into buy vs sell (close-vs-open, or range-weighted). Where your plan and symbol allow, the chart-timeframe strip uses native footprint (real aggressor bid/ask volume), tagged REAL; otherwise it reconstructs the delta and is tagged EST — so data fidelity is never hidden.
Order-flow toxicity (VPIN-family) measures how aggressive/one-sided each timeframe's flow is. It is a conviction input, not a direction.
Market structure (swing breaks, BOS/CHoCH) supplies directional context that can override delta when price structure genuinely shifts.
Probabilistic synthesis fuses the above in log-odds space, averaging correlated inputs so that redundant agreement cannot inflate confidence, plus an optional exogenous volatility-index vote (rising volatility pressures the asset).
Forward calibration resolves every committed verdict N bars later against an ATR-sized move and reports Hit% versus an unconditional Base%, gated by a Wilson score interval so a result is only flagged (star) when it is statistically distinguishable from chance — split by trending versus ranging regime.
The components belong together because the deliverable is the synthesis and its honest scoring, which no single overlay can provide: toxicity needs the delta, structure contextualizes the delta, the verdict needs all of them, and the calibration is meaningless without a verdict to test.
HOW TO USE IT
Read the Compact table (default). Bias = which way flow leans; Conviction = how strongly; Flow = calm vs one-sided; Setup = exhaustion flags; Edge = whether the verdict has measured, significant edge; Use = the bottom line — "Context only" until edge is proven, "Tradeable — still verify" only when the calibration confirms it.
Switch the table to Pro for per-timeframe metrics (delta %, toxicity, structure, calibrated bias) plus the combined verdict and calibration rows. Turn on the Key Info table while learning — it is a plain-language legend.
On-chart aids: each panel tags its true High/Low and shows a position triangle at its edge — green when price is above that timeframe's range, red when below, yellow when inside, with brightness scaling to how far price has stretched. Key levels (POC, value-area high/low, recent swing high/low) are projected at true price as reference zones.
Any market: set your symbol, price source and intrabar resolution in Data Source, and your market's volatility index in Volatility Vote. Defaults are set for NSE NIFTY — change them for other assets.
Alerts are attention cues (verdict shift, toxicity spike, divergence, structure shift) — they tell you where to look, never what to do. Create one alert with the condition "Any alert() function call."
WHAT IS ORIGINAL HERE
Most order-flow and "smart-money" tools assert an edge by drawing confident signals. This one is built around the opposite discipline: a transparent calibration layer that measures and reports its own edge against a base rate, refuses to certify a signal that has not earned statistical significance, and reports it separately by market regime. The multi-timeframe order-flow synthesis with decorrelated log-odds fusion, and the REAL/EST fidelity tagging of delta, are also original to this implementation. The honesty layer is the headline feature — it is designed to tell you when there is no proven edge.
CONCEPT CREDITS (methods, not code)
Bulk Volume Classification / VPIN — Easley, Lopez de Prado and O'Hara. Market/Volume Profile (value area, POC) — J. Peter Steidlmayer. Wilson score interval — E. B. Wilson (1927). Efficiency-ratio regime — Perry Kaufman. Market-structure concepts — classical price action. All original code, architecture, fusion and calibration by the author.
DISCLAIMER
This is an awareness/context tool — not a signal generator and not financial advice. No indicator predicts the future. Past behavior and any displayed statistics do not guarantee future results; the calibration is explicitly designed to report when the tool has no measurable edge — heed it. Trade your own plan and manage your risk. Indicator

Master Filter - Trend and Smart Money ZonesOverview
Master Filter combines a proprietary trend engine with the smart-money tools traders actually act on - EMA structure, Fair Value Gaps, Order Blocks and market-structure labels - in a single, clean overlay. Instead of stacking five separate indicators, you get one consistent read of where the trend is and where price is likely to react .
Everything is computed on the current chart timeframe and updates live as new bars form.
What's inside
1. The Master Filter © - trend & signals
A triple-smoothed price baseline (TEMA) is tracked against an adaptive average that follows the highs in an uptrend and the lows in a downtrend. An ATR-based channel (length 365 x multiplier, smoothed) acts as a confirmation filter that aims to suppress false flips during chop. When direction confirms, the script prints a LONG / SHORT marker on the bar. You can optionally plot the high / middle / low channel lines.
2. EMA suite + smoothed mirrors
EMA 100 / 200 / 300 / 365 for trend context, with a shaded zone between the 300 and 365 EMAs. Two optional "mirror" EMAs (a smoothed reflection of the 200 and 365) project the opposite side of price to frame mean-reversion zones.
3. Fair Value Gaps (current timeframe)
Three-bar imbalances are drawn as boxes with a dashed mid-line and tagged with the chart timeframe. Live gaps extend to the current bar and are removed automatically once price trades back through them (mitigation). A "max visible" cap keeps only the most recent gaps.
4. Order Blocks (current timeframe)
SMC-style order blocks are detected on structure breaks (price closing through the last swing high/low). The OB candle is selected within a bounded search window, with a volatility filter so an oversized, high-range bar isn't mistaken for the block. Each OB is drawn as a box plus dashed mid-line, kept per direction up to a configurable limit, and dropped on a strict break. A "max pivot age" setting skips stale blocks far from current price during strong trends.
5. Market structure - HH / HL / LH / LL
Swing pivots are labelled as Higher High / Higher Low / Lower High / Lower Low (teal for higher, orange for lower) so structure shifts are visible at a glance.
How to use
Read the trend from the LONG/SHORT markers and EMA stack; trade with it.
Use FVG and Order Block zones as areas to look for entries, partial exits or invalidation - not as automatic buy/sell signals.
Confirm with HH/HL/LH/LL: continuation favours trend-aligned zones; a structure break warns of a possible shift.
Settings
Grouped by section - Main trend (length, multiplier, channel filter, plot channel), Moving Average (EMA lengths, mirrors, smoothing), Fair Value Gaps (show, max visible, colours), Order Blocks (show, max per side, search/structure length, max pivot age, colours), and HH/HL/LH/LL (show, swing length, lookback).
Alerts
Change of the trend - fires when the Master Filter direction flips.
Notes
This indicator is a decision-support tool, not a signal-for-hire system. It does not place orders and past behaviour does not guarantee future results. Always combine it with your own risk management.
Indicator

Market Structure Mechanics - MSSThis script is an automated structural mapping tool designed to read price action through the strict lens of the ICT (Inner Circle Trader) algorithmic framework. It doesn't just mark every high and low; it intelligently categorizes how price interacts with structural levels to tell you whether the trend is continuing, reversing, or manipulating.
Here is a breakdown of how the script interprets market mechanics:
1. Trend Tracking & Pivot Identification
The script actively tracks the most recent swing high (sh) and swing low (sl) to determine the current trend (bullish or bearish). It uses a customizable pivot length (default 5 bars) to identify these structural turning points.
2. Break of Structure (BOS)
A BOS signals that the current trend is continuing.
If the trend is Bullish and a candle closes decisively above the active Swing High, the script draws a solid blue line and labels it BOS.
If the trend is Bearish and a candle closes decisively below the active Swing Low, it draws a solid red line labeled BOS.
3. Market Structure Shift (MSS) with Displacement
An MSS is a high-probability signal that the overall trend has reversed. However, the script is designed to filter out fake reversals by enforcing the Displacement Rule.
If the trend is Bullish, but price suddenly closes below the active Swing Low, the algorithm checks the recent down-move to see if a Bearish Fair Value Gap (FVG) was formed.
If an FVG is present, it means the move had massive institutional momentum (Displacement). It will draw a thick red line labeled MSS, and the trend will officially shift to bearish.
If it breaks the low but no FVG is found, the script flags it as a low-probability, invalid break (drawn as a dotted gray line).
4. Liquidity Sweeps (Stop Hunts)
This is where the script shines at reading manipulation.
If price pushes past a structural high or low to trigger retail stop losses, but the candle ultimately fails to close beyond the level (leaving a wick), the script immediately recognizes this as a stop hunt.
It will draw a dashed orange line and label it Sweep.
The script also features a built-in "Smart Label Merger", meaning if a level gets Swept and then Broken on the exact same candle, the labels will neatly combine (e.g., "Sweep, BOS") instead of creating a messy, overlapping clump of text on your chart. Indicator

Dynamic Visible AVWAPDynamic Visible AVWAP is a visible-range anchored VWAP tool designed to help traders read active price interaction with important visible swing areas.
The script automatically anchors AVWAP lines from the highest high and/or lowest low inside the currently visible chart range. This makes the tool dynamic: when the visible chart area changes, the anchors are recalculated from the new visible range.
Additional AVWAPs can be enabled with the AVWAP Count setting. When more than one AVWAP is selected, the script adds extra anchors from the next valid swing highs or swing lows. This allows multiple AVWAP references to be displayed at the same time, creating a clearer view of potential confluence zones.
Main features:
Dynamic AVWAP based on the currently visible chart range
Long, Short, or All display modes
Optional multiple AVWAPs per side
Optional deviation channels around each AVWAP
Optional channel fill
Separate style controls for AVWAP lines, channels, arrows, and anchor text
Optional anchor arrows and custom anchor label text
Adjustable text size for anchor labels
Optimized line budgeting to keep the script stable when multiple AVWAPs are displayed
How it can be used:
Dynamic Visible AVWAP can help identify areas where price is interacting with volume-weighted mean levels from important visible swing points. These levels may be useful for context, confluence, pullback analysis, trend continuation review, or mean-reversion observation.
Important note:
The anchors are based on the currently visible chart range. If you zoom, scroll, or change the visible area of the chart, the AVWAP anchors may change because the script recalculates the highest high, lowest low, and additional swing anchors from the new visible range.
This indicator should be used together with broader market analysis, such as structure, volume, liquidity, higher-timeframe levels, and personal risk management. Indicator

Dynamic Gravity Attractor (DGA) [MarkitTick]💡 An advanced technical indicator designed to identify, weight, and visualize significant price zones using a physics-inspired gravitational model. By treating historical price pivots as physical masses that exert gravitational pull on the current price, this tool dynamically highlights levels of high structural importance. This offers traders a unique, quantitative perspective on support, resistance, and the overarching market equilibrium based on continuous volume and touch data.
✨ Originality and Utility
Unlike standard static support and resistance indicators that simply draw horizontal lines at arbitrary swing highs and lows, this system introduces a dynamic, weighted engine based on volume execution and touch frequency.
Traditional indicators often clutter the chart with dozens of obsolete lines. This tool resolves the issue by clustering proximate price levels using an Average True Range based spatial resolution. This synthesizes fragmented levels into cohesive, highly actionable Gravity Zones.
The core utility lies in its ability to quantify the relative strength of these zones using a gravitational constant. Instead of merely sorting by recency, it sorts by actual structural pull. This allows traders to cleanly distinguish between minor intraday speed bumps and major macroeconomic price attractors that have a high probability of influencing future price routing.
🔬 Methodology and Concepts
The script operates on a robust foundation of interconnected logical pillars, ensuring a precise reading of historical market structure:
• Pivot Detection and Clustering: The indicator identifies standard non-repainting pivot highs and lows using a defined lookback window. Instead of plotting each pivot individually and causing chart noise, it evaluates if a new pivot falls within an existing cluster radius. This radius is dynamically determined by a user-defined percentage of the 14-period Average True Range. If a match is found, the cluster aggregate price, volume, and touch count are updated using a volume-weighted average formula.
• Mass Calculation: Each clustered zone is assigned a quantitative mass. This mass is a blended metric derived from the total trading volume transacted at that specific level and the frequency of price touches it has endured. Users can dynamically adjust the weighting of these two components to favor volume-heavy execution levels or frequently tested psychological levels.
• Gravitational Pull: Applying a concept directly akin to classical physics, the indicator calculates the gravitational force of each active zone relative to the current closing price. The formula incorporates the zone calculated mass, a user-defined Gravitational Constant, and the inverse square of the absolute distance between the zone and the current price.
• Net Force and Equilibrium: By aggregating the gravitational pull of all active zones above the current price and subtracting the zones below, the script calculates a continuous Live Net Force. This net force dictates the overall directional bias of the underlying market structure.
🎨 Visual Guide
The tool provides a rich, multi-layered visual experience, utilizing dark-mode optimized palettes to allow traders to interpret complex market structures at a rapid glance:
• Gravity Zone Lines: Horizontal lines representing the clustered price levels. The strongest mathematical attractor is plotted with a solid line, while weaker zones use dashed line styles to indicate secondary importance. The thickness of the line directly correlates with its top-ranking status.
• Zone Colors: Levels situated above the current price are colored in a visual gradient from vibrant purple to deep violet, representing resistance or overhead gravity. Levels situated below are colored in a gradient from yellow to dark orange, representing support or underlying gravity. The color intensity and opacity scale dynamically with the calculated mass of each zone.
• Gravity Fields (Halos): Semi-transparent background boxes surrounding the strongest top-ranked gravity zones. The vertical height of the box represents the zone mathematical sphere of influence, calculated using the true range and the zone specific mass.
• Gravity Center: A distinct dotted cyan line plotting the weighted center-of-mass between the strongest overhead attractor and the strongest underlying attractor. This acts as the market current fulcrum.
• Dynamic Labels: Textual tags attached to the right of the gravity lines. These indicate the exact price level, an arrow denoting if the force is pushing up or down, and a percentage representing its gravitational strength relative to the maximum active zone.
• Heatmap Candles: The main chart candles are recolored based on the Live Net Force. A bullish bias paints the candles in a specific underlying color, while a bearish bias paints them in an overhead color. Border and wick colors adapt similarly to show micro-shifts in pressure.
• Gravity Dashboard: A comprehensive on-chart data table displaying the active number of tracked levels, the exact prices of the top upper and lower attractors, the Net Force bias, the current cluster size, and a visual block-bar representation of the highest active mass percentage.
📖 How to Use
• Trend Identification: Observe the Heatmap Candles and the Net Force metric on the Gravity Dashboard. A sustained bullish color bias suggests the price is being pulled upward by a stronger overhead attractor or violently pushed from a massive underlying support base. Traders should look to align their directional trades with this dominant net force.
• Targeting and Exits: Use the strongest Gravity Zone Lines as primary profit targets or areas to scale out of positions. Because these zones possess high mass, price tends to inevitably gravitate toward them over time.
• Entry Confirmation: Wait for the price to enter a Gravity Field. If price action demonstrates rejection patterns, long wicks, or volume anomalies within these specific halo zones, it provides a high-probability entry for mean-reversion trades.
• Equilibrium Trading: The Gravity Center line represents a literal point of balance between the primary opposing structural forces. Observing the price crossing, retesting, and holding this level can indicate a fundamental shift in structural control from sellers to buyers, or vice versa.
• Automated Alerts: The script includes built-in alert conditions for when the price comes within a tight proximity to the strongest above or below zones. It also fires alerts when the overall Net Force shifts direction. All alerts and webhooks are constructed as strictly formatted JSON strings designed for flawless third-party execution, dynamically calculating and including the Entry Price, the precise Take Profit target, and the exact Stop Loss invalidation price.
⚙️ Inputs and Settings
• History Depth (bars): Determines how far back in time the script looks to evaluate active pivots. A higher number tracks long-term macro zones, while a lower number focuses on immediate intraday structure.
• Number of Gravity Zones: Limits the maximum number of attractor lines drawn on the chart to prevent visual clutter.
• Level Cluster Resolution (ATR%): Controls how closely pivots must be to merge into a single, heavier zone. A higher value aggregates more historical levels together, creating fewer but stronger zones.
• Gravitational Constant G: A mathematical multiplier that scales the overall gravity calculations. Adjusting this tweaks the sensitivity of the Net Force output.
• Mass Components (Volume & Touch Weight): Fractional sliders allowing the user to adjust whether a zone mass is more heavily derived from transacted volume or the sheer number of times the price has historically tested the level.
• Minimum Touch Count: The baseline number of times a price level must be tested before it is officially registered as having enough mass to generate gravity.
• Visual Settings: Comprehensive toggles to independently turn lines, text labels, halo fields, the dashboard table, and center-of-gravity boxes on or off according to individual visual preference and chart cleanliness. All colors are fully user-configurable without hardcoding.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
The tool borrows directly from classical mechanics, specifically the law of universal gravitation, to mathematically model financial market microstructure. In standard physics, the attractive force of gravity between two independent objects is directly proportional to the product of their masses and inversely proportional to the square of the distance between their centers.
In the context of this script, the current market closing price acts as a dynamic point mass navigating a static field of larger, stationary masses, representing the historical support and resistance clusters. The script operationalizes this concept by calculating Mass as a composite statistical index of cumulative trading volume and historical test frequency. Volume acts as the density of the price level, representing committed capital and trapped liquidity, while touch frequency represents the psychological reinforcement and memory of the level among market participants.
By rigidly utilizing the inverse square law of distance, the indicator mathematically guarantees that nearby price levels exert exponentially more influence on current price action than distant levels. This accurately reflects the highly localized nature of market liquidity, order book depth, and slippage. Furthermore, the clustering algorithm employs a dynamic threshold based on Average True Range, introducing a volatility-normalized spatial resolution. This specific mechanism ensures that the radius of a mass point expands in highly volatile environments and contracts in tight consolidations, strictly adhering to established principles of adaptive signal processing, robust statistical smoothing, and dynamic time warping.
⚠️ 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. Indicator

Indicator

Precision Price Gamma [PGamma]Here's the full updated description with all the fixes — car analogy corrected, image captions added, ready to copy:
Precision Price Gamma (PGamma) is a second-derivative momentum indicator that measures the acceleration of momentum, not momentum itself.
━━━━━━━━━━━━━━━━━━━━━━━━━━
WHY PGAMMA IS DIFFERENT
━━━━━━━━━━━━━━━━━━━━━━━━━━
Most momentum indicators tell you how strong a move is. PGamma tells you whether that strength is increasing or fading — going one step further by measuring whether momentum is strengthening or weakening. This allows PGamma to identify changes in market pressure before many trend-following indicators respond.
━━━━━━━━━━━━━━━━━━━━━━━━━━
THE FOUR STATES
━━━━━━━━━━━━━━━━━━━━━━━━━━
Γ↑ Accelerating — Bullish momentum is positive and still strengthening.
Γ⌃ Bull Weakening — Bullish momentum remains positive, but buying pressure is beginning to fade.
Γ↓ Bear Pressure — Bearish momentum is dominant and selling pressure continues to strengthen.
Γ⌄ Bear Exhaustion — Bearish momentum remains negative, but selling pressure is beginning to weaken.
━━━━━━━━━━━━━━━━━━━━━━━━━━
HOW IT WORKS
━━━━━━━━━━━━━━━━━━━━━━━━━━
PGamma smooths the source series, then computes the slope of that smoothed series — the first derivative, or Momentum. It then smooths Momentum and computes its slope — the second derivative, or Price Gamma. The four states are determined by the sign of both values simultaneously.
Momentum determines the current direction of market pressure. Gamma determines whether that pressure is strengthening or weakening. They often disagree near turning points — and those disagreements are often the most informative signals PGamma produces.
Think of it like driving a car. Momentum is your speed. Gamma is whether you are pressing the gas or the brake. You can be moving backward while pressing the brake — still moving backward, but slowing. That is negative momentum with positive gamma. In market terms, price may still be making lower lows, but each push down is losing force. That often precedes consolidation, a bounce, or a reversal.
Two examples of this disagreement are illustrated in the first two snapshots — a red candle during a green Gamma Timeline, and a green candle during an amber Gamma Timeline. The third snapshot illustrates when Momentum and Gamma align, showing a green candle with a green Gamma Timeline during Accelerating state.
━━━━━━━━━━━━━━━━━━━━━━━━━━
THE STATE MATRIX
━━━━━━━━━━━━━━━━━━━━━━━━━━
Momentum | Gamma | State
+ | + | Accelerating
+ | - | Bull Weakening
- | - | Bear Pressure
- | + | Bear Exhaustion
Momentum and Gamma often disagree near turning points. A positive Gamma reading while Momentum remains negative does not mean the market is bullish — it means bearish momentum is losing acceleration. Those disagreements are where PGamma is most useful.
━━━━━━━━━━━━━━━━━━━━━━━━━━
UNDERSTANDING THE DASHBOARD
━━━━━━━━━━━━━━━━━━━━━━━━━━
State — Combines Momentum and Price Gamma into one of the four market conditions above. Read the State row first.
Momentum — The first derivative of price. Positive = bullish momentum dominates. Negative = bearish momentum dominates.
Gamma — The second derivative of momentum. Above Zero = momentum is accelerating. Below Zero = momentum is decelerating. Gamma often changes direction before Momentum, making it useful for identifying transitions in market pressure.
Bias — A simplified interpretation combining Momentum and Gamma into a single directional context label.
━━━━━━━━━━━━━━━━━━━━━━━━━━
GAMMA TIMELINE
━━━━━━━━━━━━━━━━━━━━━━━━━━
The Gamma Timeline displays the historical sequence of Price Gamma states as a continuous color band along the bottom of the chart. Each colored segment represents one bar, allowing traders to quickly identify transitions between acceleration, weakening, pressure, and exhaustion without obscuring price action. Green for Accelerating, amber for Bull Weakening, red for Bear Pressure, sky blue for Bear Exhaustion. Toggle on or off in Display settings.
━━━━━━━━━━━━━━━━━━━━━━━━━━
GETTING STARTED
━━━━━━━━━━━━━━━━━━━━━━━━━━
1. Add PGamma to any chart. It works on all instruments and timeframes.
2. In Settings → Display, choose your panel position and size.
3. In Settings → Calculation, adjust Momentum Smoothing, Momentum Length, and Gamma Length to suit your timeframe. Default values are calibrated for intraday 1m–60m charts.
4. Read the State row first. Then use Momentum and Gamma to understand why the state is what it is.
5. Use Bias as a quick at-a-glance directional context.
6. Use the Gamma Timeline to read state history across the session at a glance.
━━━━━━━━━━━━━━━━━━━━━━━━━━
HOW TO USE IT
━━━━━━━━━━━━━━━━━━━━━━━━━━
PGamma is not a buy or sell signal. Think of PGamma as a market condition indicator rather than a trade signal. Use it as a confirmation layer alongside your existing methodology. Typical applications:
• Confirming trend continuation when State shows Accelerating.
• Identifying weakening rallies before reversals when State shows Bull Weakening.
• Recognizing building pressure before visible breakdowns when State shows Bear Pressure.
• Spotting exhaustion during extended trends when State shows Bear Exhaustion.
When used alongside a GEX level tool, price approaching a Call Wall with Γ⌃ Bull Weakening is a different setup than price approaching the same level with Γ↑ Accelerating. PGamma makes that distinction visible.
Because PGamma analyzes smoothed momentum rather than candle color, bullish candles can appear during Bear Pressure and bearish candles can appear during Bull Weakening. This reflects underlying momentum conditions rather than individual price bars — and is often an early warning of what is developing beneath the surface.
━━━━━━━━━━━━━━━━━━━━━━━━━━
WORKS WELL ALONGSIDE
━━━━━━━━━━━━━━━━━━━━━━━━━━
PGamma complements indicators that identify where important price levels exist.
• Trend indicators
• Moving averages
• Volume Profile
• VWAP
• Options Gamma Exposure (GEX)
• Support and Resistance
• Market Structure
These tools identify where price may react. PGamma helps evaluate how price is behaving as it approaches those levels.
━━━━━━━━━━━━━━━━━━━━━━━━━━
WHAT THIS TOOL IS NOT
━━━━━━━━━━━━━━━━━━━━━━━━━━
PGamma measures changes in momentum. It does not predict future prices or guarantee reversals. Use it as analytical context alongside your existing trading methodology.
━━━━━━━━━━━━━━━━━━━━━━━━━━
SETTINGS OVERVIEW
━━━━━━━━━━━━━━━━━━━━━━━━━━
Calculation: Source, Momentum Smoothing, Momentum Length, Gamma Length
Display: Show Dashboard, Panel Position (6 locations), Panel Size (Small / Normal / Large), Show Gamma Timeline Indicator

SMC Lite Pro [BOS + CHoCH + OB + FVGOverview
SMC Lite Pro [BOS + CHoCH + OB + FVG is a Smart Money Concepts (SMC) based trading indicator designed to help traders identify market structure shifts, liquidity movements, institutional order flow, and high-probability reaction zones directly on the chart.
This all-in-one tool combines Break of Structure (BOS), Change of Character (CHoCH), Order Blocks, Fair Value Gaps (FVG), and Liquidity Sweeps into a single clean and powerful trading system. It is built for traders who follow price action and institutional-style market behavior across Forex, Crypto, Indices, and Commodities.
Key Features
Market Structure Engine
* Swing Highs & Swing Lows detection
* Higher High / Lower Low structure mapping
* Real-time trend identification
🚀 BOS & CHoCH Detection
* Break of Structure (Bullish & Bearish)
* Change of Character (Trend reversal signals)
* Clean visual labels for structure shifts
🏦 Order Blocks (SMC Zones)
* Bullish Order Blocks (demand zones)
* Bearish Order Blocks (supply zones)
* Institutional entry zones based on displacement moves
⚡ Fair Value Gaps (FVG)
* Imbalance detection between candles
* Bullish and Bearish FVG zones
* Potential price retracement areas
💧 Liquidity Concepts
* Equal Highs / Equal Lows detection
* Liquidity sweep identification
* Smart money stop hunt zones
📈 Best Market Conditions
* Trending markets
* High volatility sessions (London & New York)
* Strong breakout environments
⏱ Recommended Timeframes
* 1M – 5M → Scalping (fast entries)
* 15M – 1H → Intraday trading (BEST performance)
* 4H – Daily → Swing trading (high accuracy setups)
🎯 How to Use
* Wait for BOS or CHoCH for directional bias
* Identify Order Blocks after structure shift
* Use FVG zones for pullback entries
* Confirm liquidity sweep before entry
* Trade in direction of market structure
⚠️ Disclaimer
This indicator is based on Smart Money Concepts and historical price action analysis. It does not guarantee profits. Trading involves risk, and users should apply proper risk management and confirmation before entering trades. Indicator

Fractal Structure Indicator BOS CHoCH TGFXFractal Market Structure — BOS / CHoCH
OVERVIEW
This tool maps market structure automatically using fractal pivots. It detects swing and internal structure, labels each break as BOS (continuation) or CHoCH (change of character / reversal), tracks the current fractal high and low (FH / FL), highlights the premium and discount zones of the active range, and summarises higher-timeframe structure in a table.
THE CONCEPTS
- Fractal pivots: highs and lows are detected as Williams-style pivots (a high or low with N bars on each side). Two layers are available — swing structure (larger pivots) and internal structure (smaller pivots inside the swings).
- BOS (Break of Structure): price closes beyond the prior structural point in the direction of the trend — a continuation event.
- CHoCH (Change of Character): the first break against the prevailing structure — an early sign of a potential reversal.
- Current FH / FL: the most recent fractal high and low, where liquidity tends to rest.
- Premium / Discount: the active range is split at its 50% equilibrium. Above it is premium (relatively expensive); below it is discount (relatively cheap).
- Multi-timeframe table: shows the structural bias and the zone (premium / discount) of higher timeframes at a glance.
NON-REPAINTING
A fractal is only confirmed once N bars have closed on each side, so a pivot is fixed after confirmation and does not repaint. Structure breaks (BOS / CHoCH) are evaluated on bar close.
SETTINGS
- Swing fractal length and internal fractal length.
- Show / hide internal structure.
- Show current FH / FL lines and labels.
- Show BOS / CHoCH labels.
- Show premium / discount zones.
- Colors, line extension, and the multi-timeframe table (timeframes and position).
HOW TO READ IT
- Green = bullish structure, red = bearish structure.
- BOS suggests trend continuation; CHoCH warns of a possible reversal.
- Price reaching discount within a bullish bias, or premium within a bearish bias, is the classic context many traders use to look for entries in the direction of structure.
NOTES
This script is an original implementation of standard, public price-action concepts (fractal pivots, market structure, BOS / CHoCH, premium / discount, equilibrium). It is a visualization and context tool — it does not generate buy/sell signals and makes no claim about future performance. Best used together with your own analysis and risk management. Indicator

Liquidity Map & Order Blocks [MQLSoftware]Liquidity Map & Order Blocks reads swing structure into a density map of where stop-liquidity rests, then projects which pool price is most likely drawn toward next. Equal highs and lows are grouped into bands whose brightness scales with a multi-factor Liquidity Score, sweeps mark where those pools were hunted, and a forward-looking model expresses the most likely draw as a self-calibrating historical hit-rate rather than a fixed number. A compact right-side panel adds chart and higher-timeframe structure, the net liquidity pull, the draw target, and pool counts.
This is a visual analytical tool intended for chart reading and liquidity mapping. It does not execute trades and does not provide financial advice. It does not generate buy or sell signals and makes no claim about profitability or win rate. The draw percentage describes how often similar pools were reached in the past over the loaded data; it is a descriptive statistic, not a prediction, and past behavior does not guarantee future results.
Key Features
Resting liquidity drawn as density bands from ATR-normalized clustering of equal highs and lows, so nearby levels merge into one pool instead of a stack of lines
Band brightness driven by a Liquidity Score that blends a saturating touch count, age decay, relative volume at the forming pivots, and rejection-wick depth
Draw on Liquidity projection: a directional arrow to the pool with the strongest modelled pull, muted automatically when the model's confidence is low
Draw percentage shown as a self-calibrating empirical hit-rate — how often pools of a similar profile were actually reached over the loaded history, marked provisional while the sample is thin
Sweep detection when price wicks beyond the last significant swing and closes back within it, with recent sweeps labelled and older ones marked compactly
Protected-swing structure engine marking Break of Structure and Change of Character, with an optional plain-language label mode
Order blocks drawn only when they originate a Break of Structure, plus an optional Fair Value Gap layer; both fade once mitigated
Multi-timeframe panel with chart and higher-timeframe bias, liquidity pull, draw target with its hit-rate, and pool counts, read non-repainting
Core Concept
Most liquidity and order-block tools on PulseWire take one of two approaches. They either draw raw equal-high / equal-low lines and mark every order block and gap without ranking them, which clutters the chart and leaves the reader to judge which level matters, or they label structure (swings, breaks of structure) without projecting where liquidity is likely to pull price next. Both stop short of a scored, forward-looking read.
This indicator builds on a different base: cluster swing levels into scored density bands, gate order blocks by structure, and add a model for the next likely draw that is calibrated against realized history. It adds three specific algorithmic elements on top of that base.
1. ATR-Normalized Liquidity Clustering with a Multi-Factor Score. Swing highs and lows are not drawn as individual lines. They are grouped along the price axis by a clustering pass whose merge distance scales with ATR, so equal-ish levels collapse into a single pool and the behavior stays consistent across instruments. Each pool carries a Liquidity Score built multiplicatively from a saturating touch count, an age-decay term, relative volume at the forming pivots, and rejection-wick depth, so a band's brightness reflects how heavy and how fresh the resting liquidity is rather than only how many times the level was touched.
2. Draw on Liquidity Projection. Each unmitigated pool is treated as an attractor. Its pull is the product of its Liquidity Score, an exponential proximity kernel in ATR units, a structural prior that favors pools lying in the trend's continuation direction relative to current price, and a path-clearance term that discounts a pool when other strong pools sit between it and price. The strongest-pull pool is projected as the draw target, and the projection is deliberately muted when confidence is low, so a weak draw never reads like a strong one.
3. Self-Calibrating Empirical Hit-Rate. The draw percentage is not a fixed weight. Each draw is profiled into a bucket defined by Liquidity Score, distance, and structural alignment, and as the chart's history is processed the script records how often pools of that profile were actually reached within a configurable horizon. The displayed figure is the empirical reach frequency of that bucket, smoothed with a weak prior so thin samples are shown as provisional rather than over-read. It calibrates per symbol and timeframe with no fixed accuracy claim attached.
Anatomy of the Display
Liquidity bands are the horizontal zones spanning each pool, colored for buy-side (above) and sell-side (below) liquidity; the brighter a band, the higher its Liquidity Score. Swept pools dim to grey so a hunted level is visually retired.
The draw projection is the arrow from current price to the strongest-pull pool, with a price-side chip and an arrowhead pointing the modelled direction. Its weight scales with the hit-rate: a high-confidence draw is bold, a low-confidence one is thin and faded. The label reads the target level, the hit-rate (shown as a provisional `~NN% (n…)` while its sample is small), and whether the pool is buy-side or sell-side liquidity.
Sweeps mark a stop-hunt of the last significant swing: a wick beyond it that closes back within. The two most recent are labelled; older ones are compact marks so the chart stays clean.
Structure is drawn as Break of Structure and Change of Character lines from a protected-swing state machine; a toggle renders these in plain language (Trend break / Reversal) for readers new to the terminology.
Order blocks are the boxes drawn at the last opposite candle before a Break of Structure, so only structure-originating blocks appear; the optional Fair Value Gap layer marks three-candle imbalances aligned with the break. Both fade once price mitigates them.
The right-side panel lists chart structure, the net liquidity pull and its strength, the draw target with its hit-rate, pool counts per side, and a per-row higher-timeframe bias scan with a strength bar.
Multi-Timeframe Panel
The panel reads three higher timeframes of your choice for structural bias and trend strength, using the same protected-swing engine as the chart. Higher-timeframe values are read with `lookahead=barmerge.lookahead_off` and a one-bar offset, which is the standard non-repainting pattern for higher-timeframe context. A divergence between the chart's structure row and the liquidity pull is informative rather than contradictory: structure up while the draw points down with a high hit-rate, for example, frames an expected pullback toward a strong pool below.
Notes on Repainting
Confirmed liquidity pools, sweeps, structure breaks, and order blocks do not repaint. They are built from confirmed pivots (`ta.pivothigh` and `ta.pivotlow` with a right-bars parameter), so once committed they stay anchored.
Pivot detection has an inherent delay equal to the right-bars parameter (default 3 bars). The most recent swing is provisional until that many bars close past it. This is a property of all pivot-based indicators, not specific to this script.
The draw percentage is a learning statistic. It updates as the script accumulates observations over the loaded history. This is not a repaint of historical bars; the same bar can show a different figure when the chart is reloaded with a different amount of history, because more or fewer observations are available.
Mitigation is one-directional. Once an order block or gap is mitigated it stays marked as such.
Multi-timeframe panel data uses `lookahead=barmerge.lookahead_off` with a one-bar offset, the canonical non-repainting pattern for higher-timeframe context.
Alerts are gated by `barstate.isconfirmed` and fire once per closed bar, never intra-bar.
Typical Analysis Workflow
A common analytical workflow may include:
Reading the band map to see where the heaviest resting liquidity sits above and below price, with brighter bands as the higher-quality pools
Reading the draw projection as a hypothesis for where liquidity may pull price next, weighting it by its hit-rate and whether it aligns with structure
Noting sweeps as stop-hunts that often precede a move, and watching whether price reclaims or rejects the swept level
Treating order blocks as origin zones for the move that broke structure, and the panel's higher-timeframe rows as top-down context
Reading a structure-versus-pull divergence as a possible pullback rather than a contradiction, then managing any decision with other forms of analysis and risk management
Configuration
Structure Engine - ATR length, pivot left / right bars, and the swing filter that sets how significant a swing must be. Right Bars also sets the confirmation delay.
Liquidity Pools - lookback, cluster epsilon (how aggressively levels merge), minimum touches, age half-life, and whether volume contributes to the score.
Draw on Liquidity - proximity, structural prior strength, path clearance, the empirical-calibration toggle, and the calibration horizon.
Sweeps & Structure - sweep penetration, show sweeps, show structure, and the plain-language label toggle.
Order Blocks / FVG - show order blocks, show gaps, the order-block scan window, and the maximum number of boxes.
Visuals - colors for buy-side and sell-side liquidity, draw target, and structure, plus a minimum band height so pools read as bands rather than threads.
Multi-Timeframe HUD - show / hide the panel, the three higher timeframes, and panel position.
Markets and Timeframes
The indicator can be applied across multiple markets and timeframes:
Cryptocurrencies
Forex
Stocks and Indices
Commodities
Because the clustering distance, proximity kernel, and score are all ATR-based, the visual behavior stays consistent across instruments and timeframes. The volume component of the Liquidity Score contributes most on instruments with reliable volume (crypto, futures, equities) and falls back gracefully where volume is thin. The empirical hit-rate reads best on charts with enough history for its buckets to fill.
Alerts
Buy-side liquidity swept - fires when a buy-side pool's level is hunted
Sell-side liquidity swept - fires when a sell-side pool's level is hunted
Bullish Break of Structure - fires on a confirmed upside structure break
Bearish Break of Structure - fires on a confirmed downside structure break
All timeframes bullish - fires when every higher-timeframe row is bullish
All timeframes bearish - fires when every higher-timeframe row is bearish
All alerts evaluate on confirmed bars to avoid intra-bar oscillation. Indicator

Key Levels + LS + ChoCh + Bias - [XAUUSDGODD]A minimalist SMC / liquidity toolkit that maps the key levels price reacts to, flags when liquidity is swept, tracks the resulting change of character, and gives you a higher-timeframe directional bias — all on one clean overlay. Built with gold (XAUUSD) in mind, but works on any symbol.
**What it plots**
- **Multi-timeframe key levels (1H / 4H / 1D):** highs and lows drawn as horizontal lines that follow price to the current bar and don't project into empty space. Each level is labelled with its timeframe and its liquidity side — BSL (buy-side, above highs) or SSL (sell-side, below lows).
- **Session highs and lows (Asia / London / New York):** fully customizable session hours and timezone (default UTC+2). Choose between absolute session high/low or a swing-based definition.
- **Liquidity Sweep (LS):** a level is marked as swept when price takes its liquidity — by wick, by a close-beyond-then-close-back sequence, or either (your choice). Swept levels fade out or are removed to keep the chart clean.
- **Change of Character (ChoCh):** after a sweep, the structure level that needs to break is drawn dotted while pending and turns solid the moment a close actually breaks it. It auto-invalidates if price closes back beyond the sweep, or expires after a set number of bars.
- **Daily bias panel:** a compact corner table showing 4H bias, 1H bias, and the combined daily bias, derived from market-structure breaks (BOS) on each timeframe. Flags ·mix when the two timeframes disagree.
**How the levels are defined**
A high is the higher wick of a bullish-then-bearish candle pair; a low is the lower wick of a bearish-then-bullish pair. Higher-timeframe levels are read from closed candles (non-repainting). When several levels stack at the same price, their labels are automatically merged into one multi-line label (tolerance adjustable via ATR) so text never overlaps.
**Settings**
- **Key levels:** toggle 1H / 4H / 1D, number of levels per timeframe, line style.
- **Sessions:** enable Asia / London / NY, set hours and timezone, line style and transparency, high-low or swing mode.
- **Setup:** show LS / ChoCh, sweep mode (Wick / Close / Both), double-close window, ChoCh window, invalidation on/off.
- **Swept levels:** fade or delete, swept color.
- **Colors & style:** BSL / SSL and setup colors, line width, label size, label offset, label merging and tolerance.
- **Daily bias:** show panel, panel position, neutral color.
**Suggested use**
Use the key levels and session liquidity as your map of where price is likely to react. Wait for an LS into one of those pools, let the ChoCh confirm the shift, and trade in line with the daily bias for confluence. The setup logic runs on whatever timeframe the chart is set to.
**Notes**
Real-time LS / ChoCh signals evaluate on the live candle and settle on close — this is inherent to live trading, not a bug. The bias starts as Neutral until the first confirmed break of structure on each timeframe. This is an analysis tool, not financial advice; it draws no entries, stop losses or take profits. Indicator

Sweep Reclaim Entry Engine [trade_w_samet]🎯 Sweep Reclaim Entry Engine
Sweep Reclaim Entry Engine is a structured liquidity-sweep and reclaim analysis indicator designed to help traders study confirmed swing levels, controlled liquidity penetrations, reclaim strength, setup quality, directional alignment, and visual risk/reward models directly on the price chart.
This script focuses on one main concept:
Confirmed swing sweep and reclaim-based entry visualization.
It is not designed to mark every wick beyond every nearby high or low.
It is not designed to treat every penetration as a valid liquidity sweep.
It is not designed to create constant buy/sell labels.
Instead, the goal of Sweep Reclaim Entry Engine is to confirm structural swing levels, monitor their lifecycle, detect controlled penetrations beyond those levels, validate directional reclaims, apply configurable quality and market filters, and visualize accepted setups using one Entry level, one protective Stop Loss level, and one configurable risk/reward target.
The indicator includes:
• Confirmed swing-high and swing-low detection
• Reactive, Balanced, Structural, and Custom swing modes
• ATR-normalized level merging and proximity logic
• Fresh, Armed, Swept, Reclaimed, and Consumed level states
• Wick Only, Wick or Body, and Body Required sweep modes
• Minimum and maximum ATR-normalized sweep-depth filters
• First-penetration-only logic
• Multi-level sweep selection
• Dual-side sweep protection
• Same Candle, Fast, Flexible, and Custom reclaim windows
• Loose, Balanced, Strict, and Custom reclaim-strength modes
• Reclaim close-buffer, close-location, body-strength, and wick-rejection checks
• A transparent 0–100 setup-quality score
• A+, A, and B setup grades
• Loose, Balanced, Strict, and Custom quality-filter modes
• Relative-volume quality context
• Highest Quality and Nearest Level candidate-selection modes
• Direction, cooldown, cluster, duplicate-bar, and opposite-conflict controls
• Chart EMA, confirmed higher-timeframe EMA, and Combined EMA bias
• Optional volatility and market-efficiency filtering
• Entry ATR and Sweep Extreme stop-loss models
• A configurable 0.25R to 15R target
• One-active-trade-at-a-time logic
• Stop First and Target First same-bar assumptions
• Active TP / SL boxes and Entry / TP / SL lines
• SL-specific visual cleanup
• Important-only sweep-label filtering
• Full, Clean, Minimal, and Mobile chart profiles
• Full, Compact, Trade Only, and Off dashboard modes
• Adjustable marker, label, result, and dashboard sizes
• Crimson, Ice Blue, Monochrome, and fully custom colors
• Static PulseWire alert conditions
• Optional dynamic alert() messages
• Compact bottom-right dashboard
• Confirmed-close permanent signals
• Confirmed higher-timeframe data handling
The purpose of this script is to help users visually study where a confirmed swing-level sweep is followed by a qualified directional reclaim.
It should be treated as a chart-analysis and educational decision-support tool.
It is not financial advice.
It is not an automated trading system.
It does not guarantee profitable trades.
It does not execute broker orders.
It does not replace personal analysis, risk management, or trade validation.
━━━━━━━━━━━━━━━━━━━━━━
📌 OVERVIEW
━━━━━━━━━━━━━━━━━━━━━━
At a high level, Sweep Reclaim Entry Engine does the following:
• Detects confirmed bullish and bearish swing pivots.
• Stores accepted swing highs and swing lows in separate internal level memories.
• Prevents near-duplicate levels using ATR-based merge tolerance.
• Tracks whether each level is Fresh, Armed, Swept, Reclaimed, or Consumed.
• Arms a level when price moves within the selected ATR distance.
• Detects a new penetration beyond an eligible swing level.
• Measures penetration depth relative to ATR.
• Classifies the sweep as wick-based or body-based.
• Applies minimum depth, maximum depth, first-interaction, multi-level, and dual-side rules.
• Moves the accepted level into the Swept state.
• Waits for price to reclaim the level within the selected reclaim window.
• Checks reclaim close buffer, close location, candle body strength, candle direction, and wick rejection.
• Calculates a 0–100 setup-quality score.
• Assigns an internal A+, A, or B grade.
• Applies the selected minimum-quality requirement.
• Compares multiple eligible reclaim candidates.
• Applies direction, trend-bias, market, cooldown, clustering, duplicate, and conflict rules.
• Confirms final BUY and SELL reclaim signals only after candle close.
• Projects Entry, Stop Loss, and one configurable take-profit target.
• Maintains one active visual trade model at a time.
• Tracks TP and SL events after the entry candle.
• Applies the selected same-candle TP / SL assumption.
• Preserves successful models when historical display is enabled.
• Deletes failed-model boxes, lines, and original signal labels after SL.
• Leaves only a small CLOSED SL HIT label for failed models.
• Displays engine, bias, quality, signal, and trade information in the bottom-right dashboard.
• Provides sweep, signal, grade, trade-open, TP, and SL alerts.
The script is intentionally built as a structured sequence.
It does not include machine-learning prediction.
It does not claim that every sweep will reverse.
It does not treat the quality score as a probability.
It provides a transparent way to study confirmed swing sweeps, directional reclaims, and their visual trade lifecycle.
━━━━━━━━━━━━━━━━━━━━━━
🧠 CORE IDEA
━━━━━━━━━━━━━━━━━━━━━━
The core idea behind Sweep Reclaim Entry Engine is based on the difference between a liquidity penetration and a confirmed reclaim.
A sweep occurs when price trades beyond a previously confirmed swing high or swing low.
A reclaim occurs when price returns through that level and closes with enough directional strength to satisfy the active rules.
The engine does not treat the sweep itself as an entry.
Instead, it separates the process into distinct stages:
Confirmed swing
→ managed level
→ level approach
→ valid penetration
→ sweep classification
→ reclaim window
→ reclaim confirmation
→ quality scoring
→ final filtering
→ confirmed entry model
For a bullish setup, the engine studies a penetration below a confirmed swing low and a later close back above that level.
For a bearish setup, the engine studies a penetration above a confirmed swing high and a later close back below that level.
The reclaim can occur on the same candle or within a configurable number of bars.
The final setup can then be evaluated using:
• sweep depth
• reclaim close quality
• wick rejection
• candle-body strength
• level freshness
• relative volume
• displacement
• market condition
• level cleanliness
• chart EMA alignment
• confirmed higher-timeframe EMA alignment
• cooldown and cluster rules
• opposite-signal conflict handling
The goal is not to maximize signal quantity.
The goal is to create an understandable process that explains how a stored swing level becomes a sweep candidate, how that sweep becomes a reclaim candidate, and how the final entry model is accepted or rejected.
━━━━━━━━━━━━━━━━━━━━━━
🧩 WHY THIS SCRIPT IS NOT A SIMPLE BUY/SELL INDICATOR
━━━━━━━━━━━━━━━━━━━━━━
Sweep Reclaim Entry Engine is not intended to be used as a blind buy/sell system.
The script is structured as a visual review workflow:
A pivot becomes confirmed
→ the swing level is stored
→ duplicate levels are filtered
→ price approaches the level
→ the level becomes Armed
→ price creates a new penetration
→ penetration type and depth are validated
→ the level becomes Swept
→ the reclaim window opens
→ reclaim strength is evaluated
→ a quality score is calculated
→ the setup receives a grade
→ eligible candidates are compared
→ execution filters are checked
→ the signal must remain valid at candle close
→ Entry, SL, and TP are projected
→ the active model is monitored
→ the model closes at TP or SL
→ the visual result is archived or cleaned
Each stage serves a specific purpose.
The confirmed-pivot engine defines the structural reference.
The level-memory engine prevents the script from treating all historical highs and lows as permanently active.
The Armed state separates a distant level from a level that price is actively approaching.
The sweep engine distinguishes a controlled penetration from a deep breakout.
The reclaim engine defines what qualifies as a directional return through the level.
The quality engine combines several independent setup characteristics.
The execution engine prevents clustered, duplicate, conflicting, or bias-opposed entries.
The trade model standardizes the visual Entry, risk, and reward references.
The dashboard explains the engine state and active model.
This makes the script a structured sweep-reclaim analysis tool, not a guaranteed signal generator.
━━━━━━━━━━━━━━━━━━━━━━
⚙️ HOW THE SCRIPT WORKS
━━━━━━━━━━━━━━━━━━━━━━
The script operates through several connected systems.
First, it confirms swing highs and swing lows using the selected pivot sensitivity.
Reactive mode uses shorter pivot lengths.
Balanced mode uses medium pivot lengths.
Structural mode uses wider pivot lengths and is the default.
Custom mode allows manual left-side and right-side pivot lengths.
float confirmedSwingHigh = ta.pivothigh(high, swingLeft, swingRight)
float confirmedSwingLow = ta.pivotlow(low, swingLeft, swingRight)
int confirmedHighBar = bar_index - swingRight
int confirmedLowBar = bar_index - swingRight
After confirmation, accepted swing levels are stored in separate high-side and low-side arrays.
Each level stores contextual information including:
• level price
• original pivot bar
• lifecycle state
• interaction count
• sweep bar
• sweep depth
• sweep extreme
• sweep type
• reclaim bar
• visual line reference
When price approaches a stored level, the level can move from Fresh to Armed.
When price creates a new penetration beyond the level, the engine checks:
• penetration mode
• minimum ATR depth
• maximum ATR depth
• first-attempt permission
• multi-level selection
• dual-side sweep protection
f_isValidHighSweep(float levelPrice, int attempts) =>
float depthATR = (high - levelPrice) / safeATR
int kind = f_highSweepKind(levelPrice)
bool depthValid = depthATR >= minSweepDepthATR and depthATR <= effectiveMaxSweepDepthATR
bool attemptValid = not firstInteractionOnly or attempts == 0
bool valid = f_isNewHighPenetration(levelPrice) and depthValid and attemptValid and f_modeAcceptsKind(kind)
valid
f_isValidLowSweep(float levelPrice, int attempts) =>
float depthATR = (levelPrice - low) / safeATR
int kind = f_lowSweepKind(levelPrice)
bool depthValid = depthATR >= minSweepDepthATR and depthATR <= effectiveMaxSweepDepthATR
bool attemptValid = not firstInteractionOnly or attempts == 0
bool valid = f_isNewLowPenetration(levelPrice) and depthValid and attemptValid and f_modeAcceptsKind(kind)
valid
A valid sweep moves the level into the Swept state.
The reclaim engine then waits for price to close back through the level within the selected window.
The reclaim must pass every enabled strength requirement.
The accepted candidate receives a quality score and grade.
If more than one candidate qualifies, the active Candidate Selection mode chooses the final candidate.
The final signal must also pass direction, bias, market, cooldown, cluster, duplicate-bar, and conflict rules.
Only after the bar closes with all conditions still valid can the permanent BUY or SELL reclaim signal and visual trade model appear.
━━━━━━━━━━━━━━━━━━━━━━
🟢 BULLISH SWEEP RECLAIM LOGIC
━━━━━━━━━━━━━━━━━━━━━━
A bullish sweep-reclaim setup begins with a confirmed swing low.
The swing low must be stored and remain eligible.
Price can then move close enough to place the level in the Armed state.
A bullish sweep is created when price penetrates below the swing-low level and the penetration satisfies the active sweep rules.
The engine may require:
• a wick-only penetration
• a wick or body penetration
• body participation beyond the level
• a minimum ATR-normalized depth
• a maximum ATR-normalized depth
• the first valid penetration attempt
• selection as the nearest valid level
• no simultaneous high-side sweep
After the low-side sweep, the bullish reclaim must occur inside the selected reclaim window.
The reclaim can require:
• a close above the swept level
• an ATR-based close buffer above the level
• a high close location inside the candle
• minimum body strength relative to ATR
• a bullish candle body when enabled
• minimum lower-wick rejection for same-candle reclaims
• a final score above the active quality threshold
• permission from the selected signal direction
• bullish chart and/or HTF EMA alignment
• permission from the active market-condition filter
• cooldown and cluster permission
• no stronger bearish conflict
f_isValidLowReclaim(int index) =>
bool valid = false
if index >= 0 and index < array.size(lowPrices) and barstate.isconfirmed
int state = array.get(lowStates, index)
int sweepBar = array.get(lowSweepBars, index)
if state == STATE_SWEPT and sweepBar >= 0
float levelPrice = array.get(lowPrices, index)
int barsAfterSweep = bar_index - sweepBar
bool windowPass = barsAfterSweep >= 0 and barsAfterSweep <= reclaimWindowBars
bool closePass = close >= levelPrice + safeATR * reclaimCloseBufferATR
bool locationPass = f_bullCloseLocation() >= reclaimCloseLocationThreshold
bool bodyPass = f_bodyATR() >= reclaimBodyStrengthATR
bool directionPass = not requireDirectionalCandle or close > open
bool sameBar = barsAfterSweep == 0
bool wickPass = not requireSameCandleWick or not sameBar or f_lowerWickRatio() >= reclaimWickThreshold
valid := windowPass and closePass and locationPass and bodyPass and directionPass and wickPass
valid
When every enabled rule passes at candle close, the script displays a BUY RECLAIM label.
If the visual trade model is enabled and no trade is active, the setup creates:
• Entry at the confirmed signal-bar close
• Stop Loss below entry or below the sweep extreme
• TP above entry
• blue/cyan reward box
• red risk box
• thick white Entry line
• blue TP line
• red SL line
This does not mean price must continue upward.
It means the configured bullish sweep-reclaim conditions were confirmed at the close of that candle.
━━━━━━━━━━━━━━━━━━━━━━
🔴 BEARISH SWEEP RECLAIM LOGIC
━━━━━━━━━━━━━━━━━━━━━━
A bearish sweep-reclaim setup begins with a confirmed swing high.
The swing high must be stored and remain eligible.
Price can then move close enough to place the level in the Armed state.
A bearish sweep is created when price penetrates above the swing-high level and the penetration satisfies the active sweep rules.
The engine may require:
• a wick-only penetration
• a wick or body penetration
• body participation beyond the level
• a minimum ATR-normalized depth
• a maximum ATR-normalized depth
• the first valid penetration attempt
• selection as the nearest valid level
• no simultaneous low-side sweep
After the high-side sweep, the bearish reclaim must occur inside the selected reclaim window.
The reclaim can require:
• a close below the swept level
• an ATR-based close buffer below the level
• a low close location inside the candle
• minimum body strength relative to ATR
• a bearish candle body when enabled
• minimum upper-wick rejection for same-candle reclaims
• a final score above the active quality threshold
• permission from the selected signal direction
• bearish chart and/or HTF EMA alignment
• permission from the active market-condition filter
• cooldown and cluster permission
• no stronger bullish conflict
When every enabled rule passes at candle close, the script displays a SELL RECLAIM label.
If the visual trade model is enabled and no trade is active, the setup creates:
• Entry at the confirmed signal-bar close
• Stop Loss above entry or above the sweep extreme
• TP below entry
• blue/cyan reward box
• red risk box
• thick white Entry line
• blue TP line
• red SL line
This does not mean price must continue downward.
It means the configured bearish sweep-reclaim conditions were confirmed at the close of that candle.
━━━━━━━━━━━━━━━━━━━━━━
💎 SWEEP RECLAIM QUALITY FILTER SYSTEM
━━━━━━━━━━━━━━━━━━━━━━
The script includes a multi-component quality system to reduce low-context reclaim signals.
This is important because not every sweep has the same structural meaning and not every reclaim candle has the same directional strength.
The quality engine evaluates eight components:
Sweep Depth — maximum 15 points
Measures where the penetration sits inside the active minimum-to-maximum sweep range.
The score favors a controlled sweep depth rather than automatically rewarding the deepest penetration.
Reclaim Close — maximum 20 points
Measures the directional location of the candle close.
A bullish setup receives more points when the reclaim closes near the top of the candle.
A bearish setup receives more points when the reclaim closes near the bottom.
Wick Rejection — maximum 15 points
Measures the directional rejection wick.
For multi-bar reclaims, the engine can also consider the stored sweep type and current reclaim structure.
Level Freshness — maximum 10 points
Newer levels generally receive more freshness points than levels that have remained active for a long time.
Relative Volume — maximum 10 points
Compares current volume with the selected baseline length.
When useful volume is not available, the engine avoids treating the setup as automatically invalid.
Displacement — maximum 15 points
Combines candle-body strength and the distance reclaimed through the level.
Market Condition — maximum 10 points
Uses candle range and ATR-regime information.
Level Cleanliness — maximum 5 points
Rewards levels with fewer prior interaction attempts.
The total is rounded and limited to 0–100.
float qualityScore = math.min(100.0, math.max(0.0, math.round(
sweepScore + closeScore + wickScore + freshnessScore +
volumeScore + displacementScore + marketScore + cleanlinessScore
)))
The quality score is not a win probability.
It is not a verified accuracy percentage.
It is an internal measurement of how closely the completed setup matches the selected structural rules.
━━━━━━━━━━━━━━━━━━━━━━
📏 SWEEP / ATR FILTER
━━━━━━━━━━━━━━━━━━━━━━
The sweep-depth filter measures the penetration beyond a swing level relative to ATR.
For a high-side sweep:
Sweep Depth = (High − Swing High) / ATR.
For a low-side sweep:
Sweep Depth = (Swing Low − Low) / ATR.
Minimum Sweep Depth rejects penetrations that may be too small to represent a meaningful liquidity event.
Maximum Sweep Depth rejects penetrations that may be too deep to represent a controlled sweep and may instead behave more like a breakout.
The default values are:
Minimum Sweep Depth = 0.05 ATR.
Maximum Sweep Depth = 0.80 ATR.
ATR normalization allows the threshold to adapt to changing volatility.
A 0.20 ATR sweep represents a relative move rather than a fixed number of points.
This helps the engine operate across different price scales.
However, ATR normalization does not make one configuration universally suitable.
A symbol with session gaps, irregular volume, or unusual volatility can still behave differently from another market.
A deeper sweep is not automatically a better setup.
Sweep depth is only one component of the complete reclaim process.
━━━━━━━━━━━━━━━━━━━━━━
🕯️ DISPLACEMENT QUALITY FILTER
━━━━━━━━━━━━━━━━━━━━━━
The displacement component evaluates whether the reclaim candle moves with enough directional force.
The engine considers:
• candle-body size relative to ATR
• distance closed beyond the reclaimed level
• bullish or bearish directional recovery
For bullish setups, stronger displacement generally means:
• a larger bullish body
• a close further above the reclaimed swing low
For bearish setups, stronger displacement generally means:
• a larger bearish body
• a close further below the reclaimed swing high
Reclaim Strength Mode can also impose a minimum body-size requirement before the setup reaches the quality-scoring stage.
Loose mode allows smaller directional bodies.
Balanced mode uses moderate requirements.
Strict mode requires stronger completed-candle behavior.
Custom mode exposes the manual threshold.
Displacement is not used as a prediction.
It is used to measure whether the completed reclaim candle demonstrates the selected degree of directional response.
━━━━━━━━━━━━━━━━━━━━━━
📊 REACTION STRENGTH FILTER
━━━━━━━━━━━━━━━━━━━━━━
The reaction-strength layer evaluates the candle that confirms the reclaim.
The active rules can include:
• close through the swept level
• ATR-based close buffer
• directional close location
• body strength relative to ATR
• bullish or bearish candle direction
• same-candle rejection wick
Reclaim Strength Mode provides:
Loose
Uses lower close-buffer, close-location, body-strength, and wick-rejection requirements.
Balanced
Uses moderate thresholds.
Strict
Uses the strongest built-in thresholds and is the default.
Custom
Uses the manual values selected by the user.
Strict mode applies:
• 0.05 ATR reclaim close buffer
• 0.70 directional close-location threshold
• 0.15 ATR minimum body strength
• 0.28 same-candle wick-rejection ratio
Require Directional Candle Body can additionally require:
• close above open for bullish reclaims
• close below open for bearish reclaims
Require Same-Candle Wick Rejection applies the wick requirement when the sweep and reclaim occur on the same candle.
The reaction-strength system is designed to distinguish a simple touch from a stronger completed directional response.
━━━━━━━━━━━━━━━━━━━━━━
🧼 CONFIRMED RECLAIM FILTER
━━━━━━━━━━━━━━━━━━━━━━
The reclaim layer requires the setup to remain valid at candle close.
Available reclaim windows include:
Same Candle
The penetration and reclaim must complete on the same candle.
Fast
The reclaim can occur on the sweep candle or the next candle.
Flexible
The reclaim can occur within three bars and is the default.
Custom
The user selects the maximum number of bars.
The engine stores the sweep bar and compares the current bar with the allowed reclaim window.
The sweep state timeout is automatically prevented from becoming shorter than the active reclaim window.
A reclaimed setup can also be blocked by:
• insufficient close buffer
• weak close location
• weak candle body
• missing directional body
• missing same-candle wick rejection
• low quality score
• direction restriction
• chart EMA misalignment
• higher-timeframe EMA misalignment
• market-condition failure
• active-trade restriction
• cooldown
• same-direction clustering
• duplicate-bar protection
• opposite-direction conflict
Final permanent BUY and SELL signals require confirmed-bar logic.
This means an unfinished realtime candle can temporarily trade beyond a level, but it does not become a permanent reclaim signal unless the conditions remain valid when the bar closes.
━━━━━━━━━━━━━━━━━━━━━━
🎯 ENTRY MODEL
━━━━━━━━━━━━━━━━━━━━━━
When a final BUY or SELL reclaim signal passes every enabled condition, the script can create a visual entry model.
The Entry reference is the close of the confirmed signal candle.
The engine stores:
• trade direction
• entry bar
• entry price
• stop price
• risk distance
• selected RR
• target price
• setup quality
• setup grade
The trade model opens only when:
• Enable Trade Model is active
• no visual trade is already active
• the final reclaim signal is confirmed
• the calculated risk distance is larger than the symbol’s minimum tick
• same-bar reopening is permitted when the previous model closed on the same candle
if enableTradeModel and not tradeActive and (allowSignalOnExitBar or not tradeClosedThisBar)
if buyReclaimSignal
float sweepExtreme = array.get(lowSweepExtremes, selectedLowReclaimIndex)
float candidateStop = stopLossMode == "Entry ATR Multiplier" ?
close - safeATR * stopATRMultiplier :
sweepExtreme - safeATR * stopBufferATR
float candidateRisk = close - candidateStop
The entry model is a visual analysis reference.
It is not a broker market order.
It does not include spread, slippage, commission, latency, or partial fills.
━━━━━━━━━━━━━━━━━━━━━━
🛑 ATR STOP-LOSS MODEL
━━━━━━━━━━━━━━━━━━━━━━
The script includes two stop-placement models.
Entry ATR Multiplier
For BUY setups:
Stop = Entry − ATR × multiplier.
For SELL setups:
Stop = Entry + ATR × multiplier.
This is the default mode.
The default Entry ATR Stop Multiplier is 2.00 ATR.
The multiplier can be adjusted from 0.10 to 15.00.
Sweep Extreme + ATR Buffer
For BUY setups:
Stop = stored low-side sweep extreme − ATR buffer.
For SELL setups:
Stop = stored high-side sweep extreme + ATR buffer.
The default Sweep-Extreme Buffer is 0.10 ATR.
float candidateStop = stopLossMode == "Entry ATR Multiplier" ?
close - safeATR * stopATRMultiplier :
sweepExtreme - safeATR * stopBufferATR
The selected stop determines the visual risk distance.
That risk distance also determines the take-profit distance.
The displayed stop is a planning reference only.
It does not place or manage a broker stop order.
━━━━━━━━━━━━━━━━━━━━━━
🎯 TAKE-PROFIT RR MODEL
━━━━━━━━━━━━━━━━━━━━━━
The script uses one configurable take-profit target.
The target is calculated from the distance between Entry and Stop Loss.
For BUY models:
TP = Entry + Risk × RR.
For SELL models:
TP = Entry − Risk × RR.
The Risk / Reward Target can be adjusted from:
0.25R to 15.00R.
The default is 2.00R.
activeTradeRisk := candidateRisk
activeTradeRR := tradeRiskReward
activeTradeTarget := close + candidateRisk * tradeRiskReward
The displayed RR controls the geometric distance of the projected target.
It does not represent a performance claim.
It does not guarantee that price will reach the target.
Changing the stop model or stop multiplier changes the target distance because both levels are based on the same initial risk.
━━━━━━━━━━━━━━━━━━━━━━
📦 ACTIVE TP / SL BOX SYSTEM
━━━━━━━━━━━━━━━━━━━━━━
When a confirmed reclaim model opens, the script can draw:
• blue/cyan TP box
• red SL box
• thick white Entry line
• blue TP line
• red SL line
• BUY RECLAIM or SELL RECLAIM label
The active boxes and lines extend to the right as new candles appear.
The Entry line is intentionally pure white and visually thicker than the TP and SL references.
When TP is reached:
• the trade model closes
• active boxes and lines stop at the closing bar
• the TP result label appears
• completed visuals can remain when Show Historical Trades is enabled
• completed visuals can be faded using Completed Trade Transparency
When SL is reached:
• the TP box is deleted
• the SL box is deleted
• the Entry line is deleted
• the TP line is deleted
• the SL line is deleted
• the original BUY or SELL signal label associated with that trade is deleted
• only a small CLOSED SL HIT label remains
This SL-specific cleanup keeps failed models visually concise.
The active trade model is educational and bar-based.
It does not simulate real broker execution.
━━━━━━━━━━━━━━━━━━━━━━
🚦 ONE ACTIVE TRADE AT A TIME
━━━━━━━━━━━━━━━━━━━━━━
The script includes one-active-trade-at-a-time logic.
If a visual trade model is active, the engine does not open another trade model until the current model closes.
Block Signals During Active Trade can also prevent new final signal labels from being accepted while the active model is open.
Allow New Signal on Exit Bar controls whether a new model can open on the same candle that closes the current model.
The default is disabled.
This design separates:
• market-level calculation
• sweep and reclaim detection
• permission to create a new trade model
The engine can continue updating structural levels and market context while a model is active.
However, the one-active-model rule prevents overlapping TP / SL boxes and conflicting lifecycle states.
This is a visual-management rule.
It is not a restriction on the user’s personal trading activity.
━━━━━━━━━━━━━━━━━━━━━━
⚠️ SAME-CANDLE TP / SL HANDLING
━━━━━━━━━━━━━━━━━━━━━━
The script begins checking TP and SL after the entry candle.
If both TP and SL are touched on the same later candle, standard OHLC data does not reveal the actual intrabar sequence.
The script therefore provides two selectable assumptions:
Stop First
The stop is processed before the target.
This is the default and more conservative assumption.
Target First
The target is processed before the stop.
This is the more optimistic assumption.
Neither option reproduces exact tick-level broker execution.
The model does not include:
• bid/ask spread
• slippage
• order latency
• partial fills
• queue priority
• execution venue rules
• intrabar tick order
Same-candle handling is a modeling choice required by the limits of standard bar data.
━━━━━━━━━━━━━━━━━━━━━━
🏷️ SWEEP RECLAIM LABELS
━━━━━━━━━━━━━━━━━━━━━━
The script uses separate labels for sweep events, reclaim signals, and trade results.
Sweep labels can display:
SWEEP HIGH
or:
SWEEP LOW
The Sweep Label Filter can show:
Important Only
Only sweeps that meet the active importance threshold receive visible labels.
All Valid
Every accepted sweep can receive a visible label.
The default Minimum Sweep Importance is 65.
BUY and SELL reclaim labels can use three display styles:
Full
Example:
▲ A+ BUY RECLAIM ▲
QUALITY • 87/100
or:
▼ A+ SELL RECLAIM ▼
QUALITY • 84/100
Compact
Displays a shorter direction, grade, and score format.
Icon
Displays a minimal directional icon and optional score.
Show Grade on Signal Labels controls A+, A, or B display.
Show Score on Signal Labels controls the 0–100 score display.
All dynamic label text uses bold and italic formatting.
Independent size controls are available for:
• sweep labels
• BUY / SELL signal labels
• TP / SL result labels
• confirmed pivot triangle markers
━━━━━━━━━━━━━━━━━━━━━━
📍 SWING LEVEL DISPLAY MODES
━━━━━━━━━━━━━━━━━━━━━━
The indicator includes several level-display modes.
All Active
Displays eligible Fresh, Armed, Swept, and Reclaimed swing levels according to the active color and line-style rules.
Armed + Events
Focuses on Armed, Swept, and Reclaimed levels.
Events Only
Shows levels primarily when a sweep or reclaim event has occurred.
Hidden
Keeps the level engine active while removing swing-level lines from the chart.
Level Line Style provides:
Adaptive
Changes the line appearance according to level state.
Solid
Uses solid lines.
Dashed
Uses dashed lines.
Dotted
Uses dotted lines.
Show Swing-High Levels and Show Swing-Low Levels can independently control each side.
Fade Older Levels can reduce the opacity of older stored levels.
Level Width controls line thickness.
The display mode affects chart presentation only.
It does not change the underlying sweep and reclaim calculations.
━━━━━━━━━━━━━━━━━━━━━━
🧹 LEVEL INVALIDATION
━━━━━━━━━━━━━━━━━━━━━━
Stored levels do not remain eligible forever.
A level can be removed or retired because:
• it exceeds Maximum Level Age
• a confirmed breakout exceeds the allowed invalidation distance
• its sweep state exceeds the active timeout
• it completes its reclaimed hold period
• its first penetration is rejected while First Penetration Only is active
• it is consumed after failing a final execution filter
• the maximum active-level capacity removes an older level
Breakout Invalidation uses ATR-normalized distance.
This helps distinguish a controlled sweep from a confirmed close that travels too far beyond an unswept level.
Sweep State Timeout limits how long a Swept level can wait for reclaim.
Reclaimed Level Hold Bars controls how long the line remains highlighted after a successful reclaim.
Consume Filtered Reclaims determines whether a reclaim candidate rejected by direction, bias, market, cooldown, cluster, or conflict rules is permanently retired.
Removing stale or invalid levels helps reduce repeated signals from outdated price references.
━━━━━━━━━━━━━━━━━━━━━━
📟 DASHBOARD
━━━━━━━━━━━━━━━━━━━━━━
The script includes a dashboard positioned in the bottom-right corner.
Dashboard modes include:
Full
Displays the broadest engine diagnostics.
Compact
Shows a reduced selection of important engine and trade information.
Trade Only
Focuses on the active trade lifecycle.
Off
Hides the dashboard.
The Full dashboard can display:
• active swing and reclaim configuration
• quality-filter mode
• Fresh, Armed, Swept, and Reclaimed level counts
• last sweep side
• last sweep type
• sweep depth
• last reclaim signal
• reclaim delay
• close location
• candle-body strength
• setup grade
• setup-quality score
• quality-component information
• selected candidate mode
• signal direction
• cooldown state
• trend-bias state
• market state
• active level
• latest block reason
• trade state
• Entry
• Stop
• Target
• risk distance
• selected RR
• total visual models
• wins and losses
• internal net R
• last model result
• current and best internal streaks
The dashboard is not PulseWire Strategy Tester.
Its trade counters are based on the indicator’s own educational bar-based model.
They do not include spread, commission, slippage, latency, or real broker execution.
━━━━━━━━━━━━━━━━━━━━━━
🚨 ALERT SYSTEM
━━━━━━━━━━━━━━━━━━━━━━
Sweep Reclaim Entry Engine includes static PulseWire alert conditions for:
• Swing High Swept
• Swing Low Swept
• Any Swing Sweep
• BUY Reclaim Confirmed
• SELL Reclaim Confirmed
• Any Reclaim Signal
• A+ Sweep Reclaim
• A Sweep Reclaim
• B Sweep Reclaim
• Sweep Reclaim Trade Opened
• Sweep Reclaim TP Hit
• Sweep Reclaim SL Hit
The script also includes optional dynamic alert() messages.
Dynamic messages can include:
• direction
• symbol
• timeframe
• grade
• quality score
• reclaimed level
• signal close
• Entry
• Stop Loss
• TP
• RR
• stop mode
• final model result
Dynamic Signal Alerts: A+ Only can restrict dynamic final-signal alerts to A+ setups.
Alert filtering affects alert delivery only.
It does not change chart calculations.
Alerts are monitoring tools.
They do not execute trades or place broker orders.
━━━━━━━━━━━━━━━━━━━━━━
🔔 HOW TO USE ALERTS
━━━━━━━━━━━━━━━━━━━━━━
A practical alert workflow:
1. Add Sweep Reclaim Entry Engine to the chart.
2. Select the desired swing, sweep, reclaim, quality, bias, and trade-model settings.
3. Open PulseWire’s Create Alert window.
4. Select the indicator as the alert condition.
5. Choose the required static condition.
6. Use BUY Reclaim Confirmed or SELL Reclaim Confirmed for direction-specific signals.
7. Use Any Reclaim Signal for either direction.
8. Use A+, A, or B conditions when grade-specific monitoring is needed.
9. Enable Dynamic alert() Messages when detailed runtime messages are preferred.
10. Select Any alert() function call for dynamic messages.
11. Choose an alert frequency suitable for confirmed-candle monitoring.
12. Test the alert before depending on it.
13. Confirm every event with personal analysis and risk management.
Alert delivery can depend on:
• PulseWire servers
• the user’s alert settings
• symbol data availability
• chart timeframe
• realtime feed status
• webhook destination availability
The indicator cannot guarantee alert delivery or external execution.
━━━━━━━━━━━━━━━━━━━━━━
🧪 HOW TO USE THE INDICATOR
━━━━━━━━━━━━━━━━━━━━━━
A practical workflow:
1. Add Sweep Reclaim Entry Engine to a standard candlestick chart.
2. Begin with the default Structural swing mode.
3. Keep Reclaim Strength Mode on Strict while learning the engine.
4. Keep Quality Filter Mode on Strict when a selective default is preferred.
5. Confirm that the selected higher timeframe is above the chart timeframe.
6. Observe the stored swing-high and swing-low levels.
7. Watch for a level to move from Fresh to Armed.
8. Review whether the penetration appears controlled rather than excessively deep.
9. Wait for the reclaim candle to close.
10. Review the BUY or SELL label, grade, and quality score.
11. Check the bottom-right dashboard for bias, market state, block reason, and active trade.
12. Treat Entry, SL, and TP as visual references only.
13. Compare the setup with personal structure, liquidity, session, volatility, and risk rules.
14. Use alerts for monitoring rather than blind execution.
15. Test the exact symbol, timeframe, session, and settings personally used.
16. Review historical TP models and concise CLOSED SL HIT labels to understand the visual lifecycle.
The indicator is best used as a structured sweep-reclaim review tool.
It should not be used as an automatic decision-maker.
━━━━━━━━━━━━━━━━━━━━━━
⚙️ SETTINGS REFERENCE
━━━━━━━━━━━━━━━━━━━━━━
⚙️ Core Swing Engine
Swing Mode
Selects Reactive, Balanced, Structural, or Custom.
Custom Left Bars
Controls left-side pivot sensitivity in Custom mode.
Custom Right Bars
Controls right-side pivot confirmation in Custom mode.
ATR Length
Controls ATR normalization throughout the engine.
━━━━━━━━━━━━━━━━━━━━━━
📍 Level Management
Maximum Active Levels Per Side
Limits stored swing highs and lows separately.
Maximum Level Age
Removes old inactive levels.
Level Merge Tolerance — ATR
Prevents near-duplicate swing levels.
Armed Distance — ATR
Controls how close price must move before a Fresh level becomes Armed.
Breakout Invalidation — ATR
Controls the confirmed-close distance that invalidates an unswept level.
━━━━━━━━━━━━━━━━━━━━━━
🌊 Sweep Detection
Sweep Penetration Mode
Selects Wick Only, Wick or Body, or Body Required.
Minimum Sweep Depth — ATR
Rejects insignificant penetrations.
Maximum Sweep Depth — ATR
Rejects excessively deep penetrations.
First Penetration Only
Allows only the first interaction attempt.
Multi-Level Sweep Handling
Selects Nearest Valid Level or All Valid Levels.
Block Dual-Side Sweep Bars
Prevents one candle from registering both a high-side and low-side sweep.
Sweep State Timeout
Controls how long a Swept level can wait for reclaim.
━━━━━━━━━━━━━━━━━━━━━━
✅ Reclaim Confirmation
Reclaim Window
Selects Same Candle, Fast, Flexible, or Custom.
Custom Reclaim Bars
Controls the reclaim window in Custom mode.
Reclaim Strength Mode
Selects Loose, Balanced, Strict, or Custom.
Custom Close Buffer — ATR
Controls reclaim distance beyond the level.
Custom Close Location
Controls directional close quality.
Custom Body Strength — ATR
Controls minimum reclaim-candle body size.
Custom Wick Rejection Ratio
Controls same-candle rejection-wick quality.
Require Directional Candle Body
Requires bullish or bearish candle direction.
Require Same-Candle Wick Rejection
Requires the active wick threshold for immediate reclaims.
Block Dual-Side Reclaim Bars
Prevents both directions from confirming on one candle.
Reclaimed Level Hold Bars
Controls how long a reclaimed level remains highlighted.
━━━━━━━━━━━━━━━━━━━━━━
💎 Quality Engine
Quality Filter Mode
Selects Loose, Balanced, Strict, or Custom.
Custom Minimum Quality
Controls the manual minimum from 50 to 100.
Include Relative Volume
Adds the relative-volume component.
Relative Volume Length
Controls the volume baseline.
Volatility Regime Length
Controls the ATR-regime baseline.
Show Grade on Signal Labels
Displays A+, A, or B.
Show Score on Signal Labels
Displays the 0–100 quality score.
━━━━━━━━━━━━━━━━━━━━━━
🎯 Signal Execution
Signal Direction
Selects Both, Long Only, or Short Only.
Candidate Selection
Selects Highest Quality or Nearest Level.
Cooldown Mode
Selects Off, Any Signal, or Same Direction.
Signal Cooldown Bars
Controls the time-based delay.
Use Same-Direction Cluster Filter
Blocks nearby repeated signals.
Minimum Signal Distance — ATR
Controls the required distance from the previous same-direction signal.
Block Duplicate Signal Bar
Prevents repeated final signals on one candle.
Opposite-Signal Conflict
Selects Block Both, Higher Quality, BUY Priority, or SELL Priority.
Consume Filtered Reclaims
Retires reclaim candidates rejected by final execution filters.
━━━━━━━━━━━━━━━━━━━━━━
🧭 Bias & Market Filters
Trend Bias Mode
Selects Off, Chart EMA, Higher Timeframe EMA, or Combined EMA.
Chart EMA Length
Controls current-timeframe trend bias.
Higher Timeframe
Selects the HTF context.
Higher-Timeframe EMA Length
Controls the confirmed HTF EMA.
Require EMA Slope Agreement
Adds directional EMA slope.
Market Condition Filter
Selects Off, Volatility, Efficiency, or Combined.
Efficiency Length
Controls directional-efficiency calculation.
Minimum Efficiency
Controls the required efficiency ratio.
Minimum ATR Regime Ratio
Sets the lower volatility boundary.
Maximum ATR Regime Ratio
Sets the upper volatility boundary.
The default HTF layer uses previous completed higher-timeframe values.
float confirmedHTFClose = request.security(
syminfo.tickerid,
higherTimeframe,
close ,
gaps = barmerge.gaps_off,
lookahead = barmerge.lookahead_on
)
float confirmedHTFEMA = request.security(
syminfo.tickerid,
higherTimeframe,
ta.ema(close, higherTimeframeBiasLength) ,
gaps = barmerge.gaps_off,
lookahead = barmerge.lookahead_on
)
━━━━━━━━━━━━━━━━━━━━━━
📈 Trade Model
Enable Trade Model
Enables Entry, SL, TP, and lifecycle visualization.
Stop-Loss Mode
Selects Entry ATR Multiplier or Sweep Extreme + ATR Buffer.
Sweep-Extreme Buffer — ATR
Controls protective distance beyond the sweep extreme.
Entry ATR Stop Multiplier
Controls ATR stop distance from Entry.
Risk / Reward Target
Controls target distance from 0.25R to 15R.
TP / SL Same-Bar Priority
Selects Stop First or Target First.
Block Signals During Active Trade
Maintains the one-active-model structure.
Allow New Signal on Exit Bar
Controls same-bar reopening.
Show TP / SL Boxes
Shows or hides risk/reward areas.
Show Entry / TP / SL Lines
Shows or hides price-reference lines.
Show Historical Trades
Keeps completed TP models.
Maximum Historical Trades
Limits stored completed visuals.
Show TP / SL Result Labels
Controls TP HIT and CLOSED SL HIT labels.
━━━━━━━━━━━━━━━━━━━━━━
🔔 Alert System
Enable Dynamic alert() Messages
Activates detailed runtime alerts.
Alert Final BUY / SELL Signals
Enables final-signal messages.
Dynamic Signal Alerts: A+ Only
Restricts dynamic signal messages to A+ setups.
Alert Trade Model Open
Sends Entry, SL, TP, RR, grade, and quality.
Alert TP / SL Result
Sends model-result messages.
━━━━━━━━━━━━━━━━━━━━━━
🎨 Visual Settings
Visual Profile
Selects Full, Clean, Minimal, or Mobile.
Level Display
Selects All Active, Armed + Events, Events Only, or Hidden.
Level Line Style
Selects Adaptive, Solid, Dashed, or Dotted.
Signal Label Style
Selects Full, Compact, or Icon.
Dashboard Mode
Selects Full, Compact, Trade Only, or Off.
Active Trade Zone Transparency
Controls TP / SL fill transparency.
Active Trade Border Transparency
Controls TP / SL borders.
Active Trade Line Width
Controls trade-line thickness.
Fade Completed Trades
Fades completed TP models.
Completed Trade Transparency
Controls historical fading.
Theme
Selects Crimson, Ice Blue, or Monochrome.
Show Swing-High Levels
Controls high-side levels.
Show Swing-Low Levels
Controls low-side levels.
Show Important Sweep Labels
Controls sweep-event labels.
Sweep Label Filter
Selects Important Only or All Valid.
Minimum Sweep Importance
Controls visible sweep quality.
Maximum Important Sweep Labels
Limits sweep-label history.
Show BUY / SELL Reclaim Signals
Controls final reclaim labels.
Maximum Reclaim Labels
Limits final signal-label history.
Fade Older Levels
Reduces old-level opacity.
Level Width
Controls swing-level line thickness.
Show Confirmed Pivot Markers
Controls pivot triangles.
Show Dashboard
Enables the dashboard.
━━━━━━━━━━━━━━━━━━━━━━
🛠️ Customization
Sweep Label Size
Controls SWEEP HIGH / SWEEP LOW labels.
Triangle Marker Size
Controls confirmed pivot triangles.
BUY / SELL Signal Label Size
Controls reclaim labels.
TP / SL Result Label Size
Controls result labels.
Dashboard Header Size
Controls dashboard titles.
Dashboard Text Size
Controls dashboard body text.
Color Mode
Selects Theme or Custom.
Custom color inputs control:
• swing-level states
• BUY / SELL backgrounds and text
• sweep-label backgrounds and text
• Entry, TP, and SL lines
• TP / SL fills and borders
• TP / SL result labels
• dashboard background, header, border, main text, and muted text
Input values and plotted marker values are hidden from the status line.
━━━━━━━━━━━━━━━━━━━━━━
🧠 WHAT MAKES THIS SCRIPT ORIGINAL
━━━━━━━━━━━━━━━━━━━━━━
Sweep Reclaim Entry Engine uses familiar analytical concepts such as:
• pivot highs and lows
• liquidity sweeps
• price reclaims
• ATR
• relative volume
• EMA bias
• market efficiency
• risk/reward projection
These concepts are not unique by themselves.
The originality of this script lies in how they are organized into one transparent sweep-reclaim workflow:
Confirmed pivot
→ separate high-side and low-side memories
→ ATR-normalized duplicate control
→ Fresh state
→ Armed state
→ penetration classification
→ minimum and maximum depth validation
→ Swept state
→ configurable reclaim window
→ close, location, body, and wick validation
→ eight-component quality score
→ A+ / A / B grade
→ multi-candidate comparison
→ cooldown, cluster, and conflict handling
→ chart and confirmed HTF EMA alignment
→ optional market-regime filtering
→ one-active-trade model
→ TP-specific historical preservation
→ SL-specific visual cleanup
→ static and dynamic alert delivery
→ bottom-right diagnostic dashboard
Distinctive implementation features include:
• separate lifecycle arrays for swing highs and swing lows
• a defined Armed state before sweep detection
• controlled minimum and maximum penetration depth
• wick/body sweep classification
• first-attempt retirement logic
• sweep-importance scoring separate from setup-quality scoring
• same-candle and multi-bar reclaim support
• transparent quality-component weighting
• Highest Quality and Nearest Level candidate selection
• multiple opposite-conflict resolution modes
• confirmed higher-timeframe EMA data
• ATR-normalized signal clustering
• full chart cleanup after SL
• independent sizing for every label and marker class
• status-line value suppression without hiding chart markers
• configurable targets up to 15R
The script is not a basic collection of unrelated filters.
Each module supports the same swing-sweep-reclaim process.
━━━━━━━━━━━━━━━━━━━━━━
⚠️ IMPORTANT PRACTICAL NOTES
━━━━━━━━━━━━━━━━━━━━━━
The indicator’s behavior depends heavily on settings and market conditions.
Signal frequency can change based on:
• Swing Mode
• pivot lengths
• maximum level age
• merge tolerance
• armed distance
• sweep penetration mode
• minimum and maximum sweep depth
• first-penetration logic
• multi-level selection
• reclaim window
• reclaim strength
• directional candle requirement
• same-candle wick requirement
• quality filter mode
• volume context
• direction restriction
• cooldown
• signal-cluster distance
• opposite-conflict mode
• chart EMA length
• HTF selection
• HTF EMA length
• market-condition filter
• volatility regime
• efficiency threshold
• active-trade restrictions
• symbol
• timeframe
• session
• data provider
• available chart history
A setting that appears selective on one market may behave differently on another.
Volume behavior can differ across forex, futures, equities, indices, and cryptocurrencies.
The higher-timeframe filter should use a timeframe meaningfully above the chart timeframe.
Structural mode confirms fewer and broader pivots than Reactive mode.
Strict reclaim and quality modes reduce signal frequency but do not guarantee better results.
Reactive or Balanced modes can increase frequency but can also increase chart noise.
Users should test the exact market, timeframe, session, and configuration they personally study.
━━━━━━━━━━━━━━━━━━━━━━
⚠️ LIMITATIONS AND SHORTCOMINGS
━━━━━━━━━━━━━━━━━━━━━━
This script has important limitations:
It does not guarantee profitable trades.
It does not predict future price movement.
It does not replace risk management.
It does not execute trades.
It does not place broker orders.
It does not include spread.
It does not include commissions.
It does not include slippage.
It does not include execution delay.
It does not include partial fills.
It uses bar-based OHLC data.
Same-candle TP / SL order cannot be known from standard OHLC bars.
Stop First and Target First are modeling assumptions.
Confirmed pivots require right-side bars before becoming available.
The quality score is not a win probability.
A+ is not a guaranteed outcome.
The dashboard is not PulseWire Strategy Tester.
Internal model counters are not audited brokerage performance.
Historical boxes and labels do not guarantee future behavior.
Relative-volume quality depends on available volume data.
Higher-timeframe bias depends on the selected timeframe.
Market-efficiency filtering cannot identify every ranging condition.
ATR normalization does not make one configuration universal.
One-active-trade logic is a visual-management rule.
Data-feed differences can change historical pivots and signals.
Alert delivery depends on PulseWire and user configuration.
Changing settings changes historical calculations.
Changing symbol, session, exchange, or timeframe changes the engine context.
For these reasons, Sweep Reclaim Entry Engine should be used as an educational decision-support and chart-analysis tool, not as a standalone automated strategy.
━━━━━━━━━━━━━━━━━━━━━━
👤 WHO THIS SCRIPT MAY BE USEFUL FOR
━━━━━━━━━━━━━━━━━━━━━━
This script may be useful for traders who:
• study liquidity sweeps
• monitor confirmed swing highs and lows
• distinguish a sweep from a reclaim
• prefer filtered signals instead of every wick event
• want a visible level lifecycle
• want ATR-normalized penetration thresholds
• want same-candle and multi-bar reclaim support
• want a transparent 0–100 quality framework
• want A+, A, and B setup grades
• want chart and confirmed HTF EMA context
• want optional market-regime filtering
• want Entry, SL, and TP visualization
• want one active model at a time
• want clean SL result handling
• want adjustable mobile and desktop presentation
• want alert-based monitoring
• want a structured educational analysis process
It may be less suitable for users who:
• want guaranteed buy/sell signals
• want a fully automated trading bot
• want every wick beyond every high or low
• expect the quality score to represent probability
• expect one configuration to work on every market
• require exact tick-level execution simulation
• expect displayed levels to match broker fills
• want an indicator to replace independent judgment
• expect alerts to execute orders automatically
━━━━━━━━━━━━━━━━━━━━━━
🧭 BEST PRACTICE SUGGESTIONS
━━━━━━━━━━━━━━━━━━━━━━
For a cleaner and more selective review:
• begin with Structural swing mode
• keep First Penetration Only enabled
• use Nearest Valid Level or Highest Quality according to preference
• keep Strict reclaim strength
• keep Strict quality filtering
• use Combined EMA bias
• select a valid higher timeframe
• use Same Direction cooldown
• keep the same-direction cluster filter enabled
• use Stop First for conservative same-candle modeling
• use Important Only sweep labels
• use Clean visual profile
• keep the dashboard in Compact or Full mode while learning
• use alerts for monitoring, not blind execution
For more active signal frequency:
• use Balanced or Reactive swing mode
• use Balanced reclaim strength
• use Balanced quality filtering
• reduce cooldown
• reduce minimum signal distance
• use Chart EMA or disable trend bias
• keep the hard market filter Off
• use All Valid sweep labels only when additional chart detail is useful
Always:
• review the structural level before the sweep
• confirm the reclaim candle has closed
• verify the setup fits personal market context
• compare the stop with nearby structure and volatility
• treat TP as a planning reference
• test the exact symbol and timeframe
• apply independent risk management and position sizing
━━━━━━━━━━━━━━━━━━━━━━
🔓 PUBLICATION NOTE
━━━━━━━━━━━━━━━━━━━━━━
Sweep Reclaim Entry Engine is published as an educational and visual market-analysis tool.
The purpose of this description is to explain:
• what the script does
• how swing points are confirmed
• how levels are stored and managed
• how Fresh, Armed, Swept, Reclaimed, and Consumed states work
• how penetration type is classified
• how minimum and maximum sweep depth work
• how reclaim timing works
• how reclaim strength is evaluated
• how the 0–100 quality score is calculated
• how A+, A, and B grades are assigned
• how candidates are selected
• how cooldown and clustering operate
• how opposite-direction conflicts are handled
• how chart and confirmed HTF bias work
• how market-condition filters operate
• how Entry and Stop Loss are calculated
• how the RR target is projected
• how one-active-trade logic works
• how same-candle ambiguity is handled
• how active and completed visuals behave
• how SL-specific cleanup works
• what the dashboard displays
• what static and dynamic alerts do
• what the timing limitations are
• what the script’s limitations are
• why the implementation is original
The script is designed to support structured analysis.
It does not promise profitable results.
It does not remove market risk.
It does not execute trades.
It should not be used as a blind buy/sell system.
MAIN CHART SCREENSHOT PLAN
Use one clean standard candlestick chart.
Show the indicator with its default settings.
The screenshot should contain:
• one clearly visible confirmed swing level
• one visible SWEEP HIGH or SWEEP LOW event
• one BUY RECLAIM or SELL RECLAIM label
• one active Entry / TP / SL model
• the thick white Entry line
• the blue/cyan TP area
• the red SL area
• the bottom-right dashboard
• the symbol and timeframe
• the indicator title in the status line
Do not include:
• other indicators
• manual drawings
• unrelated labels
• social links
• promotional text
• performance claims
• account-profit screenshots
• non-standard candles
• excessive zoom
• hidden price candles
The screenshot should demonstrate the script’s normal default behavior and make the swing, sweep, reclaim, risk model, and dashboard easy to understand.
━━━━━━━━━━━━━━━━━━━━━━
🛡️ DISCLAIMER
━━━━━━━━━━━━━━━━━━━━━━
Sweep Reclaim Entry Engine is provided for educational and informational purposes only.
It does not constitute financial, investment, trading, legal, or tax advice.
No indicator can guarantee future results.
Markets are uncertain, liquidity conditions change, volatility changes, and historical chart behavior does not ensure future performance.
Every user is responsible for their own:
• analysis
• validation
• risk management
• position sizing
• alert configuration
• trading decisions
• broker execution
• legal and tax obligations
The confirmed swing levels, lifecycle states, sweep labels, reclaim labels, quality scores, setup grades, bias states, market-condition states, Entry references, stop-loss levels, take-profit targets, TP / SL boxes, result labels, dashboard values, internal model counters, and alerts are visual analysis tools only.
The displayed Entry is not a guaranteed fill.
The displayed Stop Loss is not a broker order.
The displayed target is not a guaranteed objective.
The 0–100 quality score is not a win probability.
The A+, A, and B grades are not promises of performance.
The internal trade model does not include spread, commissions, slippage, latency, order-book conditions, or partial fills.
Use this script as a structured sweep-reclaim review and decision-support framework, not as a promise of profitability or a substitute for independent judgment.
Indicator

RIFTS Tap & Break Sniper [NICK789]
RIFTS Tap & Break Sniper
The RIFTS Tap & Break Sniper indicator is built around one core price-action idea:
Price creates or leaves behind a reaction zone, later returns to tap or reject from that zone, and then confirms direction by printing a BOS or CHoCH.
RIFTS stands for:
**R** — Reaction Zones
**I** — Imbalance Gaps
**F** — Flip / Structure Confirmation
**T** — Tap & Break Logic
**S** — Sniper Scoring
Together, these describe the full process used by the script: price creates or leaves behind a zone, returns to tap or reject from it, then confirms direction through BOS or CHoCH before the setup is scored and plotted as a Sniper or Sniper+ signal.
The script is designed to help traders identify tap-and-break structures where a zone reaction and a market-structure break occur together. Instead of showing zones by themselves or structure breaks by themselves, RIFTS connects both steps into one workflow:
1. Price creates a Reaction Block or Imbalance Gap.
2. Price returns to tap the zone.
3. Price rejects from the zone.
4. Price confirms direction with BOS or CHoCH.
5. The script scores the setup and plots a Sniper or Sniper+ signal.
🔶 USAGE
RIFTS identifies two main zone types:
Reaction Blocks
Imbalance Gaps
A setup begins when price creates one of these zones. The script then watches for price to return to the zone and either tap or reject from it.
A bullish setup develops when price interacts with a bullish zone and then confirms upward movement through a bullish structure break.
A bearish setup develops when price interacts with a bearish zone and then confirms downward movement through a bearish structure break.
The signal is not based on the zone alone. The main purpose is to find moments where zone interaction and structure confirmation align.
🔹 Reaction Blocks
Reaction Blocks are candle-based zones created after price displaces away from the previous candle.
A bullish Reaction Block forms when a bullish candle closes above the previous candle’s high while the previous candle was bearish.
A bearish Reaction Block forms when a bearish candle closes below the previous candle’s low while the previous candle was bullish.
The script marks the previous candle range as the reaction area. This area becomes important if price later returns to it and reacts.
The Zone Candle Body % setting controls how strong the displacement candle must be before a Reaction Block is created. Higher values require stronger candle bodies and reduce weaker zones.
🔹 Imbalance Gaps
Imbalance Gaps are created when price moves quickly and leaves an untraded gap between the current candle and the candle two bars back.
A bullish Imbalance Gap forms when the current low is above the high from two candles ago.
A bearish Imbalance Gap forms when the current high is below the low from two candles ago.
These gaps represent fast price movement. If price later returns to the gap, the script monitors whether price reacts from that area and then breaks structure.
🔹 Tap and Reaction Logic
After a Reaction Block or Imbalance Gap is created, the script tracks whether price comes back into the zone.
A zone is considered tapped when price trades back inside the zone.
A bullish reaction occurs when price taps a bullish zone and then closes upward out of that zone.
A bearish reaction occurs when price taps a bearish zone and then closes downward out of that zone.
The reaction candle must pass the selected quality filters:
Reject Body %
Reject Range ATR
These filters help avoid weak touches where price enters a zone but does not show enough rejection strength.
🔹 BOS and CHoCH Confirmation
The script tracks swing highs and swing lows using the Structure Swing Length setting.
When price closes above the last confirmed swing high, the script detects a bullish structure break.
When price closes below the last confirmed swing low, the script detects a bearish structure break.
The structure break is classified as either BOS or CHoCH.
BOS means Break of Structure. It represents continuation in the current structure direction.
CHoCH means Change of Character. It represents a break against the previous market bias and may suggest a possible directional shift.
CHoCH and BOS lines are drawn on the chart so users can see exactly which structure level was broken.
🔶 SIGNAL MODES
The Sniper Confirmation setting controls how strict the setup must be before a signal appears.
Reaction Only
A signal can appear when price reacts from a valid zone. This is the fastest mode because it does not require a BOS or CHoCH confirmation.
Tap + Structure
A signal requires price to tap a valid zone and then break structure in the signal direction.
Reaction + Structure
A signal requires both a valid zone reaction and a BOS or CHoCH confirmation. This mode is designed for traders who want zone rejection and structure confirmation together.
🔹 Structure Trigger Type
The Structure Trigger Type setting controls which structure events can trigger signals.
Both
Allows both BOS and CHoCH.
CHoCH Only
Only allows change-of-character signals.
BOS Only
Only allows break-of-structure signals.
This lets traders focus on reversal-style setups, continuation-style setups, or both.
🔶 SNIPER SCORE
Each setup receives a score based on the conditions that are present.
The score can include:
Zone tap or zone reaction
BOS or CHoCH confirmation
Fresh reaction timing
Optional volume confirmation
Optional EMA trend confirmation
A Sniper signal appears when the setup reaches the minimum score threshold.
A Sniper+ signal appears when the setup reaches the higher Sniper+ threshold.
The score is a confluence model. It does not predict guaranteed profit. It simply shows how many of the script’s conditions are aligned.
🔹 Volume Filter
When enabled, the Volume Filter requires current volume to be above a selected moving average multiplier.
Volume MA Length controls the volume average.
Volume Multiplier controls how much stronger current volume must be compared with the average.
This filter can help reduce signals during weaker volume conditions.
🔹 EMA Trend Filter
When enabled, the EMA Trend Filter checks whether price is on the correct side of the selected EMA.
Bullish signals require price to be above the EMA.
Bearish signals require price to be below the EMA.
This filter is optional and can be used when traders want signals to align with broader trend direction.
🔶 TRADE PLAN GUIDE
When a Sniper or Sniper+ signal appears, the script can draw a simple trade plan guide.
Entry is based on the signal candle close.
Stop loss is placed beyond the reaction zone with an optional ATR buffer.
TP1, TP2, and TP3 are calculated using the selected R multiples.
The trade plan is only a visual guide. It does not place trades, manage trades, or act as a strategy tester.
🔶 VISUAL DISPLAY
The script can display:
Bullish and bearish Reaction Blocks
Bullish and bearish Imbalance Gaps
CHoCH and BOS structure lines
Sniper and Sniper+ markers
Latest Entry / SL / TP guide
Master alert and separate bull/bear alert conditions
Used zones and overlapping same-side zones are visually cleaned up to keep the chart easier to read.
🔶 SETTINGS
Core Zones
Show Zones
Toggles the display of Reaction Blocks and Imbalance Gaps.
Reaction Blocks
Enables or disables Reaction Block detection.
Imbalance Gaps
Enables or disables Imbalance Gap detection.
Hide Broken Zones
Removes invalidated zones from the chart.
Max Stored Zones
Controls how many zones are stored and tracked.
Zone Candle Body %
Sets the minimum candle body percentage required to create a zone.
Sniper Logic
Sniper Confirmation
Chooses Reaction Only, Tap + Structure, or Reaction + Structure.
Structure Swing Length
Controls the swing pivot length used for BOS and CHoCH detection.
Structure Trigger Type
Chooses whether BOS, CHoCH, or both can trigger signals.
Reaction Valid Bars
Controls how long a zone reaction remains valid for confirmation.
Confirm Signal On Candle Close
When enabled, signals only appear after the candle closes.
Quality Filters
ATR Length
Controls the ATR used for rejection and stop-buffer calculations.
Reject Body %
Sets the minimum body size required for a valid rejection candle.
Reject Range ATR
Sets the minimum candle range relative to ATR for rejection quality.
Require Break Displacement
Requires BOS/CHoCH candles to pass body and ATR strength filters.
Break Body %
Sets the minimum body size required for a valid structure break.
Break Range ATR
Sets the minimum candle range relative to ATR for a valid structure break.
Score Filters
Use Volume Filter
Requires volume confirmation before allowing signals.
Volume MA Length
Controls the moving average used for volume comparison.
Volume Multiplier
Controls how strong current volume must be compared with its average.
Use EMA Trend Filter
Requires signals to align with the EMA trend filter.
EMA Trend Length
Controls the EMA used for trend filtering.
Show Sniper+ Only
Hides normal Sniper signals and only shows Sniper+ signals.
Min Sniper Score
Minimum score required for a normal Sniper signal.
Sniper+ Score
Minimum score required for a Sniper+ signal.
Visuals
Show CHoCH/BOS Lines
Toggles structure lines on the chart.
Max Structure Lines
Controls how many structure lines remain visible.
Show Latest Entry / SL / TP
Toggles the trade plan guide.
RR Lines Bars Ahead
Controls how far the trade plan guide extends to the right.
TP1 R, TP2 R, TP3 R
Controls the risk-multiple targets.
SL ATR Buffer
Adds an ATR-based buffer beyond the reaction zone for the stop guide.
Alerts
The script includes alert conditions for:
Master Sniper signal
Bull Sniper
Bear Sniper
Bull Sniper+
Bear Sniper+
A dynamic master alert option is also available for traders who want alert messages that include symbol, timeframe, close price, and score.
🔶 HOW TO READ THE SIGNALS
A bullish Sniper signal means price has interacted with a bullish zone and passed the selected confirmation rules.
A bearish Sniper signal means price has interacted with a bearish zone and passed the selected confirmation rules.
A Sniper+ signal means the setup reached the higher score threshold.
BOS labels can help identify continuation-style structure breaks.
CHoCH labels can help identify possible shift or reversal-style structure breaks.
The Entry / SL / TP guide is only for planning and should be adjusted to each trader’s own risk management.
🔶 IMPORTANT NOTES
This script is a confluence and visualization tool. It does not guarantee future price movement.
Signals are based on reaction zones, zone taps, rejection candles, and BOS/CHoCH structure breaks.
Swing structure requires confirmed pivots, so BOS and CHoCH lines appear only after the selected swing length confirms the structure point.
Lower timeframes may produce more frequent signals and more noise.
Higher timeframes may produce fewer but cleaner structure events.
Best results usually come from combining the script with higher timeframe context, market session awareness, and proper risk control.
Indicator

Key Level Matrix | AlphaScriptKey Level Matrix brings the high-timeframe and session levels traders watch most onto a single chart , then groups any that share the same price into one clean line through its confluence merge engine.
You get a complete map of where significant prices sit across every timeframe and session at once — without the chart turning into a stack of overlapping lines.
🧠 Concept
Markets repeatedly react to a specific set of reference prices: the opens, highs, lows, and midpoints of higher timeframes and sessions, where prior auctions concluded and resting orders concentrate.
What makes a given price matter is how many independent references land on it.
A level that is simultaneously the daily high, the weekly open, and the Asia session mid carries far more weight than any one of them alone — and finding those overlaps by eye, across a dozen sources, is exactly what this tool removes the work from.
🔍 What it does
Plots reference levels across the market's natural cycles, each labeled and color-coded by source and extended to the right of price:
Timeframes — 4H, Daily, Weekly, Monthly, Quarterly, Yearly: open, high, low, mid, and the prior period's high, low, and mid
Sessions — Asia, London, New York (windows configurable, in New York time): high, low, mid, and the prior session's levels
Monday Range — high, low, and mid of the week's opening day
⚙️ How it works
Every enabled level is sorted by price, and any group falling within your Merge Threshold — set in ticks, so it scales to each instrument — collapses into a single line carrying one combined label that names each contributing source, for example "Daily High / Weekly Open / Asia Mid." One line, with an instant read on how much agreement sits behind it.
All values are retrieved with non-repainting historical requests. Levels from closed periods and sessions are final; the active period and session develop in real time and lock once they close.
📈 How to use it
Treat merged, multi-source levels as your highest-conviction zones — primary areas for entries, targets, and invalidation — and single-source levels as secondary structure between them.
Enable only what matches your timeframe: an intraday trader might run New York, London, and Daily; a swing trader Weekly, Monthly, and Quarterly.
Widen the Merge Threshold on volatile, large-tick symbols; tighten it on indices and FX where prices sit closer together.
Every level, session, color, and style is independently configurable. It's a reference and confluence framework meant to complement your analysis, not a buy/sell signal generator, and it works on any market and timeframe.
📝 Notes
A decision-support tool, not a strategy. Levels are drawn from confirmed data and don't repaint. They mark where price has reacted before — not where it will. Always apply your own risk management. Indicator

Indicator

Historical Pattern Projection [MarkitTick]💡 An advanced analytical framework engineered to identify, isolate, and project current price action based on historically correlated market structures. Rather than relying on traditional lagging oscillators or subjective chart patterns, this tool continuously evaluates the most recent sequence of price movements—termed the "fingerprint"—and algorithmically scans historical data to find statistically similar precedents. By projecting the historical outcomes of these matching patterns onto the current chart, it provides an empirical, data-driven perspective on potential near-term price trajectories, seamlessly bridging the gap between quantitative correlation analysis and practical trade management.
✨ Originality and Utility
Traditional technical analysis often relies on rigid, subjective patterns (such as head-and-shoulders or flags) which can be open to interpretation and cognitive bias.
This script completely bypasses subjective pattern drawing by employing a strictly mathematical approach to shape-matching.
It normalizes price action into a pure structural format, allowing it to compare the geometry of the current market with historical markets, regardless of the absolute price levels.
The utility lies in its ability to automatically synthesize the "what happened next" data from historical matches.
Instead of merely signaling overbought or oversold conditions, it provides a probabilistic projection path—a "ghost line"—complete with expected volatility bands and automated risk management levels based on the anticipated outcome.
🔬 Methodology and Concepts
● Core Recognition Engine
• Data Normalization: The current price sequence (the fingerprint) is converted using a statistical Z-Score. This transformation removes the absolute price values and leaves behind the raw volatility-adjusted shape of the trend.
• Deep Historical Scanning: The algorithm iterates backwards through user-defined historical bars (Search Depth) to extract rolling arrays of previous price action.
• Statistical Correlation: Each historical array is compared to the current fingerprint using the Pearson Correlation Coefficient. The resulting value (-1.0 to +1.0) is mathematically scaled into a percentage (0% to 100%) to represent a "Similarity Score."
● Outcome Synthesis and Extrapolation
• Match Aggregation: The script filters out matches that fall below the minimum Similarity Score threshold, keeping only the top configured matches.
• Trajectory Calculation: For each valid match, the script records the price movement that occurred immediately after the historical pattern completed.
• Price Scaling: The historical outcomes are structurally scaled and tethered to the current closing price, allowing the indicator to plot a composite average of these historical outcomes directly into the future empty space of the chart.
🎨 Visual Guide
● On-Chart Projections and Highlights
• ECHO Match Zones: The historical periods that closely match the current price action are highlighted with thick, colored vertical bands (defaulting to deep orange). These zones allow for immediate visual verification of the structural similarity.
• Ghost Line (Projection): Plotted into the future, this solid, fading purple line illustrates the average expected trajectory based on the historical matches. It features an arrow and percentage label at the terminus to indicate the total projected directional move.
• Range Bands: Dashed, semi-transparent purple lines expanding outward from the Ghost Line. These bands represent the expected volatility expansion over the projection period, calculated using a dynamically scaling Average True Range (ATR).
● Trade Management Ecosystem
• Entry Box: A highlighted zone (default yellow) projecting forward from the current bar, representing an optimal entry width based on a fraction of the current ATR.
• Stop Loss (SL) Line: A solid red horizontal line indicating the suggested invalidation level, dynamically placed away from the entry using an ATR multiplier.
• Take Profit (TP) Lines: Three dashed green horizontal lines representing tiered profit targets (TP1, TP2, and TP3), scaled mathematically via ATR multipliers in the direction of the historical bias.
● The ECHO Dashboard Table
• Top Match Score: Displays the similarity percentage of the most highly correlated historical pattern. Color-coded for rapid assessment (Green for Strong >80%, Yellow for Moderate, Orange for Weak).
• Fingerprint & Depth: Confirms the lookback length and the total bars scanned.
• Outcome Metrics: Displays the historical "Votes" (percentage of matches that went Bullish, Bearish, or Neutral) and the overall Average Move.
• Historical Roster: The bottom half of the dashboard ranks the individual top historical matches, detailing their exact score, how many bars ago they occurred, and their specific post-pattern return.
📖 How to Use
• Pattern Validation: Monitor the ECHO Dashboard for patterns that achieve a Similarity Score of 80% or higher. Lower correlation scores should be treated with high skepticism as the historical geometries are not closely aligned.
• Bias Confirmation: Check the "Proj Bias" and "Votes" metrics on the dashboard. A strong projection should ideally have unanimous or near-unanimous historical consensus (e.g., 100% Bullish votes).
• Trade Execution: If a high-probability setup is identified, utilize the projected Trade Management levels. The highlighted Entry Box provides a buffer for execution, while the SL and TP lines offer an objective, volatility-adjusted framework for placing orders.
• Alert Integration: The indicator can be tied to dynamic webhooks. Set an alert on the indicator, and when a "Strong" match is found, it will automatically transmit a JSON payload containing the Entry, Stop Loss, and Take Profit levels for automated systems or notifications.
⚙️ Inputs and Settings
● Core Settings
• Freeze Data: A toggle that stops the algorithm from updating on every tick, locking the current projection in place for stable analysis.
• Fingerprint Length: The number of current bars used to form the recognizable pattern. Shorter lengths are highly responsive but prone to noise; longer lengths find deep structural macro-patterns.
• Search Depth: The maximum number of historical bars the algorithm will scan. Increasing this expands the database but requires more computational resources.
• Min Score (%): The correlation threshold required for a historical pattern to be considered valid.
● Projection & Risk Settings
• Ghost Length: Defines how many bars into the future the algorithm should project the historical outcome.
• Entry Width (xATR): Defines the vertical height of the entry box based on current volatility.
• SL & TP Multipliers: Adjustable factors that determine the distance of Stop Loss and Take Profit levels based on the current 14-period ATR.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
• Z-Score Standardization: The algorithm employs standard score normalization to analyze price action. By subtracting the moving average (mean) from the price and dividing by the standard deviation, the data is transformed into a dimensionless unit. This ensures that a pattern occurring in a low-volatility environment can be mathematically matched to the exact same geometric structure occurring in a high-volatility environment.
• Pearson Correlation Coefficient: The core matching engine relies on Pearson's *r*, a measure of linear correlation between two sets of data. The formula computes the covariance of the current fingerprint and the historical candidate window, divided by the product of their standard deviations. This rigorously quantifies how closely the two price paths mirror each other over the specified timeframe.
• Volatility-Adjusted Target Extrapolation: Rather than using fixed percentages or subjective support/resistance, the script utilizes the Average True Range (ATR) to govern its forward-looking risk management bands. Because market regimes shift, the ATR ensures that the projected bands and trade levels expand during turbulent market phases and contract during periods of consolidation, maintaining mathematical proportionality to current market conditions.
• Algorithmic Caveats: Because the script continuously scans and matches the most recent data, the projected path will shift dynamically as new bars form, unless the "Freeze" function is engaged. Furthermore, the indicator evaluates the close of bars; running this framework on non-standard synthetic charts (such as Heikin Ashi or Renko) is fundamentally flawed due to the artificial smoothing of synthetic price data, which alters the underlying statistical distribution.
⚠️ 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. Indicator

Institutional Liquidity Sweep [PickMyTrade]Institutional Liquidity Sweep identifies institutional stop-hunt reversals by measuring five structural microstructure factors at every confirmed swing-level sweep and combining them into a single, readable Confluence Score. When the score clears a configurable threshold — and the sweep aligns with an active Order Block — the indicator fires a directional signal with a score label, an SL/TP projection, and an auto-mitigating OB zone on the chart.
Unlike fixed-threshold crossover tools, this indicator does not assume that every wick below a swing low or above a swing high is meaningful. It asks a structural question instead: given the depth of the sweep, the absorption shown in order flow, the session timing, and whether an institutional Order Block was sitting at that level — how strong is the reversal case? Five factors answer that question and a weighted score between 0 and 100 summarises the result on every bar.
────────────────────────────────────────────────────────
🔷 WHAT IT MEASURES
🔸 Swing-Level Sweep Detection
A bullish sweep is confirmed when the current bar's wick pierces the N-bar swing low while the close returns above it. A bearish sweep is the mirror: wick above the swing high, close back below. The swing level uses a confirmed lookback — no current-bar values enter the swing calculation — making the sweep detection fully non-repainting. This single structural requirement gates the entire indicator: the five factors and the Order Block check only matter on a bar that has already swept a swing level.
🔸 F1 — Wick Rejection Purity (weight 28%)
How much of the sweep wick was recovered within the same bar? A bar that sweeps 20 points below the swing low but closes only 2 points above it has poor rejection. A bar that sweeps 20 points and closes back near the top of its range has high rejection purity. This factor is z-score normalised over a rolling window so that the same numeric value carries the same weight regardless of instrument volatility.
🔸 F2 — Volume Participation (weight 20%)
Volume at the sweep bar is z-score normalised against recent history. Elevated volume confirms institutional participation: a stop hunt that clears retail orders but attracts heavy buy (sell) pressure is more likely to reverse than one with below-average volume. A sweep on thin volume gets a low F2 score even if the rejection wick looks clean.
🔸 F3 — CVD Net Absorption (weight 25%)
Cumulative volume delta tracks the net order flow direction using the close-position formula bull_vol = volume * (close - low) / (high - low) . The single-bar delta at the sweep bar is z-score normalised and sign-adjusted: a bullish sweep wants a positive delta (buyers absorbed the down-spike); a bearish sweep wants a negative delta (sellers absorbed the up-spike). When order flow and price action agree on the reversal, F3 scores high. When they disagree — price sweeps down but sellers are still dominant — F3 penalises the composite score.
🔸 F4 — Structural Recovery (weight 17%)
How far did the close reclaim the swept swing level relative to the depth of the sweep? If a bar sweeps 30 points below the swing low and closes 25 points above it, recovery is strong. If it closes only 2 points above the swing level having swept 30 points, recovery is weak. This factor rewards bars that decisively reclaim the institutional level rather than barely scratching back above it.
🔸 F5 — Session Window (weight 10%)
Liquidity events during the London open (07:00–10:00 UTC by default) and the New York open (13:00–16:00 UTC by default) carry a higher institutional weight than off-peak sweeps. This factor scores 1.0 during the London window, 0.85 during the NY window, and 0.45 at all other times. Session hours are configurable in UTC and the session windows are highlighted on the chart.
────────────────────────────────────────────────────────
🔷 THE COMPOSITE SCORE
Each factor is normalised to a 0–1 scale using z-score transformation. The five normalised scores are then combined with the weights above into a single composite score from 0 to 100:
Score = (0.28 × F1 + 0.20 × F2 + 0.25 × F3 + 0.17 × F4 + 0.10 × F5) × 100
An Order Block alignment bonus (configurable, default 15 points) is added on top when the sweep level coincides with an active OB zone, with the score capped at 100. The threshold (default 65) is the minimum score required to fire a signal. Raising the threshold to 75–80 restricts signals to the highest-conviction sweeps; lowering it to 50 produces more signals on weaker structure.
────────────────────────────────────────────────────────
🔷 ORDER BLOCKS
🔸 Detection
A bullish Order Block is the last bearish candle before a sequence of N consecutive bullish candles (an upside impulse). A bearish Order Block is the last bullish candle before N consecutive bearish candles (a downside impulse). The impulse candle count is configurable (default 3). Only confirmed, closed bars enter the OB detection — no current-bar data is used.
🔸 Zones
Each active OB is drawn as a persistent price zone box extending from the OB candle's high to its low. Bull OB zones use the bull colour; bear OB zones use the bear colour. When a new OB forms, the previous OB of the same direction is replaced. The right edge of each box extends bar-by-bar until mitigated.
🔸 Mitigation
A bull OB is mitigated when price closes below the bottom of the zone. A bear OB is mitigated when price closes above the top. On mitigation the box is deleted and the zone is deregistered. The info table shows "Aligned" when the sweep level currently sits inside an active OB zone, "Active" when an OB exists but is not being swept, and "None" when no OB is registered.
🔸 Score Bonus
When a sweep aligns with an active OB — meaning the swept swing level falls within the OB zone's price range — the composite score receives the OB bonus. This reflects the structural significance of a sweep-and-reversal occurring at a previously identified institutional reference level.
────────────────────────────────────────────────────────
🔷 SESSION WINDOWS
London and New York open windows are highlighted on the chart as faint background tints (yellow for London, teal for NY). These are the hours during which institutional desks are most active and liquidity sweep events are most frequently observed. Session highlighting can be toggled off independently of the session weight applied to F5.
────────────────────────────────────────────────────────
🔷 SIGNAL LOGIC
A long signal fires when three conditions are simultaneously true on the same bar:
A bullish sweep is detected (wick below the N-bar swing low, close above it)
The composite score meets or exceeds the threshold
Price is above the trend EMA (macro direction filter)
A short signal fires under the symmetric conditions using the swing high and requiring price to be below the EMA. The signal is edge-triggered — it fires once on the first qualifying bar and resets when conditions are no longer met. The signal label shows "ILS" followed by the rounded score (e.g. ILS 72 ).
────────────────────────────────────────────────────────
🔷 HOW TO READ IT
🔸 Confluence Pressure Band
A fill band extends from the trend EMA to ±1 ATR. The opacity of the fill scales continuously with the composite score — a faint band indicates a low-scoring environment; a deep saturated band indicates a high-scoring environment even before a sweep fires.
🔸 Entry Shapes
Circles indicate high-conviction signals (score ≥ 80); triangles indicate standard signals (score ≥ threshold). The shape appears at the sweep bar with a score label. Shapes are coloured at full intensity for high conviction and at 75% opacity for standard signals.
🔸 OB Zone Boxes
Semi-transparent filled boxes mark active Order Block zones. They extend to the right on every bar until mitigated by a close through the zone boundary. When a sweep lands inside a box, the OB bonus is added to the score at that moment.
🔸 Session Highlights
Faint yellow and teal background tints mark London and NY open windows respectively. Sweeps outside both windows score lower on F5 and require the other four factors to compensate.
🔸 Info Table
The top-right table shows seven live values at every bar: the composite score, all five normalised factor scores (0–1), the active session, and the OB zone status. Factor scores above 0.60 are highlighted in lime green.
🔸 SL / TP Lines
Dashed red and green lines mark the ATR-based stop loss and take profit levels at each signal bar. The SL is placed beyond the sweep wick by a configurable ATR multiple; the TP is set at the SL distance multiplied by the risk:reward ratio. Both lines extend 8 bars to the right and do not repaint.
────────────────────────────────────────────────────────
🔷 INPUTS
🔸 Sweep Detection
Swing Lookback — N-bar window defining the swing high/low that must be swept. Default 20.
🔸 Confluence Score
Score Threshold — minimum composite score (0–100) to fire a signal. Default 65.
Normalisation Window — rolling window for z-score normalisation. Default 50.
Order Block Score Bonus — additional points when sweep aligns with an OB zone. Default 15.
🔸 Order Blocks
Show OB Zones — toggle OB box drawing.
Impulse Candles Required — consecutive same-direction candles to identify an impulse. Default 3.
🔸 Session Windows
Show Session Highlights — toggle background session tints.
Chart Timezone — must match your chart timezone for accurate session hour detection.
London Open Hour / NY Open Hour — start of each window in UTC. Defaults: London 7, NY 13.
Window Width — hours each session window spans. Default 3.
🔸 Signal Levels
Show SL / TP Lines — toggle projection lines.
SL ATR Multiplier — stop loss distance as ATR multiple. Default 1.5.
Risk : Reward — TP as a multiple of the SL distance. Default 2.0.
ATR Period — Default 14.
Trend EMA Period — macro direction filter. Default 50.
🔸 Visual / Display
Bull / Bear Colour — base colours for all directional elements.
Confluence Pressure Band — toggle the EMA fill band.
Zen Mode — hides all text labels; only shapes and zones remain.
Show Info Table — toggle the top-right factor breakdown table.
────────────────────────────────────────────────────────
🔷 REQUIREMENTS AND LIMITATIONS
The indicator requires a minimum of Normalisation Window bars before z-score statistics are meaningful. On short-history charts or when first applied, z-scores will be zero and the score will rely primarily on F5 (session timing).
CVD is estimated from the close-position formula — a synthetic approximation of net order flow, not true bid/ask volume. On illiquid instruments or timeframes where intrabar price travel is minimal, the CVD delta is noisy and F3 will contribute less discriminative power.
Order Block detection uses a simplified impulse model (N consecutive same-direction closes). The single-active-OB-per-direction design is intentional: the indicator tracks the most recent OB, not a full library of zones.
Session timing is meaningful on intraday timeframes (15M through 4H). On daily or weekly charts, F5 will score at its off-peak value — toggle off session highlights on higher timeframes.
The composite score is a relative measure, not an absolute probability. A score of 72 means the current sweep bar shows strong structural confluence relative to normalised distributions — it does not imply a 72% probability of reversal.
────────────────────────────────────────────────────────
Built natively in Pine Script® v6. Five-factor confluence scoring using z-score normalisation with rolling statistics, non-repainting swing-level sweep detection, auto-mitigating Order Block zones, and session-weighted structural analysis. No external libraries, no data feeds, no fixed lookback arrays.
Open source — Mozilla Public License 2.0. Published by PickMyTrade_Official. Indicator

Retest & Break Setup [LuxAlgo]The Retest & Break Setup indicator identifies and tracks price action structures where price breaks a pivot level, retests it multiple times, and subsequently breaks out to confirm the trend.
🔶 USAGE
The indicator identifies "Retest & Break" patterns by monitoring pivot levels (Pivot Highs for bullish setups and Pivot Lows for bearish setups). A setup begins when a pivot is broken by price. The script then tracks whether price returns to "retest" this broken level as support or resistance.
A setup is considered "completed" once the required number of retests is met and price breaks out past the newly formed extreme established during the retest phase. For bullish setups, this means price must close above the highest high reached during the retest period. For bearish setups, price must close below the lowest low reached during the retest period.
A completed bullish setup suggests that price is likely to continue moving higher, while a bearish setup suggests a move lower. The logic behind this is often linked to liquidity; as price retests a level multiple times without breaking back through, liquidity (such as stop-loss orders) builds up just beyond the retest extremes.
When price finally breaches these levels, this concentrated liquidity can act as fuel, accelerating the breakout and confirming the new trend direction.
🔹 Parameters and Setup Sensitivity
The behavior of the indicator is highly dependent on four primary settings:
Length: Determines the significance of the initial pivot. A higher value identifies major swing points, while a lower value identifies minor intraday levels.
Required Consecutive Retests (K): Specifies how many times price must touch the broken level without breaking back through it. Increasing this value requires more confirmation before a setup is considered valid.
Max Bars between Retests (P): Controls the "tightness" of the retest phase. If price takes too long to return for a retest, the setup is invalidated.
Max Bars for Break (N): Defines the window of opportunity for the final breakout. After the required retests are met, price must break the recent extreme (high for bullish, low for bearish) within this many bars.
🔹 Finding Long-Term vs. Short-Term Setups
For users looking for longer-term, more significant setups, it is recommended to increase the Length (e.g., 10-20) and the Max Bars parameters ( N and P ) to allow for the slower price development typical of higher timeframes or major trend shifts.
Conversely, for scalping or fast-moving markets, lower values for Length and P will highlight quick "touch-and-go" patterns.
🔶 DETAILS
The indicator includes a comprehensive dashboard to help users evaluate the historical reliability of the identified structures on the current chart and timeframe.
🔹 Dashboard Metrics
Total: This counts the number of setups that successfully completed the initial break and all required K retests. It represents the "Potential" setups that reached the final stage.
Completion: This tracks how many of the "Total" setups actually achieved a confirmed breakout past the retest extreme within the N bars limit.
Win Rate: This is a predictive performance metric. For every "Completed" setup, the script records the price at the moment of breakout. After N bars have passed since that breakout, it checks if price is still above (bullish) or below (bearish) the breakout level.
🔹 Visualization
The script uses dashed lines to represent the broken pivot level being retested. Solid lines represent the "trigger" level (the extreme of the retest phase). When a setup is completed, a shaded box appears, and a "Break" label is plotted. If "Only Show Complete Setups" is disabled, invalidated setups will remain on the chart in a faded gray color for study.
🔶 SETTINGS
Length: The lookback period used to detect Pivot Highs and Lows.
Max Bars for Break (N): The maximum time allowed for price to break out after the final retest.
Max Bars between Retests (P): The maximum time allowed between the initial break and the first retest, or between subsequent retests.
Required Consecutive Retests (K): The number of successful retests required to validate the zone.
Only Show Complete Setups: When enabled, removes setups from the chart that failed to meet the retest or breakout criteria.
Setup Colors: Customizable colors for bullish, bearish, and invalidated patterns.
Dashboard Settings: Options to toggle the dashboard visibility, change its position on the chart, and adjust its size.
Indicator

HTF ORDER FLOW [erdensedat]The HTF ORDER FLOW is an advanced, all-in-one institutional trading indicator designed to bring High Timeframe (HTF) market structure, volume profile dynamics, and order flow context directly to your current chart. By combining deep volume analysis with the BLVL (BOS/CHoCH) break detection algorithm, this script offers a comprehensive view of institutional activity without cluttering your screen.
Key Features:
HTF Candle Projection: Projects the live Higher Timeframe candle (e.g., Daily, Weekly) seamlessly onto your current trading timeframe with customizable width and opacity.
Dynamic Volume Profile: Displays a customized Volume Profile mapped specifically to the HTF period. It highlights the Point of Control (POC), Value Area High (VAH), and Value Area Low (VAL) to instantly visualize where the majority of trading volume took place.
High Volume Nodes (HVN): Automatically highlights specific bins inside the profile that experience significantly higher volume, signaling potential hidden support or resistance areas.
Initial Balance (IB) & VWAP Tracking: Tracks and extends the Initial Balance High/Low and the Volume Weighted Average Price (VWAP) for the HTF session.
Previous Day/Week (PD/PW) Levels: Toggle critical historical liquidity levels such as Previous Day Open/High/Low and Previous Week Open/High/Low, drawing them exactly from their historical birth-points.
Premium & Discount Zones: Automatically calculates and displays Premium and Discount range boxes relative to the HTF candle, helping you visualize equilibrium and optimal entry zones.
Integrated BLVL System (BOS/CHoCH): A built-in Fractal break-of-structure engine that detects and labels potential and confirmed structural shifts (BOS / CHoCH). It displays live candidate lines and solidifies them once a structural break is confirmed by price action.
Custom Styling Engine: Choose from beautiful pre-built visual themes (Classic TV, Cyberpunk, Midnight, Forest, Luxury Gold) or enable total custom control over specific lines like VWAP, VAH/VAL, and IB levels.
The Quantum Signal HUD Panel:
Located at the top right of your chart, the built-in Heads Up Display (HUD) acts as your real-time order flow navigator. It tracks:
Price & VWAP: Current price relation to the HTF VWAP.
Market Bias: Displays a simple BULLISH/BEARISH bias based on the VWAP baseline.
Quantum Signal: Analyzes cumulative volume delta (CVD) relative to VWAP positioning to interpret market state as "INST. BUYING", "INST. SELLING", or "NEUTRAL/TRAP".
Session Progress: Shows the percentage of time elapsed in the current HTF candle.
HTF CVD: The live Cumulative Volume Delta of the ongoing HTF session.
How to Use:
Use the HTF Volume Profile and Premium/Discount boxes to identify where institutions are doing business. Wait for the integrated BLVL system to confirm a structural shift (CHoCH or BOS) inside these key liquidity zones. Check the Quantum Signal HUD to ensure institutional order flow (CVD) aligns with your bias before entering a trade.
Optimize your edge by trading with the HTF trend, volume, and structure. Indicator

Indicator
