PROTECTED SOURCE SCRIPT
Advanced Liquidity Pools (Revention)

Overview
This indicator provides a sophisticated visualization of potential Buy-Side Liquidity (BSL) and Sell-Side Liquidity (SSL) zones based on recent market structure swing points (pivots). It goes beyond simply plotting levels by incorporating a dynamic probability estimation to highlight the liquidity pool calculated as most likely to be targeted next. The goal is to offer traders a clearer view of potential stop-hunt zones and areas where market manipulation might occur.
Key Features
Dynamic Liquidity Boxes: Identifies BSL (above price) and SSL (below price) using pivot highs/lows and visualizes them as filled boxes extending into the future.
Hunt Odds Visualization: The color intensity and transparency of each box dynamically adjust based on a calculated "hunt odds" score. This score estimates the likelihood of the zone being targeted based on its age, current market volatility (ranging vs. trending), and the direction of the most recent liquidity sweep. Boxes with higher calculated odds appear more prominent.
Most Probable Target Highlight: The single BSL or SSL box with the highest calculated odds, adjusted for the last sweep direction, is highlighted with a distinct background color (default yellow), drawing attention to the area deemed most likely for the next liquidity grab.
Contextual Information: Optionally displays text directly on the highlighted box showing:
The calculated "Hunt Odds" percentage.
A Higher Timeframe (HTF) Alignment Score (0-4), indicating how many selected higher timeframes show a trend (based on EMA crossover) that aligns with the direction needed to reach the highlighted target.
How It Works
Pivot Detection: Identifies swing highs and lows based on the user-defined Pivot Lookback.
Zone Creation: Creates a box around each pivot, extending forward in time. The height is based on a multiple of the Average True Range (ATR).
Odds Calculation: For each active (non-mitigated) box, it calculates a "Hunt Odds" score using weighted factors:
Age: Older zones have lower odds.
Market Condition: Zones have higher odds during detected ranging periods.
Last Sweep: The zone opposite the most recently swept liquidity side receives higher odds.
Highlighting: Determines the highest-odds BSL and SSL, then selects the "most probable" target based primarily on the last_sweep_dir (prioritizing the opposite side) or secondarily on the highest overall odds.
HTF Alignment: Checks the trend direction (via EMA cross) on up to four user-selected higher timeframes and counts how many align with the direction towards the highlighted target.
Visualization: Updates the background color, border width, and text display for each box based on its odds and whether it's the highlighted target. Mitigated boxes are removed.
Disclaimer
The "Hunt Odds" percentage displayed is a speculative estimate derived solely from the indicator's internal logic and simplified market factors (age, range detection, last sweep). It is NOT a statistically validated probability of future price movement. Market dynamics are complex, and liquidity hunts are influenced by numerous factors not captured by this indicator. This tool should be used as a visual aid to supplement your own market analysis, confluence finding, and risk management strategies. Do not base trading decisions solely on the highlighted zone or the calculated odds.
Potential Use Cases
Identifying potential areas where stop-loss orders may be clustered.
Visualizing how market conditions (ranging) might increase the likelihood of stop hunts.
Gauging higher timeframe trend alignment towards key liquidity zones.
Serving as a component within a broader trading strategy focused on liquidity concepts and market manipulation patterns (e.g., waiting for rejection or acceptance at highlighted zones).
This indicator provides a sophisticated visualization of potential Buy-Side Liquidity (BSL) and Sell-Side Liquidity (SSL) zones based on recent market structure swing points (pivots). It goes beyond simply plotting levels by incorporating a dynamic probability estimation to highlight the liquidity pool calculated as most likely to be targeted next. The goal is to offer traders a clearer view of potential stop-hunt zones and areas where market manipulation might occur.
Key Features
Dynamic Liquidity Boxes: Identifies BSL (above price) and SSL (below price) using pivot highs/lows and visualizes them as filled boxes extending into the future.
Hunt Odds Visualization: The color intensity and transparency of each box dynamically adjust based on a calculated "hunt odds" score. This score estimates the likelihood of the zone being targeted based on its age, current market volatility (ranging vs. trending), and the direction of the most recent liquidity sweep. Boxes with higher calculated odds appear more prominent.
Most Probable Target Highlight: The single BSL or SSL box with the highest calculated odds, adjusted for the last sweep direction, is highlighted with a distinct background color (default yellow), drawing attention to the area deemed most likely for the next liquidity grab.
Contextual Information: Optionally displays text directly on the highlighted box showing:
The calculated "Hunt Odds" percentage.
A Higher Timeframe (HTF) Alignment Score (0-4), indicating how many selected higher timeframes show a trend (based on EMA crossover) that aligns with the direction needed to reach the highlighted target.
How It Works
Pivot Detection: Identifies swing highs and lows based on the user-defined Pivot Lookback.
Zone Creation: Creates a box around each pivot, extending forward in time. The height is based on a multiple of the Average True Range (ATR).
Odds Calculation: For each active (non-mitigated) box, it calculates a "Hunt Odds" score using weighted factors:
Age: Older zones have lower odds.
Market Condition: Zones have higher odds during detected ranging periods.
Last Sweep: The zone opposite the most recently swept liquidity side receives higher odds.
Highlighting: Determines the highest-odds BSL and SSL, then selects the "most probable" target based primarily on the last_sweep_dir (prioritizing the opposite side) or secondarily on the highest overall odds.
HTF Alignment: Checks the trend direction (via EMA cross) on up to four user-selected higher timeframes and counts how many align with the direction towards the highlighted target.
Visualization: Updates the background color, border width, and text display for each box based on its odds and whether it's the highlighted target. Mitigated boxes are removed.
Disclaimer
The "Hunt Odds" percentage displayed is a speculative estimate derived solely from the indicator's internal logic and simplified market factors (age, range detection, last sweep). It is NOT a statistically validated probability of future price movement. Market dynamics are complex, and liquidity hunts are influenced by numerous factors not captured by this indicator. This tool should be used as a visual aid to supplement your own market analysis, confluence finding, and risk management strategies. Do not base trading decisions solely on the highlighted zone or the calculated odds.
Potential Use Cases
Identifying potential areas where stop-loss orders may be clustered.
Visualizing how market conditions (ranging) might increase the likelihood of stop hunts.
Gauging higher timeframe trend alignment towards key liquidity zones.
Serving as a component within a broader trading strategy focused on liquidity concepts and market manipulation patterns (e.g., waiting for rejection or acceptance at highlighted zones).
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had – ketahui lebih lanjut di sini.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had – ketahui lebih lanjut di sini.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.