Indicator

Indicator

Indicator

Indicator

Descriptive Statistics [Median, Quartiles, Outliers]This indicator seeks to provide insight to traders by modeling market structure using widely accepted statistical methods applied to price data. It does not predict direction; instead, it describes how current price behaves relative to its historical distribution.
It is built around non-parametric statistics, making it resistant to distortion from extreme price movements.
What it shows?
1. Median (Q2): The central equilibrium level of price distribution.
2. Quartiles (Q1, Q3): Boundaries of the “normal” trading range.
3. Interquartile Range (IQR): Measures the width of the core market structure.
4. Outlier Bands (1.5 × IQR rule): Statistical extremes where price becomes unusual relative to recent behavior.
How it works?
The indicator collects price data either through:
1. Reset Mode: Builds a new distribution each session (Daily, Weekly, Monthly, or chart timeframe).
2. Length Mode: Uses a rolling window of the last N candles.
All values are sorted to construct a real-time price distribution, from which median, quartiles, and outlier thresholds are derived.
How to use it?
1. Price inside Q1–Q3 range → normal market conditions
2. Price near Median → equilibrium / fair value zone
3. Price outside Outlier bands → statistically extreme conditions (potential exhaustion, expansion zones or news driven events)
4. Large expansions between Q1 and Q3 → increased volatility and potential momentum in either direction
Key concept?
This tool does not forecast price. It provides a distribution map of market behavior, helping traders understand structure, deviation, and statistical positioning of price.
⚠️ Note
This indicator is for educational and analytical purposes only and should not be used as standalone trading advice.
Author: TUGUME WILLIAM MUTARA Indicator

Trend Pulse [BigBeluga]🔵 OVERVIEW
Trend Pulse is a structure-driven trend detection indicator that identifies bullish and bearish regime shifts using confirmed pivot breaks and an adaptive volatility-aware trend band.
Instead of relying on momentum oscillators or fixed moving averages, Trend Pulse focuses on market structure, price expansion, and trend aging to determine when a trend starts, matures, and potentially exhausts.
The indicator is designed to visually communicate trend state directly on price using adaptive bands and progressive color transitions.
🔵 CONCEPT
Structure First — Trend direction is defined by confirmed pivot lows and their breaks, not by indicators crossing indicators.
Adaptive Trend Band — A volatility-adjusted SMA band expands over time during bearish phases, making late trend reversals harder to trigger.
Break-Based Trend Shifts — Bullish trends are confirmed only when price breaks above the adaptive band; bearish trends are confirmed by breaking below structural pivots.
Trend Aging — Trend strength is visualized by time-based color gradients that reflect how long a trend has been active, not momentum.
🔵 KEY FEATURES
Pivot-Based Bearish Detection
A bearish trend is triggered only after a confirmed pivot low is broken. This avoids reacting to temporary pullbacks or intrabar noise.
Real-time pivot low level tracking
During a bullish trend, the indicator displays the most recent pivot low level and extends it to the latest bar. This helps identify a potential level where the bullish trend may reverse into a downtrend.
Adaptive Volatility Band
The trend band is built from:
A dynamically expanding SMA length
ATR-based offset for volatility normalization
As the bearish trend matures, the band widens, requiring stronger price expansion to flip the trend back bullish.
Bullish Trend Confirmation via Band Break
A bullish trend is confirmed only when price breaks above the adaptive band, signaling genuine upside expansion rather than a weak bounce.
Automatic Band Reset
On bullish trend shifts, the adaptive band resets to a shorter length, allowing faster reaction to early trend stages.
Time-Based Trend Coloring
Trend color transitions from:
Fresh → Mature
Bullish → Bearish
based purely on how long the trend has persisted since the last flip.
Clear Structural Markers
The indicator plots:
- Confirmed pivot lows
- Bearish breakdown points
- Bullish breakout points
directly on the chart for structural clarity.
Full Candle Coloring
Candles inherit the current trend color, allowing instant visual recognition of market regime without additional indicators.
🔵 HOW TO USE
Use bearish trend shifts to identify structural breakdowns, not just momentum pullbacks.
Treat bullish breaks as confirmation of real trend reversals, not early counter-trend signals.
Use trend color aging to gauge whether a move is early-stage or potentially mature.
Avoid fading trends solely based on color maturity — use it as context, not a reversal signal.
Combine Trend Pulse with structure tools (order blocks, liquidity zones, volume) for higher-confidence entries.
🔵 CONCLUSION
Trend Pulse is a structure-aware trend engine built around confirmed pivots, adaptive volatility logic, and time-based trend visualization.
By separating trend direction from trend age , it avoids common indicator pitfalls such as over-sensitivity and late momentum signals.
This makes Trend Pulse especially effective for traders who want clear regime definition, disciplined trend confirmation, and visual clarity directly on price — without relying on lagging oscillators or fixed moving average systems. Indicator

BOS Adaptive Structure Average (Zeiierman)█ Overview
BOS Adaptive Structure Average (Zeiierman) is a structure-aware trend framework that blends market structure logic with an adaptive moving average and directional cloud visualization. Rather than treating all price movements equally, the indicator reacts to confirmed Break of Structure (BOS) and Change of Character (ChoCH) events, using them to dynamically adjust the average's responsiveness and directional bias.
The result is a smoother trend tool that does not rely only on price slope, but also incorporates structural confirmation. Alongside the adaptive average, the script tracks live structural highs and lows, scores their relative strength, and visualizes directional bias through a cloud that expands around the average. This creates a more contextual trend model that helps map both current momentum and active market structure.
█ How It Works
⚪ Structure Engine 1: BOS / ChoCH Detection
The first structure engine identifies pivot highs and pivot lows using a configurable pivot length. Once a pivot is established, the script monitors whether the price breaks above the active high or below the active low.
A break above the tracked high triggers a bullish structural event.
A break below the tracked low triggers a bearish structural event.
Each event is labeled either as:
BOS when it continues the current structural direction
ChoCH when it breaks against the prior structure state and signals a regime shift
This state is stored internally and becomes the foundation for the adaptive behavior of the average.
structText(os, isBull) =>
isBull ? (os == -1 ? "ChoCH" : "BOS") : (os == 1 ? "ChoCH": "BOS")
⚪ Adaptive Average Core
At the center of the indicator is a dynamic average that adjusts its response speed using structure activity.
The script converts BOS events into a directional impulse:
bullish BOS → positive impulse
bearish BOS → negative impulse
This impulse is smoothed into:
bosAct = activity strength
bosBias = directional pressure
Those values control how quickly the average reacts and how strongly it gets pushed in the active structure direction. When the structure activity is quiet, the average behaves more slowly. When structure becomes active, it accelerates and leans into the prevailing directional break.
bosImp = bullBos1 ? 1.0 : bearBos1 ? -1.0 : 0.0
bosAct = ta.rma(math.abs(bosImp), 20)
bosBias = ta.rma(bosImp, 20)
alpha = aSlow + (aFast - aSlow) * bosAct
This produces a trend line that is both smoother than the raw price and more structurally aware than a standard moving average.
⚪ Multi-Speed Internal Average Stack
The adaptive average is not built from just one line. Internally, the script calculates five related adaptive components using different multipliers, creating a fast-to-slow response stack around the same structural core.
⚪ Structure Midpoint Anchoring
To keep the average tied to evolving market structure rather than drifting too freely with price, the script also uses the midpoint between the current active structure high and low as an anchor.
This midpoint acts as a stabilizing force. When the structure is well-defined, the internal averages are gently pulled back toward the structural center, helping the line remain more aligned with the active price framework.
mid = na(hi1) or na(lo1) ? na : (hi1 + lo1) / 2.0
anchW = 0.20 * bosAct
⚪ Live High / Low Structure Strength Model
The second structure engine tracks broader live highs and lows using a separate pivot length. These are not plotted as static levels — the script scores them based on the sequence of BOS and ChoCH events generated by Structure Engine 1.
Weights used in the current code:
ChoCH = 1
BOS = 3
These points are accumulated into bullish and bearish buckets for both the live high and live low. The net values are then translated into simple strength labels:
Weak
Medium
Strong
This creates a live read on whether the current high is stronger resistance or the current low is stronger support.
So the indicator is not only tracking structure breaks, but also maintaining a running estimate of how structurally strong the current high and low levels are.
⚪ Directional Cloud Model
This version uses a layered cloud derived from the adaptive average.
The main adaptive line is b3. That line is smoothed and then compared to a short EMA reference of hlc3 to create intermediate cloud layers between the adaptive line and the reference line. This produces a graded visual zone that reflects both slope and price relationship.
█ How to Use
⚪ Follow Trend Bias Through the Adaptive Average
Use the main adaptive line and cloud to quickly read market direction:
Bullish cloud + rising average → uptrend
Bearish cloud + falling average → downtrend
Flat, mixed, or narrow cloud → consolidation/indecision
Because the average reacts to structure (BOS/ChoCH) instead of just price movement, it tends to give a clearer trend read than standard moving averages, especially in structurally driven markets.
⚪ Use BOS / ChoCH for Regime Shifts
The BOS and ChoCH labels are useful for identifying when the structure is continuing versus when it is changing character.
ChoCH suggests a meaningful break against prior structure and may indicate an early regime shift.
BOS suggests continuation in the active structural direction
This makes the indicator useful not only for trend following but also for spotting when a prior directional assumption may be weakening.
⚪ Map Live Support and Resistance Strength
The live High / Low lines and their strength labels help frame the current structure map.
A Strong High suggests overhead resistance is being reinforced by bearish structure.
A Strong Low suggests support is being reinforced by bullish structure.
Weak readings suggest the level is less structurally defended.
This can be useful for filtering breakout expectations, fade setups, or risk placement around active market boundaries.
█ Settings
Fast Response Length – Controls how quickly the adaptive average reacts during active structure conditions. Lower values make the fast side of the average more responsive.
Slow Response Length – Controls the baseline smoothness of the adaptive average when structure activity is low. Higher values slow the line down and reduce noise.
BOS Directional Push – Adds directional pressure to the adaptive average using smoothed BOS bias and ATR. Higher values increase directional drift after structural confirmation.
Pivot Length (Structure Engine 1) – Defines how sensitive the BOS / ChoCH engine is. Lower values generate more structure events; higher values focus on broader swings.
Pivot Length (Structure Engine 2) – Defines the broader live high/low structure map. Higher values create more stable but less reactive levels.
-----------------
Disclaimer
The content provided in my scripts, indicators, ideas, algorithms, and systems is for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any financial instruments. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
Indicator

