This enhanced version of the liquidations indicator is designed for use with Pine Script™ version 6 and provides a more detailed view of potential liquidation levels on your chart. The key features include:
Volume-Based Liquidation Calculations: The script calculates a volume difference over a user-defined lookback period and uses the mean difference to filter out noise. It then determines whether the current volume difference exceeds specific thresholds (e.g., 5x, 10x, 25x, 50x, and 100x leverage conditions).
Pivot Point Integration: Pivot high and low points are identified using configurable parameters. Optionally, these pivot lines can be displayed to visually aid in understanding where the price reversals occur.
Dynamic Liquidation Lines: For each leverage group, the script draws corresponding liquidation lines above and below the price. The calculations adjust the liquidation level based on whether the signal is from a pivot high or pivot low, reflecting potential liquidation prices for both long and short positions.
Real-Time Ratio Display: An additional feature of this version is the display of a ratio label. This label, positioned on the right side of the price (using yloc.price and label.style_label_right), shows:
The number of liquidation lines above the price (from pivot highs) The number of liquidation lines below the price (from pivot lows) The ratio (or proportion) of liquidation lines above to those below the price This offers traders an at-a-glance summary of the market’s liquidation pressure. Customizability and Flexibility: Users can toggle the display of pivot settings and each leverage group’s liquidation lines individually. Colors and line extensions can be adjusted to fit the user’s charting preferences.
Overall, this improved script aims to deliver clearer, more actionable information regarding potential liquidation levels while keeping the code organized and fully compliant with Pine Script™ version 6.
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publications is governed by House rules. Bir grafikte kullanmak için favorilere ekleyebilirsiniz.
Bu komut dosyasını bir grafikte kullanmak ister misiniz?
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.