OPEN-SOURCE SCRIPT
Swing Points & Liquidity — ENHANCED PRO (Dark/Light Mode)

This indicator — “Swing Points & Liquidity — ENHANCED PRO (Dark/Light Mode)” — automatically detects and visualizes swing highs, swing lows, and liquidity levels on the chart with rich analytics and customizable visuals.
🔍 Core Features
Smart Swing Detection: Identifies pivot highs/lows based on adjustable left/right bar settings.
Liquidity Visualization: Draws dynamic boxes and lines for liquidity pools and swing zones.
Volume & OI Integration: Filters and colors levels using volume and Open Interest Δ (change).
Strength Meter: Highlights strong liquidity levels with color gradients based on OI + volume intensity.
Automatic Trendlines: Connects swing points with selectable style and width.
Fibonacci Mapping: Automatically projects fib retracements (23.6%, 38.2%, 50%, 61.8%, 78.6%) from swing-to-swing for confluence zones.
Statistics Panel: Displays live metrics — total levels, active/filled count, success rate, and average strength.
Alerts System: Alerts for new swing formations and when price touches or breaks a level.
Multi-Timeframe Option: Analyze swing structures from higher timeframes on any chart.
Dual Theme Mode: Fully optimized for both Dark and Light interface preferences.
⚙️ Advanced Options
Adjustable lookback range
Hide or extend filled levels
Configurable volume and OI thresholds
Supports multiple OI data sources (Binance, BitMEX, Kraken)
Fully dynamic text, color, and label alignment settings
💡 Use Case
Perfect for Smart Money Concept (SMC) and ICT-style analysis, liquidity sweeps, and swing-based trading.
Traders can quickly visualize where liquidity sits, track how it gets filled, and monitor structure shifts in real time.
🔍 Core Features
Smart Swing Detection: Identifies pivot highs/lows based on adjustable left/right bar settings.
Liquidity Visualization: Draws dynamic boxes and lines for liquidity pools and swing zones.
Volume & OI Integration: Filters and colors levels using volume and Open Interest Δ (change).
Strength Meter: Highlights strong liquidity levels with color gradients based on OI + volume intensity.
Automatic Trendlines: Connects swing points with selectable style and width.
Fibonacci Mapping: Automatically projects fib retracements (23.6%, 38.2%, 50%, 61.8%, 78.6%) from swing-to-swing for confluence zones.
Statistics Panel: Displays live metrics — total levels, active/filled count, success rate, and average strength.
Alerts System: Alerts for new swing formations and when price touches or breaks a level.
Multi-Timeframe Option: Analyze swing structures from higher timeframes on any chart.
Dual Theme Mode: Fully optimized for both Dark and Light interface preferences.
⚙️ Advanced Options
Adjustable lookback range
Hide or extend filled levels
Configurable volume and OI thresholds
Supports multiple OI data sources (Binance, BitMEX, Kraken)
Fully dynamic text, color, and label alignment settings
💡 Use Case
Perfect for Smart Money Concept (SMC) and ICT-style analysis, liquidity sweeps, and swing-based trading.
Traders can quickly visualize where liquidity sits, track how it gets filled, and monitor structure shifts in real time.
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.