Structure Retest Engine Delta HybridDescription
Structure Retest Engine Delta Hybrid is a price action tool designed to identify structural shifts (CHoCH) and evaluate their retests using a relative volume delta proxy.
While many structure tools focus only on price location, this script adds a momentum-context layer to help judge whether a breakout appears stronger or weaker when price returns to the level.
--- HOW IT WORKS ---
The engine follows a 4-step process before an entry signal is generated:
1. Structure Shift (CHoCH)
The script identifies a Change of Character when price breaks a significant swing pivot from the opposite trend.
2. Breakout Conviction
Using a relative volume delta proxy, the script captures the momentum profile of the breakout bar. Stronger breakout conditions are marked with a "+" or "⚡", while weaker conditions are marked with a "-".
3. Departure Rule
Unlike basic retest scripts, this engine requires price to clearly leave the level area before a retest can be validated. This helps reduce noise from signals that appear during the initial breakout phase.
4. Hybrid Confirmation
When price returns to the level, the script tracks cumulative delta-proxy behavior during the retest. An entry is only triggered if price respects the level and satisfies the selected confirmation mode:
Touch, Close Outside Level, or Engulfing.
--- DELTA SENTIMENT TAGS ---
Entry labels can include sentiment tags to help judge the quality of the retest:
⚡ = stronger breakout context and retest flow supporting the trend
~ = mixed context
? = weaker or opposing retest sentiment
These tags are context markers, not guarantees of continuation or failure.
--- KEY FEATURES ---
Customizable Confirmation
Choose between Touch, COL (Close Outside Level), or ENG (Engulfing) to match your preferred entry style.
Retest Sensitivity
Adjust the ATR-based proximity buffer to define how close price must come to the level to qualify as a retest.
Departure Logic
Requires price to leave the level area before a new retest entry can be considered.
Visual Clarity
Includes optional CHoCH and Entry triangles, dashed break-level lines, floating entry text, and trend-based bar coloring.
Delta Proxy Context
Adds a relative volume delta proxy to estimate breakout conviction and retest sentiment. This is a candle-and-volume efficiency model, not true bid/ask delta or footprint data.
Alerts
Includes separate alert toggles for CHoCH events and entry confirmations.
--- SETTINGS ---
Pivot Length
The number of bars required on each side to confirm a swing point.
Run Away Threshold
Adjusts the sensitivity of the breakout conviction model relative to recent delta-proxy activity.
Confirmation Mode
Selects how the retest must confirm before an entry is printed.
Entry and CHoCH Visual Controls
Triangle size, text size, and text offset can all be adjusted for readability.
DISCLAIMER
This script is for educational and analytical purposes only.
It is a confirmation and context tool, not a prediction engine.
Past performance does not guarantee future results.
Always use proper risk management. Indicator

Scalper Pro 3 Min GoldDesigned specifically for low-timeframe scalping (ideal for 1m and 3m charts, especially on XAUUSD/Gold), the Scalper Pro 3 Min Gold is an advanced market structure breakout indicator that filters out market noise to catch explosive momentum.
Instead of giving a signal at every minor high/low cross, this script uses strict logic to ensure you only enter high-probability setups. It automatically calculates your risk and visualizes the exact Entry, Stop Loss, and Take Profit zones directly on your chart.
Key Features:
Smart Structure Breakouts: Uses internal Pivot High/Low calculations to identify true Market Structure Shifts (MSS). Stop losses are dynamically placed at the most recent logical swing low/high, not just the previous candle wick.
Consolidation Filter (Anti-Chop): The indicator analyzes the recent ATR. It requires the price to be in a tight accumulation/consolidation zone before a breakout occurs. This keeps you out of choppy, sideways markets and fakeouts.
Cooldown System: Prevents overtrading. After a valid signal is fired, the indicator enters a customizable "cooldown" period where it ignores erratic back-to-back signals.
Auto Risk:Reward Projection: Instantly draws professional Stop Loss (Red) and Target (Teal) boxes with clean labels based on your selected R:R multiplier (Default is 1:2).
How to Use:
Apply to a 1-minute or 3-minute chart (Highly optimized for Gold).
Wait for the indicator to draw the Entry/Target boxes.
The Stop Loss is automatically placed at the safest structural pivot. Execute your trade and let the price run to the projected Teal target zone.
Fully customizable inputs allow you to adjust the R:R ratio, consolidation strictness, and cooldown length to fit your personal scalping strategy. Indicator

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

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

Multi-Pool Liquidity Confluence Scorer [MarkitTick]💡 Multi-dimensional analytical tool designed to track, evaluate, and trade liquidity sweeps across various temporal market structures. Rather than relying on a single structural anomaly, this indicator aggregates data from macro levels, micro swing pivots, volume dynamics, and momentum shifts to generate high-probability market context. By evaluating price action against algorithmic thresholds and institutional reference points, it removes the subjectivity from liquidity-based trading methodologies.
✨ Originality and Utility
● A Paradigm Shift in Liquidity Analysis
Standard liquidity indicators merely draw static lines at historical highs and lows. The Multi-Pool Liquidity Confluence Scorer introduces a dynamic grading system that quantifies the quality of a sweep. This utility is entirely original in its approach to synthesizing structural components—such as Fair Value Gaps (FVGs), Relative Volume (RVOL), and time-of-day sessions—into a singular actionable metric.
● The Confluence Scoring Engine
What sets this tool apart is its objective scoring architecture. It does not just alert when a Previous Day High is breached; it evaluates how it was breached. Did the sweep occur during the high-liquidity London or New York sessions? Was it accompanied by a surge in relative volume? Did the subsequent price action leave behind institutional footprints like a Fair Value Gap? By assigning weighted points to these phenomena, the indicator filters out low-probability noise and isolates premium market reversals.
🔬 Methodology and Concepts
● Multi-Timeframe Liquidity Aggregation
The core methodology relies on establishing a matrix of vulnerability. The indicator maps out the Previous Daily Highs/Lows (PDH/PDL) and Previous Weekly Highs/Lows (PWH/PWL), alongside dynamic swing pivots. These act as magnetic pools of resting orders (stops and breakout entries).
● Sweep Detection and Tolerance
A true sweep is defined mechanically: price must pierce the liquidity level (wicking above/below) but fail to sustain that momentum, ultimately closing back inside the range. To account for market noise, the script utilizes an Average True Range (ATR) multiplier to create a "Cluster Range," allowing it to detect sweeps that marginally miss or slightly overshoot exact historical levels.
● Change in State of Delivery (CISD)
A sweep alone is insufficient. The indicator mandates a CISD confirmation within a user-defined window of bars. For a bullish setup, after a sell-side sweep, the price must break above a recent swing high, ideally with significant displacement (large body size or the creation of a bullish FVG). This confirms that the market-makers have actively repriced the asset after absorbing the liquidity pool.
🎨 Visual Guide
● Reference Lines and Levels
Orange Dashed Line: Represents the Previous Day High (PDH).
Blue Dashed Line: Represents the Previous Day Low (PDL).
Solid Orange/Red Line: Represents the Previous Week High (PWH).
Solid Cyan Line: Represents the Previous Week Low (PWL).
Gray Dotted Lines: Track the recent internal Swing Highs and Swing Lows based on the lookback memory.
● Sweep and Risk Visualization
Dashed Highlight Boxes: Appear immediately when a sweep is detected. The color dynamically shifts based on the preliminary score (Yellow for Basic, Orange for Good, Pink/Red for Premium).
Yellow Background Zones: Highlight the exact Fair Value Gaps (FVG) that validate the momentum shift during the CISD phase.
Solid Risk Boxes: Drawn upon signal confirmation, mapping the exact risk parameter from the entry price down to the stop loss.
● Interactive Data and Dashboards
Signal Labels: Print "BUY" or "SELL" along with the qualitative rating (BASIC, GOOD, PREMIUM) directly on the chart.
Data Block Text: A monospace text block prints next to the entry, detailing the exact Entry Price, Stop Loss, and all three Take Profit (TP) targets.
On-Screen Dashboard: A table anchored to the corner of the chart tracks the real-time status of all macro levels (Intact vs. Swept), active sweep statuses, current live score, session data, and the macro EMA trend alignment.
📖 How to Use
● Identifying High-Probability Reversals
Wait for the indicator to identify a sweep of a major level. Do not enter immediately. Observe the chart as the indicator waits for the CISD confirmation. A signal is only generated when the market structures break in the opposite direction of the sweep and the aggregated score meets your minimum threshold.
● Executing and Managing the Trade
Once a valid signal (Buy/Sell Label) prints, the indicator projects the exact entry parameters. You can choose to enter at the market close of the signal bar, or utilize the FVG Limit Entry feature to wait for a retracement into the newly formed imbalance. The drawn lines provide strict Risk-to-Reward targets (TP1, TP2, TP3) scaled against your Stop Loss.
● Predictive Zone Targeting
If the market is trending, use the "Predictive Target Zones" feature. The indicator looks ahead to un-swept liquidity pools above or below current price action, scores them based on their confluence, and draws projected boxes on the right side of the chart. These act as ideal locations for taking final profits or anticipating the next major market reaction.
⚙️ Inputs and Settings
● Liquidity Levels & Sweep Detection
Show Previous Day/Week H/L: Toggles the visibility of macro time-frame reference points.
Swing Detection Length: Adjusts the sensitivity of the pivot highs and lows. Lower numbers find more micro-structure, while higher numbers find major structural swings.
Cluster Range (ATR multiplier): Defines the spatial tolerance around a line. Price does not need to hit it to the exact tick; it must simply enter this ATR-defined boundary.
CISD Window: The maximum number of bars allowed after a sweep for the market to prove a reversal by breaking structure.
● Confluence Scoring Engine
Minimum Score to Generate Signal: The gatekeeper setting. Increase this number (e.g., to 7+) to only receive "Premium" setups, drastically filtering out noise at the expense of trade frequency.
Volume Bonus: Awards extra points if the sweep occurs on a volume spike exceeding the RVOL threshold.
Session Bonus: Awards points if the sweep aligns with the high-volume London or New York macroeconomic windows.
● Signal & Trade Mechanics
Target (R:R) Multipliers: Defines the exact risk-to-reward ratios for TP1, TP2, and TP3 based on the distance between the entry and the stop loss.
Enable Trend Filter (EMA): When activated, Buy signals are strictly ignored if price is below the macro EMA, and Sell signals are ignored if above, aligning setups with the broader directional bias.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
● Market Microstructure and Liquidity Theory
The foundational logic of this script is anchored in the continuous double auction mechanism of modern financial markets. Large participants (institutional entities) cannot execute significant block orders without heavily impacting the price (slippage). To mitigate this, they must seek areas of high counter-party liquidity. In market microstructure theory, local extrema (such as previous day highs or visible swing lows) act as aggregation nodes for stop-loss orders. A stop-market order on a short position becomes a buy-market order when triggered. The indicator detects when these nodes are breached (the sweep) and identifies the immediate absorption of those orders.
● Volatility-Adjusted Spatial Grouping
Rather than utilizing fixed percentage bands or static tick offsets, the script employs the Average True Range (ATR) to establish dynamic clustering around reference points. The ATR is a measure of the decomposed variance of an asset's price over time. By multiplying the ATR by a fractional coefficient (inClusterPct), the script creates a mathematically sound confidence interval around historical levels. This adapts to heteroskedastic market conditions, ensuring that "near misses" in highly volatile environments are correctly categorized as liquidity tests.
● Mean-Reverting Volume Dynamics
The scoring engine utilizes a simple but effective statistical anomaly detection method for trading volume: Relative Volume (RVOL). By comparing the current bar's volume against a Simple Moving Average (SMA) of historical volume, it normalizes the data. When the volume deviates significantly from the mean during a sweep event (exceeding the inRvolThresh), it mathematically confirms anomalous participation. In academic finance, abnormal volume at price extremes is highly correlated with institutional capitulation or aggressive liquidity absorption, reinforcing the mean-reverting premise of the generated signals.
⚠️ 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. I 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

