Liquidity Finder Library🔵 Introduction
You may intend to utilize the "Liquidity" detection capability in your indicators. Instead of writing it, you can import the "Liquidity Finder" library into your code. One of the advantages of this approach is time-saving and reduction in scripting errors.
🔵 Key Features
Identification of "Statics Liquidity"
Identification of "Dynamics Liquidity"
🔵 How to Use
Firstly, you can add the library to your code as shown in the example below :
import TFlab/LiquidityFinderLibrary/1 as Liq
The parameters of the "LLF" function are as follows :
sPP : A float variable ranging from 0 to 0.4. Increasing this number decreases the sensitivity of the "Statics Liquidity Line Detection" function and increases the number of detected lines. The default value is 0.3.
dPP : A float variable ranging from 0.4 to 1.95. Increasing this number increases the sensitivity of the "Dynamics Liquidity Line Detection" function and decreases the number of detected lines. The default value is 1.
SRs : An int variable. By default, it's set to 8. You can change this number to specify the periodicity of static liquidity pivot lines.
SRd : An int variable. By default, it's set to 3. You can change this number to specify the periodicity of dynamic liquidity pivot lines.
ShowHLLs : A bool variable. You can enable or disable the display of "High Statics Liquidity Line".
ShowLLLs : A bool variable. You can enable or disable the display of "Low Statics Liquidity Line".
ShowHLLd : A bool variable. You can enable or disable the display of "High Dynamics Liquidity Line".
ShowLLd : A bool variable. You can enable or disable the display of "High Dynamics Liquidity Line".
🟣Recommendation
You can use the following code snippet to import Liquidity Finder into your code for time-saving.
//import Library
import TFlab/LiquidityFinderLibrary/1 as Liq
//input
SLLS = input.float(0.30 , 'Statics Liquidity Line Sensitivity', maxval = 0.4 ,minval = 0.0, step = 0.01) // Statics Liquidity Line Sensitivity
DLLS = input.float(1.00 , 'Dynamics Liquidity Line Sensitivity', maxval = 1.95 ,minval = 0.4, step = 0.01) // Dynamics Liquidity Line Sensitivity
SPP = input.int(8 , 'Statics Period Pivot') // Statics Period Pivot
DPP = input.int(3 , 'Dynamics Period Pivot') // Dynamics Period Pivot
ShowSHLL = input.bool(true , 'Show Statics High Liquidity Line')
ShowSLLL = input.bool(true , 'Show Statics Low Liquidity Line')
ShowDHLL = input.bool(true , 'Show Dynamics High Liquidity Line')
ShowDLLL = input.bool(true , 'Show Dynamics Low Liquidity Line')
//call function
Liq.LLF(SPP,DPP,SLLS,DLLS,ShowSHLL,ShowSLLL,ShowDHLL,ShowDLLL)
Liquiditymethod
Liquidation Volume (Zeiierman)█ Overview
The Liquidation Volume (Zeiierman) indicator highlights real-time long and short liquidations across all timeframes on TradingView. The indicator assists traders in identifying potential liquidation points in the market based on volume and price movements. Liquidation, in this context, refers to the forced closure of a trader's position due to insufficient margin in their account to support open positions, often occurring during significant price movements.
█ How It Works
The indicator operates primarily through the computation of a MomentumAdjustedPrice function, which is applied to volume-weighted prices (open, high, low, close) adjusted for volatility.
█ How to Use
Identifying Support and Resistance Levels: Liquidation data can provide valuable insights into key market levels where significant trading activities occur. These levels often act as support or resistance in the price chart. Support levels are typically where an asset's price finds a floor, as buying interest is significant enough to outweigh selling pressure. Conversely, resistance levels are where an asset's price may find a ceiling, with selling interest outweighing buying pressure. By analyzing liquidation data, traders can identify these critical points.
Start of a New Trend:
The initiation of a new trend can often be identified by a significant shift in liquidation volumes near breakout levels.
Trend Continuations:
Trend continuations are periods where the current trend is sustained and further confirmed by liquidation patterns. For example, in an uptrend, continuous short liquidations might occur, suggesting that the trend is strong and likely to persist as bearish traders keep getting squeezed out. In a downtrend, continuous long liquidations can serve as confirmation that the trend is still in place. Recognizing these patterns in liquidation data can help traders to stay aligned with the prevailing trend and avoid premature exits or entries against the trend.
Trend Reversals: Patterns in liquidations can be crucial in signaling potential trend reversals. A sudden and significant change in liquidation volumes—like a spike in long liquidations during a downtrend or short liquidations during an uptrend—can indicate that the current trend is losing steam and a reversal may be imminent. This information can be particularly useful for traders looking to anticipate market turns and adjust their strategies accordingly.
Spot Potential Liquidation Points: By observing the liquidation candles and their colors, traders can identify where large liquidations are likely occurring, signaling potential market turning points.
Understand Market Sentiment: Changes in liquidation volumes can provide insights into bullish or bearish sentiment, helping traders gauge the market mood. By observing liquidation patterns and clusters, traders can get insights into prevailing market sentiments and emerging trends.
█ Settings
Liquidation Source: Allows selection between 'Price' and 'Volume' for liquidation analysis.
Volume Period: Determines the period over which volume is averaged.
Volatility Period: Sets the length for calculating standard deviation, influencing the volatility measure.
Candle Display Toggle: Enables or disables the display of liquidation candles on the chart.
Threshold: Sets the level at which liquidation bars are triggered.
-----------------
Disclaimer
The information contained in my Scripts/Indicators/Ideas/Algos/Systems does not constitute financial advice or a solicitation to buy or sell any securities of any type. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
My Scripts/Indicators/Ideas/Algos/Systems are only for educational purposes!
Liquidity Swings [LuxAlgo]The liquidity swings indicator highlights swing areas with existent trading activity. The number of times price revisited a swing area is highlighted by a zone delimiting the swing areas. Additionally, the accumulated volume within swing areas is highlighted by labels on the chart. An option to filter out swing areas with volume/counts not reaching a user-set threshold is also included.
This indicator by its very nature is not real-time and is meant for descriptive analysis alongside other components of the script. This is normal behavior for scripts detecting pivots as a part of a system and it is important you are aware the pivot labels are not designed to be traded in real-time themselves.
🔶 USAGE
The indicator can be used to highlight significant swing areas, these can be accumulation/distribution zones on lower timeframes and might play a role as future support or resistance.
Swing levels are also highlighted, when a swing level is broken it is displayed as a dashed line. A broken swing high is a bullish indication, while a broken swing low is a bearish indication.
Filtering swing areas by volume allows to only show significant swing areas with an higher degree of liquidity. These swing areas can be wider, highlighting higher volatility, or might have been visited by the price more frequently.
🔶 SETTINGS
Pivot Lookback : Lookback period used for the calculation of pivot points.
Swing Area : Determine how the swing area is calculated, "Wick Extremity" will use the range from price high to the maximum between price close/open in case of a swing high, and the range from price low to the minimum between price close/open in case of a swing low. "Full Range" will use the full candle range as swing area.
Intrabar Precision : Use intrabar data to calculate the accumulated volume within a swing area, this allows obtaining more precise results.
Filter Areas By : Determine how swing areas are filtered out, "Count" will filter out swing areas where price visited the area a number of time inferior to the user set threshold. "Volume" will filter out swing areas where the accumulated volume within the area is inferior to the user set threshold.
🔹 Style
Swing High : Show swing highs.
Swing Low : Show swing lows.
Label Size : Size of the labels on the chart.
Note that swing points are confirmed after Pivot Lookback bars, as such all elements are displayed retrospectively.