OPEN-SOURCE SCRIPT
Aggiornato Institutional Delta Sweeps [BOSWaves]

Institutional Delta Sweeps [BOSWaves] - Liquidity Engineering Detection with Sweep-Confirmed Directional Zones
Overview
Institutional Delta Sweeps [BOSWaves] 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:
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:
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:
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:
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:
Technical Implementation Details
Optimal Application Parameters
Timeframe Guidance:
Suggested Baseline Configuration:
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:
Adjustments should be assessed across a representative sample of market conditions rather than tuned to a single isolated session.
Performance Characteristics
High Effectiveness:
Reduced Effectiveness:
Integration Guidelines
Disclaimer
Institutional Delta Sweeps [BOSWaves] 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.
Overview
Institutional Delta Sweeps [BOSWaves] 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 [BOSWaves] 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.
Note di rilascio
Updated commentsScript open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.