AG Pro Structural Momentum Oscillator [AGPro Series]AG Pro Structural Momentum Oscillator
OVERVIEW
AG Pro Structural Momentum Oscillator evaluates momentum through price structure instead of relying on a standard oscillator formula alone. The goal is not to duplicate a classic RSI, MACD, or stochastic workflow, but to study how price behaves internally: where bars close within their own range, how upper and lower wicks are distributed, how efficiently directional travel develops, and whether pullbacks remain controlled or start to damage the underlying move.
This produces a structure-based momentum reading that is designed to help users distinguish between constructive directional pressure, weak or unstable movement, and transition phases. In practice, the oscillator is intended for traders who want more context than a simple overbought/oversold style reading, while still keeping the visual experience compact and readable in a separate pane.
The model is normalized into a clean oscillator format and supported by an optional panel that exposes the internal components behind the headline score. This makes the script easier to inspect without turning it into a crowded dashboard. The result is a momentum tool that remains chart-friendly while still offering transparency about what is driving the current state.
WHAT THIS SCRIPT DOES
This script builds a composite momentum score from structural price behavior. Instead of measuring momentum only through smoothed distance or rate-of-change logic, it examines whether bars are closing with quality, whether wick balance supports continuation or rejection, whether the move is advancing efficiently, whether counter-moves are being absorbed, and whether directional pressure is persisting across the selected lookback.
The oscillator is shown in a separate pane so that the price chart remains clean. Stronger bullish conditions push the reading toward the upper zone, stronger bearish conditions push it toward the lower zone, and transitional behavior tends to cluster around the middle band. Optional markers can highlight structural shifts, expansion entries, and midline events, while the panel can display both the current state and the underlying component scores.
UNIQUE EDGE
The core idea here is structure-based momentum assessment.
This script does not attempt to repackage a traditional oscillator with cosmetic changes. Its momentum reading is built from several structural observations working together:
- close quality within the bar range
- wick pressure balance
- impulse efficiency
- pullback control
- directional persistence
That combination is what makes the oscillator different. It is not asking only whether price moved. It is asking how price moved, whether that movement was internally supportive, and whether the recent sequence of bars reflects constructive continuation or unstable friction.
Because of that design, the oscillator can be useful in situations where traders want additional confirmation around trend continuation, weakening follow-through, or state transitions, without depending on a single legacy oscillator formula.
METHODOLOGY
The composite score is built from a weighted structural model.
1) Close Quality
This measures where the bar closes relative to its own range. Bars that close with directional conviction contribute more positively or negatively than bars that finish in weak or indecisive positions.
2) Wick Pressure
This evaluates the balance between upper and lower wick behavior. It helps estimate whether rejection pressure is supporting the current direction or working against it.
3) Impulse Efficiency
This compares net directional progress against recent travel. Large movement alone is not treated as strength if the structure is inefficient or overly noisy.
4) Pullback Control
This examines whether counter-direction movement remains contained or begins to undermine the active directional leg.
5) Persistence
This tracks whether structural bias has been holding together across the recent window instead of flipping constantly from bar to bar.
These components are normalized and combined into a structural momentum oscillator score. The separate panel allows users to inspect the same internal drivers individually, which can be helpful when the headline reading is near transition levels.
SIGNALS AND ALERTS
The oscillator can be used visually or through alerts.
Depending on settings, the script can monitor:
- bullish structural shifts
- bearish structural shifts
- bullish expansion entries
- bearish expansion entries
- midline events
Optional markers can be displayed directly in the oscillator pane. The legend row in the panel explains what each marker type represents. Users who prefer a cleaner presentation can disable markers or legend items from the settings.
As with most technical tools, signals are best interpreted in context. A structural shift is not the same thing as a trade command. It is an analytical event showing that the model detected a meaningful change in the balance of recent price behavior.
KEY INPUTS
The script includes the following input groups:
- structure length
- persistence window
- pullback window
- smoothing
- expansion thresholds
- panel visibility and font size
- signal marker mode
- marker legend visibility
- marker cooldown
These controls allow the user to keep the oscillator relatively clean by default, or expose more information when deeper inspection is needed.
HOW TO READ IT
A higher reading generally indicates stronger constructive bullish structure. A lower reading generally indicates stronger constructive bearish structure. Readings near the middle zone typically represent mixed or transitional behavior rather than strong directional consensus.
The panel state labels are designed to summarize that environment in plain language. The component rows below the headline score can help explain why the state is strong, weak, improving, or deteriorating.
In general, the oscillator is most useful when read together with price structure, trend context, and nearby technical levels, rather than in complete isolation.
LIMITATIONS AND TRANSPARENCY
This script is an analytical aid, not a predictive engine.
It does not know future price direction. It only evaluates the recent structural character of price action according to its own model. Like any momentum-based tool, it can react quickly during strong directional phases and become less reliable during noisy, event-driven, or highly erratic conditions.
Different symbols and timeframes can also produce different structural behavior. Users should expect to adjust settings where appropriate and validate how the oscillator behaves on the markets they follow.
The script is designed to provide a structured interpretation of momentum, but it should not be treated as a guarantee of continuation, reversal, or trade outcome.
RISK DISCLOSURE
This indicator is provided for chart analysis, research, and educational use only. It does not provide financial advice, investment advice, or guaranteed signals. All trading decisions remain the sole responsibility of the user. Technical indicators should be used with risk management and broader market context, not as standalone certainty tools. Indicator

Global Session TrackerGlobal Session Tracker is a professional-grade Pine Script tool designed for "Time and Price" traders (such as those following ICT, SMC, or London Breakout strategies). It doesn't just show when a session is active; it dynamically tracks the Opening Range and flags the exact moment price breaches those boundaries.
🟢Indicator Overview
Global Session Tracker indicator acts as a visual map of the 24-hour trading cycle. By segmenting the day into Sydney, Tokyo, London, and New York, it allows traders to see how liquidity is engineered in one session and "swept" or "expanded" in the next.
Core Features
Session Candles: The indicator plots "phantom" candles over your main chart. These represent the high and low of the session from its start to the current moment.
Initial Balance (IB): The first candle of every session is marked with a label (e.g., "LON Open").
Dynamic Session Ranges: Unlike static boxes, this script uses plotcandle to create a continuous visual "ribbon" of the session's high/low boundary.
Real-Time Breakout Detection: It monitors the first bar of a session to set the initial high/low and then triggers signals if those levels are broken.
Status Labels: Floating labels on the right-hand axis provide a clean UI to identify which session is currently "Live" without cluttering the main price action.
Multi-Timezone Compatibility: Users can toggle the base timezone (UTC, EST, etc.) to align with their specific broker or local time.
Dashboard Table: A real-time HUD (Heads-Up Display) at the top right showing the Open, High, Low, and Close of only the currently active sessions.
🛠 Technical Details
Logic: "This script identifies the initial high and low of the first bar of a defined session and tracks breaches of these levels throughout the session duration."
Inputs: Explain that tz (Timezone) must match the user's preference for accurate session starts.
Visuals: * Triangles: Session Start.
1.Blue Circles: Bullish Breakout (Price > Session High).
2.Red Circles: Bearish Breakout (Price < Session Low).
Performance: "Zero-repainting logic; signals are confirmed at the close of the bar."
Inputs & Settings
Timezone: Set this to your local time or UTC to align the session hours correctly.
Session Times: Defaulted to standard institutional hours, but fully adjustable.
Show Table: Toggle the dashboard on or off.
📈 How to Use for Trading
Trading sessions provide the "context" for price action. Here are three professional ways to trade using this tool
Strategy 1: The London Breakout (The "Morning Shout")
The London session often sets the trend for the day.
Identify: Wait for the "LON Open" label.
Observe: Let the first 30–60 minutes form a range.
Trade: When you see a Blue Circle (Upside Break), look for a Long entry. If a Red Circle appears, look for a Short.
Target: The New York session open or the high/low of the previous Sydney/Tokyo range.
Strategy 2: The New York Reversal / Continuation
New York often "tests" the extremes of the London session.
Continuation: If New York opens and immediately breaks the London High (Blue Circle), the trend is strong.
Reversal: If price enters the New York session at the London High but fails to break it, look for price to return to the London Low.
Strategy 3: Using the Dashboard for Volatility
Monitor the High and Low columns in the table:
Compression: If the High and Low values for a session are very close (narrow range), it indicates a "Squeeze."
Expansion: A large gap between High and Low indicates a trending market. Professional traders often avoid entering "late" into an already massive expansion and wait for the next session to start.
Additional Strategies:
Global Session Tracker indicator is designed for Session-Based Liquidity Trading. Here are three common strategies:
Strategy A: The Initial Balance Breakout
The Concept: The high and low of the first hour (or the entire previous session) often act as support/resistance.
Trade Setup: Wait for the Blue Circle (High Break) or Red Circle (Low Break).
Execution: If London breaks the Tokyo High (Blue Circle), traders look for a "Stop Run" or a trend continuation toward the New York session.
Strategy B: The "Judas Swing" (ICT Concept)
The Concept: Price often breaks the previous session's high/low to grab liquidity before reversing.
Trade Setup: Use the breakout circles to identify when a level is breached. If a Red Circle appears (Low Break) but the candle closes back inside the range, it may indicate a "Fakeout," signaling a long entry.
Strategy C: Time-Price Alignment
The Concept: Volatility usually spikes at the "Open" shapes.
Trade Setup: Only take breakout signals that occur within 1 hour of the Triangle Up (Session Open) markers. Signals late in a session are often less reliable due to declining volume.
Indicator

