This indicator is designed to identify potential liquidity levels on the chart by detecting swing highs and lows, which are often areas where stop-loss orders or significant orders accumulate. It visualizes these levels with horizontal lines and labels on the right side of the chart, color-coded based on volume to help traders understand where the market might seek liquidity.
How It Works
Swing Highs and Lows: The indicator uses the ta.pivothigh and ta.pivotlow functions to identify significant swing points over a user-defined lookback period (Swing Length). These points are considered potential liquidity levels where stop-loss orders might be placed.
Volume Analysis: The indicator compares the volume at each swing point to the average volume over a specified period (Volume Average Length). Levels with above-average volume are colored red, indicating higher liquidity, while levels with below-average volume are colored green.
Liquidity Visualization: Horizontal dashed lines are drawn at each identified level, extending across the chart. Labels on the right side display the estimated liquidity amount (simulated based on volume and a multiplier, Volume Multiplier for Liquidity).
Sell Signal: A "SELL NOW" label appears when the price approaches a liquidity level after an uptrend (detected using a simple moving average crossover). This suggests a potential reversal as the market may target liquidity at that level.
Strategy Concept: Market Seeking Liquidity
The indicator is based on the concept that markets often move toward areas of high liquidity, such as clusters of stop-loss orders or significant order accumulations. These liquidity pools are typically found around swing highs and lows, where traders place their stop-losses or large orders. By identifying these levels and highlighting those with higher volume (red lines), the indicator aims to show where the market might move to "grab" this liquidity. For example, after an uptrend, the market may reverse at a swing high to take out stop-losses above that level, providing liquidity for larger players to enter or exit positions.
Settings
Swing Length: The number of bars to look back for detecting swing highs and lows. Default is 20.
Liquidity Threshold: The price threshold for merging nearby levels to avoid duplicates. Default is 0.001.
Volume Average Length: The period for calculating the average volume to compare against. Default is 20.
Volume Multiplier for Liquidity: A multiplier to scale the volume into a simulated liquidity amount (displayed as "K"). Default is 1000.
Usage Notes
Use this indicator on any timeframe, though it may be more effective on higher timeframes (e.g., 1H, 4H) where swing points are more significant.
Red lines indicate levels with higher volume, suggesting stronger liquidity pools that the market might target.
Green lines indicate levels with lower volume, which may be less significant.
The "SELL NOW" signal is a basic example of how to use liquidity levels for trading decisions. It appears when the price approaches a liquidity level after an uptrend, but it should be used in conjunction with other analysis.
Adjust the Volume Multiplier for Liquidity to scale the displayed liquidity amounts based on your instrument (e.g., forex pairs may need a higher multiplier than indices).