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.
Dans le plus pur esprit TradingView, l'auteur de ce script l'a publié en open-source, afin que les traders puissent le comprendre et le vérifier. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais la réutilisation de ce code dans des publications est régie par nos Règles. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.
Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.