Vortex Confluence Protocol [JOAT]Vortex Confluence Protocol - Strategy
Introduction
The Vortex Confluence Protocol is an open-source strategy that combines market structure analysis, momentum filtering, volume confirmation, multi-timeframe alignment, session awareness, liquidity analysis, and smart money concepts into a multi-layer confluence scoring system. A trade is only taken when enough independent factors agree on direction, producing a confluence score that meets a configurable minimum threshold. The strategy includes ATR-based stop losses, risk-reward take profits, and an optional trailing stop, all designed around realistic risk management principles.
Built with Pine Script v6, the strategy uses custom types for trade state, confluence scoring, quantum state, liquidity state, smart money state, and market regime detection.
Why This Strategy Exists
Most strategies rely on one or two conditions for entry — a moving average crossover, an RSI level, or a pattern match. These single-factor approaches are fragile because they lack confirmation from other market dimensions. The Vortex Confluence Protocol takes the opposite approach: it requires agreement across multiple independent analytical layers before committing capital. This multi-factor design aims to:
Reduce false signals: By requiring confluence from structure, momentum, volume, and MTF analysis simultaneously, the strategy filters out low-conviction setups
Adapt to market conditions: The regime filter (ADX-based) prevents trend-following entries during ranging markets and vice versa
Enforce discipline: The confluence scoring system makes the entry criteria explicit and quantifiable, removing subjective judgment from the entry decision
Manage risk systematically: ATR-based stops, configurable risk-reward ratios, and trailing stops provide a structured risk management framework
Strategy Default Properties
The strategy is published with the following default properties, which are critical to understanding the backtesting results:
Initial Capital: $100,000
Position Size: 2% of equity per trade
Commission: 0.1% per trade (round-trip 0.2%)
Slippage: 2 ticks per order
Pyramiding: 0 (no adding to positions)
Risk Per Trade: 1.0% of account
Risk:Reward Ratio: 2.0 (target is 2x the stop distance)
These defaults are intentionally conservative. The commission and slippage settings are included to produce realistic results that account for real-world execution costs. The 2% position size and 1% risk per trade ensure that no single trade can significantly damage the account.
Core Components Explained
1. Market Structure Analysis
The strategy uses pivot-based swing detection to identify the market's structural direction. It tracks swing highs and swing lows, then classifies structural events:
Break of Structure (BOS): Price breaks above the last swing high (bullish BOS) or below the last swing low (bearish BOS), confirming the existing trend
Change of Character (CHoCH): Price breaks a previous swing point against the current trend direction, signaling a potential reversal
The structure direction variable tracks the prevailing bias. When `requireBOS` is enabled (default), the strategy requires a fresh BOS or CHoCH event for entry, ensuring trades are taken at structurally significant moments rather than during drift.
2. FVG Confluence
Fair Value Gaps are detected using the standard three-bar pattern, filtered by a minimum size of 0.3x ATR. The strategy maintains arrays of active FVGs and checks whether current price is inside any bullish or bearish FVG zone. When `requireFVG` is enabled (default), the strategy requires price to be within an FVG zone aligned with the trade direction, adding an imbalance-based confirmation layer.
bool bullFVG = low > high and close > open
bool bearFVG = high < low and close < open
FVG zones older than 30 bars are automatically cleaned up to prevent stale zones from influencing current decisions.
3. Momentum Analysis
The momentum layer uses RSI with configurable length (default 14) and overbought/oversold levels (default 70/30). The RSI is smoothed with a 3-period EMA, and its rate of change is calculated to determine momentum direction:
Bullish momentum: Smoothed RSI above 50, RSI rising, and not overbought
Bearish momentum: Smoothed RSI below 50, RSI falling, and not oversold
The strategy also detects RSI divergences as additional context, though divergences alone do not trigger entries.
4. Volume Analysis
Volume confirmation requires the current volume to exceed a configurable multiple (default 1.2x) of the volume moving average. Additionally, the strategy estimates buying and selling volume using candle structure and calculates cumulative delta over 10 bars:
Bullish volume: High relative volume + positive delta + positive cumulative delta
Bearish volume: High relative volume + negative delta + negative cumulative delta
Volume anomalies (Z-score > 2.0) receive a bonus point in the confluence scoring system.
5. Multi-Timeframe Filter
The MTF filter fetches close, EMA, and RSI from a configurable higher timeframe (default 60m) using `request.security()` with `barmerge.lookahead_off` to prevent repainting. The higher timeframe trend must agree with the trade direction:
int htfTrend = htfClose > htfEMA ? 1 : htfClose < htfEMA ? -1 : 0
bool mtfBullish = htfTrend > 0 and htfRSI > 50
This ensures trades are taken in the direction of the larger trend, filtering out counter-trend entries that have lower win rates.
6. Session and Regime Filters
The session filter restricts trading to a configurable active session (default 0800-1600 EST). Trading outside of liquid market hours often produces worse fills and more erratic price action.
The regime filter uses ADX to classify the market as trending (ADX > 25) or ranging. In a trending regime, the strategy only takes trades in the trend direction. In a ranging regime, both directions are allowed. This prevents the strategy from fighting strong trends.
Chart showing the Vortex Confluence Protocol with entry signals, stop loss and take profit levels drawn on the chart, FVG zones highlighted, and the dashboard displaying the confluence score breakdown
7. Confluence Scoring System
The heart of the strategy is the confluence scoring system. Each analytical layer contributes points to a total score:
Structure: 1 point for structural direction alignment, +1 bonus if price is in an aligned FVG
Momentum: 1 point for momentum alignment
Volume: 1 point for volume confirmation, +1 bonus for anomaly
MTF: 1 point for higher timeframe alignment
Session: 1 point if within active session
Liquidity: 1 point for medium+ liquidity level, +1 bonus for sweep
Quantum: 1 point for quantum collapse, +1 bonus for high coherence
Smart Money: 1 point for positive SM score, +1 bonus for clear accumulation/distribution
Harmonic: 1 point for harmonic alignment
The total score must meet the minimum confluence threshold (default 3) for an entry to be considered. Additionally, all directional filters must agree — structure, momentum, MTF, volume, session, quantum, and smart money must all either support the direction or be disabled.
8. Risk Management
Stop Loss: Calculated as the tighter of two values: the ATR-based stop (close minus ATR * SL multiplier) or the recent swing low minus a small ATR buffer (for longs). This ensures the stop is placed at a structurally meaningful level.
if isLong
sl := math.min(close - atrVal * slATRMult, _recentLow - atrVal * 0.2)
Take Profit: Calculated as the entry price plus the stop distance multiplied by the risk-reward ratio (default 2.0). A 2:1 RR means the strategy needs to win only 34% of trades to break even (before commissions).
Trailing Stop: When enabled, the trailing stop follows price at a distance of ATR * trail multiplier (default 2.0). It only moves in the favorable direction, locking in profits as the trade progresses. The trailing stop updates the exit order dynamically.
Entry Conditions Summary
A long entry requires ALL of the following:
Long trades enabled
Confluence score >= minimum threshold
Structure direction is bullish
Momentum is not bearish (or momentum filter disabled)
MTF is not bearish (or MTF filter disabled)
Volume is not bearish (or volume filter disabled)
Within active session (or session filter disabled)
Regime allows longs
Quantum superposition is positive (or quantum filter disabled)
Smart money score is non-negative (or SM filter disabled)
Price is in a bullish FVG (if requireFVG enabled)
A BOS or CHoCH has occurred (if requireBOS enabled)
No existing position
Short entries require the inverse conditions.
Backtesting Considerations
Important notes about the published results:
Results include 0.1% commission per trade and 2 ticks slippage to simulate realistic execution
The strategy uses 2% of equity per trade, not 100% — this significantly reduces both returns and drawdowns compared to full-equity strategies
Pyramiding is disabled (0), meaning only one position can be open at a time
The strategy does not use leverage beyond what the position size implies
Results will vary significantly across different instruments, timeframes, and market conditions
Past performance does not indicate future results
Parameter sensitivity: The minimum confluence score is the most impactful parameter. Lower values (2-3) produce more trades but with lower average quality. Higher values (4-5) produce fewer, higher-quality trades but may miss valid setups. The default of 3 represents a balance between trade frequency and quality.
Optimization warning: Over-optimizing parameters to fit historical data will produce misleading results. The default parameters are designed to be reasonable across a range of instruments rather than perfectly fitted to any single one. If you adjust parameters, test across multiple instruments and time periods to verify robustness.
Sample size: For meaningful statistical analysis, ensure the backtest produces at least 100 trades. On higher timeframes or with high confluence requirements, you may need to extend the backtest period to achieve sufficient sample size.
Strategy performance panel showing trade list, equity curve, and key metrics with the confluence dashboard visible on the chart
Input Parameters
Strategy Settings:
Enable Long/Short Trades independently
Minimum Confluence Score (default 3)
Use Regime Filter, Session Filter
Advanced Features:
Quantum Confluence, Liquidity Analysis, Smart Money Concepts, Harmonic Patterns toggles
Quantum Coherence Threshold (default 0.7)
Risk Management:
Risk Per Trade (default 1.0%)
Risk:Reward Ratio (default 2.0)
Trailing Stop toggle and ATR Multiplier (default 2.0)
Stop Loss ATR Multiplier (default 1.5)
Market Structure:
Pivot Strength (default 5)
Require BOS/CHoCH and Require FVG Confluence toggles
Momentum:
RSI Length (default 14), Overbought (70), Oversold (30)
Require Momentum Alignment toggle
Multi-Timeframe:
Higher Timeframe (default 60m)
MTF Trend Length (default 20)
Volume:
Volume MA Length (default 20) and Volume Threshold (default 1.2)
Session:
Active Trading Session (default 0800-1600)
Timezone selection
Visual:
Show Entry Signals, SL/TP Levels, Dashboard, FVG Zones
How to Use This Strategy
Step 1: Apply the strategy to your instrument and timeframe. Review the default settings and adjust the session times and timezone to match your market.
Step 2: Run the backtest and review the results. Check the total number of trades — if fewer than 100, consider lowering the minimum confluence score or extending the backtest period.
Step 3: Review the equity curve for consistency. A healthy equity curve shows steady growth without extreme drawdowns. Large drawdowns followed by recovery may indicate the strategy is taking excessive risk.
Step 4: Use the dashboard to understand why trades are being taken. The confluence score breakdown shows which factors are contributing to each entry.
Step 5: If adapting parameters, change one at a time and test across multiple instruments. Avoid optimizing all parameters simultaneously, as this leads to curve-fitting.
Step 6: Consider using the strategy's signals as a filter for manual trading rather than as a fully automated system. The confluence score provides a quantified measure of setup quality that can inform discretionary decisions.
Strategy Limitations
The strategy uses market orders for entry, which means execution price may differ from the signal price, especially on volatile instruments or during news events
Delta and volume analysis use candle-structure estimation, not actual order flow data. This is an approximation.
The multi-factor requirement means the strategy will miss valid moves that only satisfy some conditions. This is by design — it prioritizes quality over quantity.
Backtesting results assume orders are filled at the close of the signal bar. Real-world execution may differ.
The strategy does not account for overnight gaps, dividend adjustments, or corporate events that can cause sudden price changes
Higher confluence requirements reduce trade frequency, which may not suit traders who need frequent activity
The regime filter uses ADX, which has an inherent lag in detecting regime changes
Commission and slippage settings should be adjusted to match your actual broker costs for accurate backtesting
Originality Statement
This strategy is original in its multi-layer confluence scoring approach. While individual components (structure detection, RSI, volume analysis, MTF filtering) are established concepts, this strategy is justified because:
It synthesizes nine independent analytical layers into a quantified confluence scoring system, providing a structured framework for multi-factor trade evaluation
The regime-aware filtering automatically adjusts entry criteria based on ADX-detected market conditions
Liquidity analysis with sweep detection and absorption ratio adds an institutional activity layer not found in standard multi-factor strategies
The quantum coherence scoring provides a novel metric for measuring the consistency of agreement across all analytical layers
Smart money phase detection (accumulation/distribution) adds a Wyckoff-inspired context layer to the entry decision
The risk management system combines structural stop placement (recent swing + ATR buffer) with dynamic trailing, providing both initial protection and profit locking
All entry conditions are explicit and quantifiable, making the strategy fully transparent and reproducible
Disclaimer
This strategy is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss and is not suitable for all investors. Backtesting results are hypothetical and do not guarantee future performance. Past performance is not indicative of future results. The strategy's results depend heavily on the instrument, timeframe, and market conditions. Commission, slippage, and execution quality in live trading may differ significantly from backtesting assumptions. Always use proper risk management, including position sizing appropriate for your account size and risk tolerance. Never risk more than you can afford to lose. The author is not responsible for any losses incurred from using this strategy.
-Made with passion by officialjackofalltrades
Strategy

