INVITE-ONLY SCRIPT
Liquidity [NINE Θ]

Liquidity Levels
(Advanced Swing Structure Analysis with Dynamic Proximity Filtering
COMPREHENSIVE INDICATOR OVERVIEW)
This indicator identifies and tracks liquidity levels using advanced pivot point analysis with dynamic proximity-based filtering. Unlike traditional support/resistance indicators, this tool specifically maps areas where liquidity pools are likely to accumulate based on market structure, providing traders with a systematic approach to identifying key price levels where significant market activity is anticipated.
CORE METHODOLOGY
Liquidity Level Detection
The indicator employs a dual-parameter swing detection system:
Left-side confirmation: 15 bars of price action validation
Right-side confirmation: 10 bars of subsequent price behavior verification
Pivot High Identification: Locates swing highs representing buyside liquidity (areas above previous highs where stop-losses and breakout orders accumulate)
Pivot Low Identification: Locates swing lows representing sellside liquidity (areas below previous lows where stop-losses and breakdown orders cluster)
Dynamic Proximity Filtering System
The indicator implements a sophisticated real-time sorting mechanism that:
Calculates the distance from current price to all active liquidity levels
Sorts levels independently for buyside and sellside
Displays only the N-closest levels per side (user-configurable 1-45)
Continuously updates visibility as price moves, ensuring only the most relevant levels are shown
Maintains separate tracking for levels above and below current price
DETAILED FEATURE DOCUMENTATION
1. LIQUIDITY TYPE SELECTION
Both: Displays both buyside and sellside liquidity levels simultaneously
Buyside: Shows only liquidity above swing highs
Sellside: Shows only liquidity below swing lows
2. VISUAL CUSTOMIZATION PARAMETERS
Line Styling Options:
Three style choices: Solid, Dashed, Dotted
Adjustable line width (1-10)
Separate styling for filled vs unfilled levels
Independent color selection for buyside and sellside
Label Configuration:
Four text size options: Normal, Large, Small, Tiny, Auto
Three alignment positions: Left, Middle, Right
Dynamic content display modes
3. ADVANCED LABEL DISPLAY MODES
Price Only: Shows the exact price level in optimized decimal format
Cryptocurrency precision for values < 0.00001
Forex precision for values < 1
Index/Stock precision for larger values
Timeframe Only: Displays timeframe tag indicating origin
Format examples: [M5], [H1], [H4], [D1], [W1]
Allows multi-timeframe liquidity analysis on single chart
Both: Combines price and timeframe information
None: Hides labels while maintaining line visibility
4. LEVEL MANAGEMENT SETTINGS
Max Lines Per Side (1-45)
Controls the number of visible levels:
Independent counting for buyside and sellside
Proximity-based selection (closest levels shown)
Automatic hiding of distant levels to reduce chart clutter
Real-time updates as price moves
Extend Until Filled
Behavioral control for unfilled levels:
When enabled: Lines extend indefinitely until price interaction
When disabled: Lines remain static at detection point
Hide Filled
Post-interaction behavior:
When enabled: Removes levels after price touches them
When disabled: Maintains levels with modified visual style (dotted)
5. FILL DETECTION MECHANISM
The indicator considers a level "filled" when:
The current bar's high is greater than or equal to the level AND
The current bar's low is less than or equal to the level
This ensures only genuine price interaction triggers the fill state
TECHNICAL IMPLEMENTATION DETAILS
Array-Based Level Management
Maintains parallel arrays for prices, types, and fill status
Implements efficient sorting algorithm for performance
Handles up to 500 simultaneous levels (TradingView maximum)
Automatic cleanup of oldest levels when limit reached
Performance Optimizations
Single-pass array traversal for updates
Conditional rendering based on visibility rules
Efficient memory management with proper cleanup
Optimized for real-time calculation without repainting
USE CASE SCENARIOS
1. SUPPORT/RESISTANCE ANALYSIS
Provides objective structural levels based on swing points
Filters noise by showing only proximate levels
Adapts dynamically as price action develops
2. MULTI-TIMEFRAME CONFLUENCE
Timeframe labels allow identification of higher timeframe levels
Enables confluence analysis when multiple timeframe levels align
Supports top-down analysis approach
3. RISK MANAGEMENT
Clear visual representation of potential reversal zones
Helps identify logical stop-loss placement areas
Assists in position sizing based on level proximity
WHAT MAKES THIS INDICATOR UNIQUE
1. DYNAMIC PROXIMITY FILTERING
Unlike static support/resistance indicators, this tool continuously recalculates and displays only the most relevant levels based on current price position, eliminating chart clutter while maintaining focus on actionable levels.
2. DUAL-STATE LEVEL TRACKING
Sophisticated handling of both filled and unfilled levels with different visual treatments, allowing traders to see both historical interaction points and pending liquidity zones simultaneously.
3. TIMEFRAME ATTRIBUTION SYSTEM
Each level is tagged with its originating timeframe, providing instant context about the significance and origin of each liquidity zone without requiring multiple chart analysis.
4. INTELLIGENT SORTING ALGORITHM
Custom implementation that separately sorts buyside and sellside levels by proximity, ensuring equal representation of liquidity both above and below current price.
INTERPRETATION GUIDELINES
BUYSIDE LIQUIDITY LEVELS (Above Price)
Represent areas where breakout traders' stops accumulate
Often targeted during liquidity grabs before reversals
Stronger levels show confluence across multiple timeframes
SELLSIDE LIQUIDITY LEVELS (Below Price)
Indicate zones where breakdown traders' stops cluster
Frequently swept before upward continuations
Multiple touches without breaks suggest strong support
FILLED VS UNFILLED LEVELS
Unfilled: Pending liquidity zones awaiting interaction
Filled: Historical levels showing previous liquidity events
Dotted filled levels may act as future reference points
COMPATIBILITY AND REQUIREMENTS
Works on all timeframes from 1-second to monthly charts
Compatible with all asset classes (Crypto, Forex, Stocks, Indices, Commodities)
Optimized for both trending and ranging market conditions
No repainting - all calculations based on confirmed closed bars
Maximum 500 levels tracked simultaneously for performance optimization
RECOMMENDED SETTINGS BY TRADING STYLE
DAY TRADING
Max Lines: 3-5 per side
Display: Both price and timeframe
Hide Filled: Enabled
Focus on nearest levels for quick reactions
SWING TRADING
Max Lines: 5-10 per side
Display: Price only
Hide Filled: Disabled
Monitor both filled and unfilled for context
POSITION TRADING
Max Lines: 10-20 per side
Display: Both price and timeframe
Extend Until Filled: Enabled
Track longer-term structural levels
This indicator provides a sophisticated approach to liquidity analysis, combining traditional technical analysis concepts with modern order flow understanding to identify interaction zones in any market.
(Advanced Swing Structure Analysis with Dynamic Proximity Filtering
COMPREHENSIVE INDICATOR OVERVIEW)
This indicator identifies and tracks liquidity levels using advanced pivot point analysis with dynamic proximity-based filtering. Unlike traditional support/resistance indicators, this tool specifically maps areas where liquidity pools are likely to accumulate based on market structure, providing traders with a systematic approach to identifying key price levels where significant market activity is anticipated.
CORE METHODOLOGY
Liquidity Level Detection
The indicator employs a dual-parameter swing detection system:
Left-side confirmation: 15 bars of price action validation
Right-side confirmation: 10 bars of subsequent price behavior verification
Pivot High Identification: Locates swing highs representing buyside liquidity (areas above previous highs where stop-losses and breakout orders accumulate)
Pivot Low Identification: Locates swing lows representing sellside liquidity (areas below previous lows where stop-losses and breakdown orders cluster)
Dynamic Proximity Filtering System
The indicator implements a sophisticated real-time sorting mechanism that:
Calculates the distance from current price to all active liquidity levels
Sorts levels independently for buyside and sellside
Displays only the N-closest levels per side (user-configurable 1-45)
Continuously updates visibility as price moves, ensuring only the most relevant levels are shown
Maintains separate tracking for levels above and below current price
DETAILED FEATURE DOCUMENTATION
1. LIQUIDITY TYPE SELECTION
Both: Displays both buyside and sellside liquidity levels simultaneously
Buyside: Shows only liquidity above swing highs
Sellside: Shows only liquidity below swing lows
2. VISUAL CUSTOMIZATION PARAMETERS
Line Styling Options:
Three style choices: Solid, Dashed, Dotted
Adjustable line width (1-10)
Separate styling for filled vs unfilled levels
Independent color selection for buyside and sellside
Label Configuration:
Four text size options: Normal, Large, Small, Tiny, Auto
Three alignment positions: Left, Middle, Right
Dynamic content display modes
3. ADVANCED LABEL DISPLAY MODES
Price Only: Shows the exact price level in optimized decimal format
Cryptocurrency precision for values < 0.00001
Forex precision for values < 1
Index/Stock precision for larger values
Timeframe Only: Displays timeframe tag indicating origin
Format examples: [M5], [H1], [H4], [D1], [W1]
Allows multi-timeframe liquidity analysis on single chart
Both: Combines price and timeframe information
None: Hides labels while maintaining line visibility
4. LEVEL MANAGEMENT SETTINGS
Max Lines Per Side (1-45)
Controls the number of visible levels:
Independent counting for buyside and sellside
Proximity-based selection (closest levels shown)
Automatic hiding of distant levels to reduce chart clutter
Real-time updates as price moves
Extend Until Filled
Behavioral control for unfilled levels:
When enabled: Lines extend indefinitely until price interaction
When disabled: Lines remain static at detection point
Hide Filled
Post-interaction behavior:
When enabled: Removes levels after price touches them
When disabled: Maintains levels with modified visual style (dotted)
5. FILL DETECTION MECHANISM
The indicator considers a level "filled" when:
The current bar's high is greater than or equal to the level AND
The current bar's low is less than or equal to the level
This ensures only genuine price interaction triggers the fill state
TECHNICAL IMPLEMENTATION DETAILS
Array-Based Level Management
Maintains parallel arrays for prices, types, and fill status
Implements efficient sorting algorithm for performance
Handles up to 500 simultaneous levels (TradingView maximum)
Automatic cleanup of oldest levels when limit reached
Performance Optimizations
Single-pass array traversal for updates
Conditional rendering based on visibility rules
Efficient memory management with proper cleanup
Optimized for real-time calculation without repainting
USE CASE SCENARIOS
1. SUPPORT/RESISTANCE ANALYSIS
Provides objective structural levels based on swing points
Filters noise by showing only proximate levels
Adapts dynamically as price action develops
2. MULTI-TIMEFRAME CONFLUENCE
Timeframe labels allow identification of higher timeframe levels
Enables confluence analysis when multiple timeframe levels align
Supports top-down analysis approach
3. RISK MANAGEMENT
Clear visual representation of potential reversal zones
Helps identify logical stop-loss placement areas
Assists in position sizing based on level proximity
WHAT MAKES THIS INDICATOR UNIQUE
1. DYNAMIC PROXIMITY FILTERING
Unlike static support/resistance indicators, this tool continuously recalculates and displays only the most relevant levels based on current price position, eliminating chart clutter while maintaining focus on actionable levels.
2. DUAL-STATE LEVEL TRACKING
Sophisticated handling of both filled and unfilled levels with different visual treatments, allowing traders to see both historical interaction points and pending liquidity zones simultaneously.
3. TIMEFRAME ATTRIBUTION SYSTEM
Each level is tagged with its originating timeframe, providing instant context about the significance and origin of each liquidity zone without requiring multiple chart analysis.
4. INTELLIGENT SORTING ALGORITHM
Custom implementation that separately sorts buyside and sellside levels by proximity, ensuring equal representation of liquidity both above and below current price.
INTERPRETATION GUIDELINES
BUYSIDE LIQUIDITY LEVELS (Above Price)
Represent areas where breakout traders' stops accumulate
Often targeted during liquidity grabs before reversals
Stronger levels show confluence across multiple timeframes
SELLSIDE LIQUIDITY LEVELS (Below Price)
Indicate zones where breakdown traders' stops cluster
Frequently swept before upward continuations
Multiple touches without breaks suggest strong support
FILLED VS UNFILLED LEVELS
Unfilled: Pending liquidity zones awaiting interaction
Filled: Historical levels showing previous liquidity events
Dotted filled levels may act as future reference points
COMPATIBILITY AND REQUIREMENTS
Works on all timeframes from 1-second to monthly charts
Compatible with all asset classes (Crypto, Forex, Stocks, Indices, Commodities)
Optimized for both trending and ranging market conditions
No repainting - all calculations based on confirmed closed bars
Maximum 500 levels tracked simultaneously for performance optimization
RECOMMENDED SETTINGS BY TRADING STYLE
DAY TRADING
Max Lines: 3-5 per side
Display: Both price and timeframe
Hide Filled: Enabled
Focus on nearest levels for quick reactions
SWING TRADING
Max Lines: 5-10 per side
Display: Price only
Hide Filled: Disabled
Monitor both filled and unfilled for context
POSITION TRADING
Max Lines: 10-20 per side
Display: Both price and timeframe
Extend Until Filled: Enabled
Track longer-term structural levels
This indicator provides a sophisticated approach to liquidity analysis, combining traditional technical analysis concepts with modern order flow understanding to identify interaction zones in any market.
僅限邀請腳本
只有經作者批准的使用者才能訪問此腳本。您需要申請並獲得使用權限。該權限通常在付款後授予。如欲了解更多詳情,請依照以下作者的說明操作,或直接聯絡unlimitedmoneyprinter。
除非您完全信任其作者並了解腳本的工作原理,否則TradingView不建議您付費或使用腳本。您也可以在我們的社群腳本中找到免費的開源替代方案。
作者的說明
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
僅限邀請腳本
只有經作者批准的使用者才能訪問此腳本。您需要申請並獲得使用權限。該權限通常在付款後授予。如欲了解更多詳情,請依照以下作者的說明操作,或直接聯絡unlimitedmoneyprinter。
除非您完全信任其作者並了解腳本的工作原理,否則TradingView不建議您付費或使用腳本。您也可以在我們的社群腳本中找到免費的開源替代方案。
作者的說明
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。