PROTECTED SOURCE SCRIPT
已更新

Liquidity Sweeps + Swing High/Low — SMC/ICT (@PueblaATH)

269
Liquidity Sweeps + Swing High/Low — SMC/ICT (PueblaATH) is a liquidity-driven Smart Money Concepts tool that automatically maps out key swing highs and lows, tracks how they evolve into liquidity pools, and highlights when those levels are swept and either respected or invalidated. This indicator is built to give traders a clean, event-driven view of stop runs and liquidity grabs across any timeframe, from scalping to higher-timeframe context.

What the Indicator Does
  • Swing Structure & Liquidity Pools
    Detects swing highs and lows using a configurable swing length, projects levels forward in time, and builds a liquidity-pool database through pivot arrays used for sweep detection.
  • Liquidity Sweeps (Stop Runs)
    Identifies bearish (upward) and bullish (downward) sweeps through prior liquidity levels using three modes: Any Touch, Wick + Close Back, and Retest Rejection.
    Each sweep can generate projective lines, labeled markers, and alerts.
  • Scope, Rate Limiting & Clean Visuals
    Controls minimum spacing between swings and sweeps, limits sweep duplication, auto-revokes invalidated sweeps, and restricts the maximum number of visible events.
    Smart offset logic reduces label overlap and keeps charts clean even in dense price action.
  • Timeframe Filters & Utilities
    Allows hiding all drawings between specific timeframes and optionally skipping calculations or clearing internal state when hidden.
    Includes debug pivot markers and an optional TF/Bucket badge.

Timeframe Auto-Mode (Original Adaptive Engine)
This indicator features a fully original, seven-bucket Auto-Mode engine that adapts sensitivity to the active timeframe.
  1. Bucket Classification (by seconds)
    ≤1m, >1m–15m, >15m–30m, >30m–1h, >1h–4h, >4h–1d, >1d.
  2. Bucket-Specific Settings
    Each bucket has unique sensitivity sets:
    Swing/Sweep lengths
    Projection distances
    Line style and width
    Rate-limiting gaps
    Pivot count and bar-lookback windows
    Overlap windows
  3. Adaptive Behavior
    Lower timeframes gain more reactive behavior, while higher timeframes apply smoother and more selective filters.
  4. Manual Override
    Auto-Mode can be disabled to use the Core manual settings for full customization.

How to Use It
  • Attach the indicator and choose whether to keep Auto-Mode ON or OFF.
  • Select the sweep mode (e.g., Wick + Close Back for ICT-style liquidity grabs).
  • Adjust label text, size, color, and offsets to your preference.
  • Use timeframe filters to show drawings only where you want them.
  • Enable alerts for bullish sweeps, bearish sweeps, or revocations.
  • Combine sweep events with your own confluence (sessions, bias, OBs/FVGs, etc.).

Originality & Credits Disclaimer
This script is an original work by PueblaATH, created specifically for Liquidity Sweeps + Swing High/Low — SMC/ICT (PueblaATH) under the MPL 2.0 license.
  • The concepts used (swing highs/lows, liquidity pools, sweeps, SMC/ICT behavior) are public and widely known—they do not belong to any author or protected script.
  • This indicator does not repackage or cosmetically modify existing code.
    Its architecture—including the multi-bucket Auto-Mode engine, pivot/sweep management system, revocation logic, overlap-aware labeling, and TF-based hide/skip/clear controls—is uniquely implemented for this script.
  • If any future update reuses or adapts code from public sources, full credit will be given in both comments and description, with clear explanation of what was reused and what was originally added or improved.
版本注释
Liquidity Sweeps + Swing High/Low — SMC/ICT (PueblaATH) is a liquidity-driven Smart Money Concepts tool that automatically maps out key swing highs and lows, tracks how they evolve into liquidity pools, and highlights when those levels are swept and either respected or invalidated. This indicator is built to give traders a clean, event-driven view of stop runs and liquidity grabs across any timeframe, from scalping to higher-timeframe context.

What the Indicator Does
  • Swing Structure & Liquidity Pools
    Detects swing highs and lows using a configurable swing length, projects levels forward in time, and builds a liquidity-pool database through pivot arrays used for sweep detection.
  • Liquidity Sweeps (Stop Runs)
    Identifies bearish (upward) and bullish (downward) sweeps through prior liquidity levels using three modes: Any Touch, Wick + Close Back, and Retest Rejection.
    Each sweep can generate projective lines, labeled markers, and alerts.
  • Scope, Rate Limiting & Clean Visuals
    Controls minimum spacing between swings and sweeps, limits sweep duplication, auto-revokes invalidated sweeps, and restricts the maximum number of visible events.
    Smart offset logic reduces label overlap and keeps charts clean even in dense price action.
  • Timeframe Filters & Utilities
    Allows hiding all drawings between specific timeframes and optionally skipping calculations or clearing internal state when hidden.
    Includes debug pivot markers and an optional TF/Bucket badge.

Timeframe Auto-Mode (Original Adaptive Engine)
This indicator features a fully original, seven-bucket Auto-Mode engine that adapts sensitivity to the active timeframe.
  1. Bucket Classification (by seconds)
    ≤1m, >1m–15m, >15m–30m, >30m–1h, >1h–4h, >4h–1d, >1d.
  2. Bucket-Specific Settings
    Each bucket has unique sensitivity sets:
    Swing/Sweep lengths
    Projection distances
    Line style and width
    Rate-limiting gaps
    Pivot count and bar-lookback windows
    Overlap windows
  3. Adaptive Behavior
    Lower timeframes gain more reactive behavior, while higher timeframes apply smoother and more selective filters.
  4. Manual Override
    Auto-Mode can be disabled to use the Core manual settings for full customization.

How to Use It
  • Attach the indicator and choose whether to keep Auto-Mode ON or OFF.
  • Select the sweep mode (e.g., Wick + Close Back for ICT-style liquidity grabs).
  • Adjust label text, size, color, and offsets to your preference.
  • Use timeframe filters to show drawings only where you want them.
  • Enable alerts for bullish sweeps, bearish sweeps, or revocations.
  • Combine sweep events with your own confluence (sessions, bias, OBs/FVGs, etc.).

Originality & Credits Disclaimer
This script is an original work by PueblaATH, created specifically for Liquidity Sweeps + Swing High/Low — SMC/ICT (PueblaATH) under the MPL 2.0 license.
  • The concepts used (swing highs/lows, liquidity pools, sweeps, SMC/ICT behavior) are public and widely known—they do not belong to any author or protected script.
  • This indicator does not repackage or cosmetically modify existing code.
    Its architecture—including the multi-bucket Auto-Mode engine, pivot/sweep management system, revocation logic, overlap-aware labeling, and TF-based hide/skip/clear controls—is uniquely implemented for this script.
  • If any future update reuses or adapts code from public sources, full credit will be given in both comments and description, with clear explanation of what was reused and what was originally added or improved.
版本注释
Error Fixed. Update 3.0.

免责声明

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.