Indicator

Esco Psychological Theory [v1]Esco Psychological Theory
An experimental framework for visualizing market psychology, crowd positioning, and institutional intent — derived entirely from price structure.
-Experimental Indicator
This tool does not generate buy or sell signals.
Esco Psychological Theory is a psychological lens — a way of interpreting what participants are likely feeling and who benefits from those emotional conditions.
Treat it as a research framework, not a trading system.
What This Is
Price does not simply move between support and resistance.
It moves through emotional states.
Every candle on your chart represents thousands of decisions made under fear, greed, hope, regret, and panic. Those emotions are not random — they tend to appear in recognizable structural patterns.
Smart money does not simply buy low and sell high.
It often creates the emotional conditions that force the crowd to do the opposite.
Esco Psychological Theory attempts to model this process. It reads structure, volatility expansion, displacement, liquidity sweeps, failed breakouts, and wick behavior — then infers what market participants are likely experiencing and how institutional players may be responding.
This indicator is not trying to predict price.
It is trying to frame why price may be behaving the way it is.
The Psychological Model
Markets tend to cycle through recognizable emotional regimes.
This indicator models those transitions using a sequential state machine. Regimes progress through adjacent states rather than jumping randomly, producing a more realistic psychological narrative.
The cycle:
COMFORT → TENSION → HOPE → TRAP RISK → PANIC → CAPITULATION → RELIEF → REACCUMULATION → …
Each regime leaves structural fingerprints that can be observed in price behavior.
Comfort
Low volatility, orderly trend behavior, shallow pullbacks.
The crowd feels positioned and confident.
This is often where smart money quietly builds exposure.
Tension
Equal highs/lows begin forming.
Repeated rejection at key levels.
Volatility compresses.
Something is building.
Hope
A displacement candle breaks structure.
Breakout traders enter aggressively.
Momentum appears convincing.
The move looks real.
Trap Risk
The breakout stalls or fails to continue.
Price reclaims prior levels.
Large wicks appear at extremes.
Late entries are now vulnerable.
Panic
Structure shifts against the prior trend.
Stops trigger.
Positions unwind quickly.
Volume spikes.
Capitulation
Consecutive displacement candles appear.
Multiple structure breaks occur rapidly.
Maximum forced repositioning.
Relief
Volatility begins to decline.
Price stabilizes and the market pauses.
Participants exit remaining positions.
Reaccumulation
Compression forms around new price levels.
Fresh pivots emerge.
Smart money quietly finishes positioning for the next cycle.
Modules
Emotional Regime Engine
Classifies the market’s current psychological regime using the sequential state model.
Transitions are constrained to realistic sequences rather than random jumps.
Labels appear only when the regime changes.
Optional background shading and a timeline ribbon allow you to visually track emotional phases across the chart.
Smart Money Intent
Estimates institutional behavior based on structural evidence.
Six possible classifications are evaluated simultaneously with confidence scoring.
Accumulation
Repeated demand absorption and compression near discount levels.
Distribution
Repeated supply rejection and compression near premium levels.
Liquidity Harvest
Sweeps of equal highs or lows followed by sharp displacement reversals.
Trap Engineering
Failed breakouts combined with equal level buildup and overextension.
Passive Absorption
Quiet wick rejection and declining volume at key levels.
Aggressive Repricing
Consecutive displacement candles and decisive structure breaks.
Crowd Bias
Infers likely crowd positioning based on structure alignment and momentum behavior.
Possible states include:
Positioned Long / Positioned Short
Trapped Long / Trapped Short
Chasing Momentum
Indecisive / Neutral
Pain & Pressure Engine
Estimates where future price movement would create the greatest psychological stress.
Pain direction is derived from:
trapped positioning
recent liquidity sweeps
failed breakout attempts
distance from equilibrium
premium / discount positioning
Pressure intensity (0–100%) measures the amount of latent repositioning energy in the market.
When pressure exceeds 70%, candles receive a subtle amber tint.
Soft gradient bands above and below price indicate potential pain direction — areas where movement could force the most participants to react.
Psychological Pressure Zones
Event-driven zones are created when structural events occur.
FOMO Zones
Breakout areas where late buyers or sellers entered.
Regret Zones
Failed breakout ranges containing trapped traders.
Trap Zones
Sweep-and-reclaim areas where liquidity was harvested.
Forced Zones
Panic and capitulation ranges created during liquidation events.
Zones automatically deduplicate, fade with time, and disappear once price cleanly resolves through them.
Premium / Discount Context
Using the most recent major swing high and low, the indicator calculates range positioning.
The chart displays:
Premium (top 25%)
Discount (bottom 25%)
Equilibrium midpoint
The dashboard shows the exact percentage location within the range.
Dashboard
A compact panel summarizes the full psychological read of the market.
Displayed metrics include:
Regime — current emotional state
Crowd — inferred crowd positioning
Intent — smart money classification with confidence score
Pain — directional pain bias
Pressure — psychological pressure intensity
Zone — premium / discount / equilibrium position
Phase — cycle phase progression
What This Indicator Is Not
This indicator does not predict price direction.
It does not have access to order flow, liquidation data, or actual market positioning.
Instead, it infers probable psychological conditions from the structural footprint that emotion leaves on a chart.
The classifications and intent scores are probabilistic interpretations, not definitive signals.
Use this as one analytical layer alongside your own discretionary framework.
Inputs
All modules can be enabled or disabled independently.
Key configuration options include:
Swing Lookback
Major Swing Lookback
Maximum Zone Age / Visible Zones
Regime Background and Timeline Ribbon
Pain Gradient and Pressure Bar Colors
Premium / Discount Shading
Event Markers (displacement candles, sweeps, MSS, squeeze events)
Notes
Overlay indicator (drawn directly on the price chart)
Pine Script v6
Compatible with all markets and timeframes
Lower timeframes may require smaller swing lookback values (10–14 recommended)
Higher timeframes benefit from larger values (21–50 recommended)
Feedback
This is the first public release of Esco Psychological Theory.
The framework is experimental and will continue evolving.
If you test it and have feedback, ideas, or suggestions for improving the psychological model or visual design, I would genuinely love to hear them.
Community input is welcome and appreciated.
Esco Psychological Theory
Structure reveals emotion.
Emotion reveals intent. Indicator

Institutional Delta Sweeps [BOSWaves]Institutional Delta Sweeps - Liquidity Engineering Detection with Sweep-Confirmed Directional Zones
Overview
Institutional Delta Sweeps is a liquidity-aware market structure system that identifies engineered price movements designed to absorb resting orders at significant swing highs and lows, then projects directional action zones derived from confirmed sweep behavior.
Rather than treating price extremes as simple support and resistance levels, this system evaluates them as active liquidity pools, concentrations of stop orders and pending positions that institutional order flow systematically targets before reversing. Sweep detection, pool visualization, and forward-projecting action zones are each driven by structural pivot logic, ATR-normalized zone construction, and comet-decay fade modeling.
This produces a dynamic picture of where liquidity rests, which pools have been raided, and where post-sweep directional opportunity emerges, distinguishing engineered reversals from ordinary price fluctuations rather than treating all breakouts as directional commitments.
Conceptual Framework
Institutional Delta Sweeps is founded on the principle that price does not break significant swing levels to continue, it breaks them to collect. The majority of retail positions cluster around swing highs and lows in the form of stop-loss orders and breakout entries, creating predictable liquidity concentrations that larger participants systematically exploit before reversing.
Traditional breakout frameworks interpret price exceeding a prior swing high or low as directional confirmation. This system inverts that premise: a wick beyond a structural level that closes back inside is treated not as a failed breakout but as a deliberate liquidity raid, and the close back inside, paired with structural reversion, becomes the actual signal.
Three core principles guide the design:
Liquidity pools form predictably at structural pivot highs and lows where the majority of the market has positioned stops.
A sweep is confirmed only when price wicks through the pool and the bar closes back inside prior structure, indicating rejection rather than continuation.
Post-sweep directional opportunity exists within the zone created by the sweep candle itself, where the aggressive move originated.
This reframes conventional breakout analysis into a liquidity engineering detection framework anchored in institutional order flow principles.
Theoretical Foundation
Institutional Delta Sweeps combines pivot-based structural identification, ATR-normalized zone construction, sweep confirmation logic, and time-decay visualization modeling.
Swing highs and lows are identified through configurable left and right pivot lookback periods, locating price extremes that attracted sufficient market participation to create meaningful liquidity concentrations. ATR-based zone depth provides adaptive scaling that accounts for varying volatility regimes, ensuring pool boundaries reflect realistic stop clustering distances rather than fixed offsets. Comet-decay fade modeling progressively reduces zone opacity as pools age, visually communicating diminishing relevance without removing valid unswept levels.
Four internal systems operate in tandem:
Pivot Detection Engine : Identifies confirmed structural highs and lows using bilateral lookback logic, capturing swing extremes with sufficient confirmation on both sides.
Liquidity Pool Construction : Builds ATR-scaled zone boxes above swing highs and below swing lows, with inner and outer boundary layers representing the core and extended stop clustering regions.
Sweep Confirmation Logic : Validates liquidity raids by requiring both wick penetration of the pool and a closing price back inside prior structure on the same candle, filtering genuine raids from false breakouts.
Comet-Decay Fade System : Applies exponential aging to unswept pool opacity, creating a visual comet-trail effect where fresher zones display with full intensity and older zones fade progressively toward expiry.
This architecture distinguishes active liquidity targets from stale, already-discounted levels while providing clear visual hierarchy across the chart.
How It Works
Institutional Delta Sweeps processes price through a sequence of structure-aware evaluation steps:
Pivot Identification : Bilateral lookback logic confirms swing highs and lows once sufficient price bars exist on both sides, anchoring zone placement to structurally significant levels.
Zone Construction : ATR-scaled boxes are drawn above each confirmed pivot high and below each confirmed pivot low, establishing the expected stop-clustering region with inner and outer boundary layers.
Level Line Projection : A horizontal reference line extends from each pivot price forward in time, maintaining visibility of the exact sweep threshold as price develops.
Market Structure Visualization : ZigZag connections between alternating swing highs and lows provide directional context, identifying the prevailing structural sequence surrounding each liquidity pool.
Comet-Decay Application : As bars accumulate from zone creation, opacity decreases via cubic decay curve. Fresh zones appear solid and prominent, aging zones fade toward invisibility approaching the maximum age threshold.
Sweep Detection : Each bar is evaluated against all active unswept zones. A bearish sweep confirms when price wicks above a high zone and closes below the pivot level with an open below it. A bullish sweep confirms when price wicks below a low zone and closes above the pivot level with an open above it.
Cooldown Enforcement : A configurable bar cooldown between sweeps of the same directional type prevents multiple triggers within the same impulse move, maintaining signal quality during volatile sequences.
Sweep Highlight Rendering : A localized box is drawn around the sweep wick from the wick extreme to the pivot price, visually marking the exact penetration zone with directional color coding.
Penetration Labeling : The percentage distance the wick traveled beyond the pivot price is calculated and displayed, quantifying the depth of the liquidity raid for contextual assessment.
Post-Sweep Zone Projection : Buy and Sell zones are drawn forward from the sweep candle body, extending a configurable number of bars into the future and marking the actionable re-entry region derived from the sweep structure.
Together, these elements form a continuously updating liquidity map that distinguishes engineered price movements from genuine directional expansion.
Liquidity Pools
Liquidity pools are the foundational structural element of this system. Each confirmed pivot high produces a bearish pool, a zone above the swing extreme where buy-stop orders and breakout entries have accumulated. Each confirmed pivot low produces a bullish pool, a zone beneath the swing extreme where sell-stop orders and breakdown entries cluster.
Pool depth is determined by the ATR Zone Width parameter, scaling zone thickness relative to recent volatility so that stop-clustering boundaries remain proportional to actual market movement ranges regardless of instrument or timeframe. An inner boundary layer within each pool highlights the densest expected stop concentration, while the outer boundary captures the extended reach of the zone.
Pools remain visible and active until one of two conditions is met: the zone is swept and confirmed, or the maximum zone age is exceeded. During their lifespan, pools fade progressively through the comet-decay model. Brightest at creation, dimming exponentially as time passes, providing immediate visual distinction between recently formed levels with high relevance and aged levels with diminishing structural significance.
This creates a living liquidity landscape across the chart, where the most actionable pools stand out clearly and historical zones naturally recede without requiring manual management.
Sweep Signals & Post-Sweep Zones
Sweep detection is the core signal event of this system. A confirmed sweep requires precise price behavior: the wick must penetrate the liquidity pool, but the bar must close entirely back inside prior structure with the open also inside structure, confirming that the excursion was absorbed and rejected rather than sustained.
When a bearish sweep confirms, a SELL ZONE is projected forward from the sweep candle body. This zone spans from the high of the sweep candle down to the upper boundary of the candle body, extending forward a configurable number of bars. The logic behind this zone is structural: the candle body represents where price was before and after the raid, and a return to this region following the sweep constitutes a re-engagement with the origin of the institutional move. Bearish continuation from within this zone aligns with the directional implication of the sweep.
When a bullish sweep confirms, a BUY ZONE is projected forward from the sweep candle body. This zone spans from the lower boundary of the candle body down to the sweep wick low, extending forward across the same configurable projection window. A price return into this zone after the sweep offers a structurally anchored re-entry aligned with the bullish implication of the liquidity raid.
Both zone types display with dashed borders and low-opacity fills to distinguish them from the liquidity pools themselves, and each carries a directional text label for immediate visual identification. The penetration percentage label at each sweep candle provides additional context, quantifying exactly how far price traveled into the liquidity cluster before rejecting. Deeper penetrations often indicate more aggressive institutional participation.
Sweep cooldown parameters prevent duplicate zone projection during fast markets, ensuring each projected zone corresponds to a single clean sweep event rather than a cascade of overlapping signals.
Interpretation
Institutional Delta Sweeps should be interpreted as a structural liquidity map with directional implications derived from confirmed engineered reversals:
Active Liquidity Pool (Bearish - Red) : Marks a confirmed pivot high where sell-stop and breakout-buy orders are clustered, representing a viable sweep target for downside liquidity raids.
Active Liquidity Pool (Bullish - Green) : Marks a confirmed pivot low where buy-stop and breakdown-sell orders cluster, representing a viable sweep target for upside liquidity raids.
Zone Opacity : Brighter, more saturated zones are recently formed and structurally relevant. Faded, transparent zones are aging toward expiry and carry reduced analytical weight.
Sweep Highlight Box : A small colored box enclosing the sweep wick marks the exact penetration region, distinguishing the raid candle visually from surrounding price action.
SWEEP % Label : Percentage above or below the pivot that the wick reached, providing raid depth context for conviction assessment.
SELL ZONE (Red Dashed) : Forward-projecting zone derived from a bearish sweep candle body, marking the region where price return offers structurally aligned short opportunity.
BUY ZONE (Green Dashed) : Forward-projecting zone derived from a bullish sweep candle body, marking the region where price return offers structurally aligned long opportunity.
Market Structure Lines : ZigZag connections between swing extremes provide directional trend context surrounding each liquidity pool.
Pool age, sweep confirmation quality, and structural trend alignment carry more interpretive weight than isolated wick penetration depth alone.
Strategy Integration
Institutional Delta Sweeps fits within liquidity-informed and structure-based trading approaches:
Sweep-Confirmed Reversals : Enter in the direction of the sweep implication, short following bearish sweeps, long following bullish sweeps, using the projected zone as the entry region.
Zone Re-entry Precision : Rather than entering immediately at the sweep candle close, wait for price to return to the projected Buy or Sell zone, offering a lower-risk entry with a structurally defined reference.
Pool-Based Anticipation : Identify active unswept pools ahead of price as areas where sweep attempts may occur, allowing pre-positioning for the subsequent reaction.
Structural Context Filtering : Use the market structure ZigZag to assess whether a sweep aligns with the broader directional sequence. Sweeps occurring against the prevailing structure carry higher reversal probability.
Penetration Depth Assessment : Deeper sweep penetrations may indicate more significant liquidity absorption, potentially supporting higher-confidence directional commitment following confirmation.
Multi-Timeframe Liquidity Mapping : Apply higher-timeframe pools as macro sweep targets and lower-timeframe sweep confirmations as precision entry triggers within the same directional thesis.
Technical Implementation Details
Pivot Engine : Bilateral lookback pivot detection with configurable left/right confirmation periods
Zone Construction : ATR-scaled dual-layer box system with inner concentration boundary and outer cluster boundary
Decay System : Cubic comet-decay fade applied to zone opacity across maximum age lifespan
Sweep Logic : Wick-penetration plus same-bar close-back confirmation with directional cooldown enforcement
Post-Sweep Projection : Body-anchored forward zones with configurable bar extension and dashed border styling
Visualization : Layered box architecture with level lines, sweep highlights, penetration labels, and directional zone text
Signal Logic : Alert conditions for both bullish and bearish sweep confirmations
Performance Profile : Optimized for real-time execution across all timeframes
Optimal Application Parameters
Timeframe Guidance:
1 - 5 min : Intraday liquidity raid detection with tighter pivot lookbacks for responsive pool formation
15 - 60 min : Session-level sweep identification with balanced zone aging and medium projection windows
4H - Daily : Macro liquidity pool mapping with wider pivot lookbacks and extended zone persistence
Suggested Baseline Configuration:
Pivot Lookback Left : 20
Pivot Lookback Right : 20
Sweep Cooldown Bars : 10
Zone ATR Width : 0.3
Max Zone Age (Bars) : 200
Buy/Sell Zone Projection : 50 bars
Show Liquidity Pools : Enabled
Highlight Sweep Zone : Enabled
Show Sweep Labels : Enabled
Project Buy/Sell Zones After Sweep : Enabled
Show Market Structure : Enabled
These suggested parameters represent a balanced starting point; asset-specific volatility profiles, structural swing frequency, and preferred signal density will require individual calibration for optimal performance.
Parameter Calibration Notes
Use the following adjustments to refine behavior without altering the core logic:
Too many zones forming : Increase Pivot Lookback Left and Right to require greater structural significance before a swing qualifies as a liquidity pool.
Zones expiring before being tested : Increase Max Zone Age to extend pool lifespan, particularly useful on slower-moving instruments.
Overlapping sweep signals : Increase Sweep Cooldown Bars to enforce greater separation between consecutive detections during volatile sequences.
Buy/Sell zones expiring before price returns : Increase Zone Projection bars to extend forward reach, allowing more time for post-sweep re-entries to develop.
Zones too thick or thin relative to price action : Adjust ATR Zone Width to scale pool depth proportionally to the instrument's typical volatility range.
Signal noise in ranging conditions : Tighten Pivot Lookback to require more local context around each swing, reducing zone formation in non-trending environments.
Adjustments should be assessed across a representative sample of market conditions rather than tuned to a single isolated session.
Performance Characteristics
High Effectiveness:
Trending markets with clear structural swing sequences and consistent directional momentum following sweep events
Instruments with predictable stop clustering behavior at technical swing levels
Reversal-oriented strategies entering at sweep confirmation with post-sweep zone precision
Multi-timeframe frameworks where higher-timeframe pools provide macro sweep targets
Reduced Effectiveness:
Grinding, overlapping markets where swing points form erratically without clean separation
Instruments with thin liquidity where stop-cluster raids are less institutionally driven
News-spike environments where price gaps through zones without canonical sweep-and-close patterns
Extended consolidation phases where pools accumulate without sufficient directional momentum to trigger sweep events
Markets with structural volatility expansion that consistently overshoots zones, triggering false sweep confirmations
Integration Guidelines
Pool Respect : Treat unswept pools as live structural targets. Price approaching these zones carries sweep attempt probability that should inform position management.
Zone Discipline : Only engage Buy and Sell zones when price returns to them after the sweep. Immediate entry at the sweep candle close sacrifices the structural precision the zone provides.
Structural Alignment : Weight sweeps more heavily when they align with the prevailing ZigZag structure sequence, and treat counter-structure sweeps as higher-risk with reduced position sizing.
Confluence : Combine with BOSWaves momentum tools, volume analysis, or session context to validate sweep events with supporting evidence beyond price structure alone.
Pool Age Awareness : Fresh pools with high opacity represent recently formed liquidity concentrations with strong relevance. Faded pools approaching age expiry warrant lower confidence in clean sweep behavior.
Disclaimer
Institutional Delta Sweeps is a professional-grade liquidity analysis and market structure tool. It applies pivot-based zone detection, ATR-normalized pool construction, and sweep confirmation logic but does not predict future price movements. Results depend on market conditions, structural swing clarity, parameter configuration, and disciplined execution. BOSWaves recommends deploying this indicator within a comprehensive analytical framework that incorporates momentum context, volume behavior, and rigorous risk management protocols. Indicator

Esco Theory v4Esco Theory maps the hidden geometry of price action. It identifies swing structure, plots geometric rails between pivots, detects supply and demand zones, fair value gaps, liquidity pools, compression patterns, and confluence clusters.
All signals are synthesized into a real-time dashboard so traders can read market structure and volatility conditions at a glance.
Built for traders who study displacement, structure shifts, and the expansion–compression cycles that drive price.
Features
Market Structure (BOS / MSS)
Automatically detects Break of Structure (BOS) and Market Structure Shifts (MSS) using configurable swing lookback. Bullish and bearish shifts are labeled directly on the chart with color-coded markers.
Displacement candles (body greater than 1.5× ATR) are highlighted to confirm impulsive moves.
Geometric Rails
Trendlines (“rails”) are drawn between consecutive swing highs and swing lows and extended forward.
Two tiers are available:
Minor Rails
Short-term pivots for intraday and swing geometry.
Major Cycle Rails
Higher-timeframe pivots that reveal broader structural channels.
Cross-rails connect swing highs to swing lows using dotted diagonals, revealing convergence and divergence patterns.
Cycle Fan
A fan of rays projects from the deepest major swing low through each major swing high (and vice versa), mapping the angular geometry of the current market cycle.
These angles often highlight reaction zones where time and price intersect.
Supply & Demand Zones
Zones are created at pivot candles confirmed by displacement on the following bar.
Each zone tracks retests and gradually fades in transparency as it is touched.
Mitigated zones are automatically removed to keep charts clean.
Fair Value Gaps (FVG) & Inverted FVGs
Three-candle imbalance gaps are detected and drawn as shaded boxes.
When a gap fills to its midpoint it converts into an inverted FVG, which can act as a continuation or re-entry zone.
Both gap types have independent color settings and optional auto-expiration.
Premium / Discount Zones
Using the most recent major swing high and low, price is divided into:
Premium (upper 25%)
Discount (lower 25%)
Equilibrium (midpoint)
A dotted equilibrium line marks fair value and helps filter entries.
Support & Resistance Clustering
All pivot prices are grouped by proximity.
Levels with multiple touches are drawn as dashed horizontal lines labeled with touch count:
S (3)
R (4)
Stronger clusters appear as thicker lines.
Confluence Zones
When three or more levels from different sources cluster together (pivots, S/R levels, supply and demand), a shaded confluence zone is drawn.
These areas often produce the strongest market reactions.
Liquidity — Equal Highs / Equal Lows
Swing highs and lows within a defined tolerance are identified as EQH and EQL liquidity pools.
These levels extend forward and often attract price before reversals or breakouts.
Liquidity Sweeps
When price wicks through an equal high or low and closes back inside the level, a sweep marker (✕) appears.
Sweeps often signal liquidity grabs before reversals.
Compression & Squeeze Detection
Two compression signals identify volatility contraction.
ATR Compression
Occurs when fast ATR drops below 60% of slow ATR.
Bollinger / Keltner Squeeze
When Bollinger Bands contract inside Keltner Channels.
When the squeeze releases, a triangle marker signals expansion.
A wedge overlay connects compression pivots to visualize tightening ranges.
Real-Time Dashboard
A compact panel displays current market conditions.
Bias
Current structure trend (Bullish / Bearish / Neutral)
Zone
Premium, Discount, or Equilibrium
Volatility
Squeeze, Compression, or Expansion
ATR Ratio
Fast ATR vs Slow ATR
BBW
Bollinger Band Width percentage
Wedge
Active compression wedge detection
FVG
Active gap count
Sweeps
Recent liquidity sweep count
Inputs & Customization
Every module can be toggled independently.
Key settings include:
Swing Lookback (minor and major)
Rail Extension length
Max Cross-Rails
Supply / Demand Pivot Length
FVG Minimum Size and Max Age
Support / Resistance Tolerance and Minimum Touches
Confluence Width and Minimum Levels
Equal High / Low Tolerance
All colors are fully customizable.
How to Use
Identify bias
Check the dashboard for current structure direction and premium/discount location.
Find confluence
Look for areas where rails, zones, gaps, and support/resistance overlap.
Watch compression
Squeeze diamonds and wedges signal volatility building.
Trade displacement
Highlighted candles confirm impulsive moves through key levels.
Monitor liquidity sweeps
EQH/EQL sweeps often precede reversals or expansions.
Notes
Overlay indicator designed for use directly on price charts.
Compatible with all markets and timeframes.
Lower timeframes with large bar counts may increase drawing load. Adjust lookback settings if needed.
Best used alongside discretionary price action and market context. Indicator

kNN Market Architecture [LuxAlgo]The kNN Market Architecture indicator is a professional-grade market structure framework that utilizes a k-nearest neighbors (kNN) machine learning classifier to validate price pivots across multiple time horizons. By integrating a dynamic detection engine, cumulative volume delta analysis, and a range-based volume profile, this tool provides a multi-layered hierarchical view of price action to identify high-probability reversal and breakout zones.
🔶 USAGE
The indicator identifies and classifies market structure into three distinct layers: Short-Term (ST), Medium-Term (MT), and Long-Term (LT). Unlike traditional pivot indicators that rely on static lookbacks, each point must pass a kNN similarity test based on relative volatility and volume features to be validated and plotted.
🔹 Multi-Scale Bias Analysis
Users can define which structural layer (ST, MT, or LT) dictates the overall market bias. When price is trading above the most recent validated high of the selected term, the candles and dashboard will reflect a bullish bias. Conversely, trading below the recent validated low indicates a bearish bias. This allows for seamless "top-down" analysis within a single chart view.
🔹 The Delta Tank
When a structural level is active (not yet breached), a "Delta Tank" label appears at the price line. This tool tracks the cumulative volume and delta (buying vs. selling pressure) since the level was formed.
A green icon with a high fill percentage indicates aggressive buying defending a support level or attacking resistance.
A red icon suggests selling pressure is mounting, potentially signaling an upcoming Break of Structure (BOS).
The percentage value represents the delta-to-total-volume ratio, providing a metric for the "exhaustion" or "strength" of a specific level.
🔹 Anchor Volume Profile
The indicator includes a dynamic Volume Profile that anchors itself specifically to the current active structural range. This profile calculates volume distribution between the most recent validated High and Low of your chosen Bias Source, allowing you to see exactly where the most "fair value" was traded within the current trading range.
🔶 ADVANTAGES OVER TRADITIONAL METHODS
The kNN Market Architecture offers several significant improvements over standard market structure indicators:
Noise Filtering via Machine Learning: Traditional pivot indicators plot every mathematical high/low within a window. The kNN classifier filters these by comparing the "signature" (volatility and volume) of the current point against historical successful pivots. If a pivot lacks the necessary confidence, it is ignored, leading to much cleaner charts.
Volatility-Adjusted Detection: Most indicators use a fixed lookback (e.g., 10 bars). This script uses a dynamic engine that expands during high volatility and contracts during low volatility, ensuring the structure remains relevant regardless of market speed.
Contextual Volume Data: While standard indicators only show price, this tool layers Volume Delta and Volume Profiles directly onto the structure points, providing the "why" behind price movements.
🔶 DETAILS
🔹 Auto-Adjust Sensitivity
The core of the detection engine is its ability to adapt to changing market conditions. When "Auto-Adjust Sensitivity" is enabled, the script calculates a volatility ratio by comparing the current ATR to its long-term average. During periods of high volatility, the engine automatically expands the detection window. This ensures that the indicator requires more significant price movement to confirm a new structure point, preventing "false positives" during erratic price swings. In low-volatility environments, the window contracts, making the engine more sensitive to subtle structural shifts.
🔹 kNN Validation Engine
For every potential price pivot, the engine analyzes features such as Relative ATR and Relative Volume. It compares these features against a historical database of previous pivots. If the current point does not meet the "Confidence Threshold" (the average score of its k-nearest neighbors), it is discarded.
🔶 SETTINGS
🔹 Dynamic Engine
Structure Sensitivity: Controls the base lookback for pivot detection.
Auto-Adjust Sensitivity: Enables volatility-based scaling of the detection engine.
🔹 kNN Classifier
k-Nearest Neighbors: The number of historical neighbors to compare against the current pivot.
Confidence Threshold: The minimum similarity score required to validate a structure point.
🔹 Visual Hierarchy
ST/MT/LT Toggles: Enables or disables the visibility of Short, Medium, and Long-term structures.
Bias Source: Choose which term (Auto, LT, MT, ST) governs candle coloring and the Volume Profile.
Color Candles by Bias: Toggles the gradient candle coloring based on the current range position.
🔹 Volume Profile
Show Volume Profile: Toggles the structural range-based profile.
Profile Rows: Adjusts the vertical granularity (price bins) of the profile.
Profile Width (%): Controls the horizontal scale of the profile.
Indicator

Esco Theory V3.1Esco Theory Geometry Model V3 is a structural analysis overlay that maps market geometry, supply and demand, liquidity, fair value gaps, and volatility compression in one framework.
The tool combines market structure, liquidity mapping, supply and demand zones, fair value gaps, and volatility squeeze detection into a single structural system.
It does not generate buy or sell signals. It shows the structural conditions that often precede large moves so traders can plan trades around them.
Built for discretionary traders who read price action and structure.
Originally developed for crypto futures but it works on any liquid market.
Every feature can be toggled on or off. Every color, lookback period, tolerance, and threshold is adjustable. You can run only rails and support resistance or the full system. It adapts to your trading style and timeframe.
WHAT IT SHOWS
V3 draws the structural architecture of price directly on the chart.
Geometric rails and trend channels from swing pivots
Horizontal support and resistance from clustered pivot levels
Supply and demand zones validated by displacement
Fair value gaps from three candle imbalances
Inverse fair value gaps from filled imbalances
Equal highs and equal lows that often act as liquidity targets
Confluence zones where multiple levels overlap
Volatility compression detection with squeeze and expansion signals
Each component is independent. Turn on what you use. Turn off what you do not.
GEOMETRIC RAILS
The indicator connects significant swing highs and lows with diagonal trendlines and projects them forward.
Minor rails track recent structure.
Major rails map the larger cycle.
Cross rails connect highs to lows for diagonal support and resistance.
Cycle fans project from cycle extremes through opposing pivots.
These rails form structural corridors that price often travels inside.
When a rail aligns with a horizontal level or a supply demand zone the reaction tends to be stronger.
Rail color, width, extension distance, and cross rail count are adjustable.
SUPPORT AND RESISTANCE
Nearby pivot points are clustered into horizontal levels.
Each level includes a touch count so you can see how many times price has reacted there.
More touches usually means a stronger level.
Levels automatically flip between support and resistance depending on where price trades relative to the level.
You control minimum touch count and clustering tolerance so detection can be tuned for your timeframe or market.
SUPPLY AND DEMAND ZONES
Zones are detected at pivots where price displaced strongly away from the origin candle.
A valid zone requires clear displacement.
Supply zones represent potential distribution areas.
Demand zones represent potential accumulation areas.
Zones are removed when price closes through them.
New in V3 zones track retests.
Each time price revisits a zone the color fades slightly and the label updates with the retest count.
A fresh zone with zero retests is strongest.
A zone labeled S x3 has been tested three times and is weaker.
Zone count, pivot lookback, mitigation behavior, fade behavior, and colors are configurable.
FAIR VALUE GAPS
V3 detects fair value gaps using three consecutive candles where a price gap forms around the middle candle.
Bullish FVG occurs when candle one high does not overlap with candle three low.
Bearish FVG is the inverse.
Fair value gaps represent price inefficiency where the market moved too quickly.
These areas often get revisited as price rebalances.
Minimum gap size, lifespan, and automatic removal after midpoint fill can be configured.
INVERSE FAIR VALUE GAPS
When a fair value gap is fully mitigated it becomes an inverse fair value gap.
A filled bullish FVG becomes resistance.
A filled bearish FVG becomes support.
The zone remains on the chart with a different color until price closes through it again.
This captures the common behavior where filled imbalance zones flip direction.
CONFLUENCE
The indicator scans all detected levels and highlights areas where several structures cluster together.
When rails, horizontals, and supply demand overlap the probability of a reaction increases.
Confluence zones show how many levels overlap in the same area.
Cluster width and minimum level count can be adjusted.
COMPRESSION AND SQUEEZE
Volatility compression is detected using ATR ratio, Bollinger Band width, and Keltner Channel containment.
When volatility contracts the chart highlights compression.
This means price is coiling and energy is building.
Optional wedge detection shows converging pivot structure during compression.
Compression thresholds and pivot lengths can be tuned.
SQUEEZE AND FIRE
The squeeze system identifies when Bollinger Bands sit inside Keltner Channels.
Red diamonds mark squeeze bars.
Volatility is compressed and a move is building.
This does not predict direction.
Green triangles mark the fire bar where compression releases and volatility expands.
Expansion often appears as breakouts or displacement candles.
LIQUIDITY
The indicator detects equal highs and equal lows.
These areas often act as liquidity pools where stops accumulate.
Price frequently moves toward these levels before reversing or continuing.
Tolerance for equal highs and lows can be adjusted.
HOW TO USE IT
Strong setups occur when several tools agree.
Typical workflow.
Read the rails and understand the direction of structure.
Identify key levels from support resistance, supply demand, and fair value gaps.
Look for confluence where several levels overlap.
Watch compression. Squeeze near a key level means energy is building.
Wait for fire. Expansion from a confluence area often produces the move.
Confluence matters more than any single signal.
The indicator is meant to be tuned to your style and timeframe. The default settings are a starting point.
MARKETS
Originally built for Bitcoin and crypto perpetual futures.
It works well on other liquid markets including Ethereum, forex majors, index futures, and high volume equities.
Default settings are tuned for crypto on 5 minute to 4 hour charts.
Adjust swing lookback and pivot length when switching markets or timeframes.
ESCO THEORY
Markets move through repeating cycles.
Compression
Liquidity grab
Expansion
Most traders only see the breakout.
Structural traders map the conditions that lead to it.
Esco Theory focuses on identifying those structural conditions.
Geometry Model V3 visualizes them on the chart.
DISCLAIMER
This indicator is for market structure analysis only.
It does not provide financial advice or automated trade signals.
Always use proper risk management.
Trade safe.
Esco Indicator

Liquidity Rejection StudyThe Liquidity Rejection Study is a specialized technical analysis tool designed to identify and visualize price exhaustion at key historical levels. By focusing on the relationship between price action, volume, and established pivot zones, this study helps traders distinguish between minor price fluctuations and significant structural shifts in market control.
Traders utilize the Liquidity Rejection Study to monitor institutional "footprints" left at supply and demand zones, providing a cleaner perspective on market reversals and trend continuation.
Calculation
The study operates through a multi-stage validation engine to ensure that only the most significant technical events are highlighted.
1. Structural Mapping: The indicator identifies local price extremes (Highest Highs and Lowest Lows) over a user-defined lookback period. These levels serve as the baseline for the liquidity zones.
2. Wick-to-Body Exhaustion: The study analyzes the anatomy of each candle interacting with these zones. A rejection is identified when a candle displays a high wick-to-body ratio (at least 2:1), indicating a failed attempt to breach the level.
3. Volume-Weighted Confirmation: To validate the rejection, the script requires a surge in volume relative to its moving average. This confirms that the price movement is backed by market liquidity.
4. Pivot Breach Validation: A "State Change" is only confirmed once the price successfully breaks the high (for bullish) or low (for bearish) of the rejection candle within a narrow time window.
Visuals and Interpretation
To maintain professional chart clarity, the study uses non-suggestive geometric markers:
Structural Diamonds: Confirmed rejections and structural shifts are marked with small diamond shapes. These signify points of high technical interest for discretionary analysis.
Historical Pivot Segments: The upper and lower boundaries used for the study are plotted as discrete lines, visualizing the active "liquidity ceiling" and "liquidity floor."
Inputs
Macro Baseline (EMA 200)
An optional trend filter. When enabled, the study only highlights rejections that align with the long-term institutional trend.
Pivot Lookback
The number of bars used to calculate the highest and lowest historical levels. A higher value results in more significant, longer-term zones.
Volume Threshold Multiplier
Adjusts the sensitivity of the volume filter. A value of 1.2, for example, requires volume to be 20% higher than the 20-period average to validate a rejection.
Volatility (ATR) Period
Sets the lookback for the Average True Range, which defines the "proximity zone" around the pivots where rejections are considered valid. Indicator

VisualStructureToolsLibrary "VisualStructureTools"
MTF-safe drawing library (Unix-Time). Designed for high visual discrimination and efficient debugging of complex logic without cluttering the main script.
Optimized for Pine Script® v6 to prevent runtime errors in multi-timeframe environments.
setLine(price, startTime, labelText, labelPos, is_extend, l_width, l_col, l_style)
Draws a horizontal level or a segment with an optional label.
Parameters:
price (float) : Price level for the line.
startTime (int) : UNIX timestamp (ms) for the starting point.
labelText (string) : Text to display on the label. Use "none" to hide.
labelPos (string) : Position of the label relative to the price ('above' or 'below', 'none').
is_extend (bool) : If true, the line extends infinitely (extend.both).
l_width (int) : Width of the line in pixels.
l_col (color) : Color for the line and label text.
l_style (string) : Style of the line ('solid', 'dashed', 'dotted').
setBox(top, bottom, startTime, endTime, boxText, b_col, b_width, b_style, b_transp)
Draws a filled box with an optional synchronized text label.
Parameters:
top (float) : Price of the upper boundary.
bottom (float) : Price of the lower boundary.
startTime (int) : UNIX timestamp (ms) for the left side of the box.
endTime (int) : UNIX timestamp (ms) for the right side (defaults to current 'time').
boxText (string) : Optional text label for the box. Use "" to hide.
b_col (color) : Border and fill color.
b_width (int) : Border width.
b_style (string) : Border style ('solid', 'dashed', 'dotted').
b_transp (int) : Transparency for the background fill (0-100). Library
