Risk AwarenessRisk Awareness - Liquidation Level Indicator
A clean, professional tool for displaying liquidation prices on leveraged positions. Designed for traders who need instant visibility of their risk levels without chart clutter.
KEY FEATURES
Real-time liquidation price calculation for long and short positions
Adjustable leverage from 1x to 200x
Fire engine red (long) and lime green (short) color-coded levels
Two label modes: Compact (minimal) and Detailed (full info)
Horizontal lines extending left from current price
Optional P&L tracking and display
Background alerts when approaching liquidation
Customizable maintenance margin and liquidation fee parameters
HOW IT WORKS
The indicator calculates liquidation prices using the standard formula:
Long Liquidation = Entry Price x (1 - 1/Leverage - Liquidation Fee + Maintenance Margin)
Short Liquidation = Entry Price x (1 + 1/Leverage + Liquidation Fee - Maintenance Margin)
Default parameters (0.5% maintenance margin, 0.5% liquidation fee) are calibrated for major crypto futures exchanges like Binance, Bybit, and OKX.
DISPLAY MODES
Compact Mode: Shows only leverage and price (e.g., "40x: 48750.00")
Detailed Mode: Shows full information including percentage distance and optional P&L
CUSTOMIZATION OPTIONS
Position Settings: Adjust leverage, toggle long/short, select entry price source
Custom Parameters: Fine-tune maintenance margin and liquidation fee for your specific exchange
Visual Settings: Colors, line width, label size, historical bands, disclaimer display
Alert Settings: Set distance threshold for liquidation warnings
Risk Management: Track unrealized P&L based on position size
ALERTS
Built-in alert conditions for:
Price crossing liquidation levels
Approaching liquidation threshold
Critical loss levels (50%+)
IMPORTANT DISCLAIMER
This indicator provides ESTIMATED liquidation levels for Tier 1 positions (small to medium size). Actual liquidation prices may vary due to:
- Position size tiers (larger positions = higher maintenance margins)
- Accumulated funding rates
- Market volatility and order book depth
- Cross margin vs isolated margin mode
- Exchange-specific liquidation engines
Always verify liquidation prices on your exchange platform before trading. This tool is for educational and risk awareness purposes only.
IDEAL FOR
Crypto futures traders on Binance, Bybit, OKX, and similar platforms
Day traders managing leveraged positions
Swing traders monitoring overnight risk
Anyone trading with leverage who needs clear visual risk management
PRO TIPS
Use Compact mode with Tiny/Small label size for minimal chart clutter
Enable the Info Table for detailed metrics when needed
Set Alert Distance to 1-2% for advance warning before liquidation
Toggle "Show Historical Bands" OFF (default) for cleaner charts
Adjust Custom Parameters if trading on exchanges with different fee structures
Stay aware. Trade smart. Manage your risk.
Indikator Pine Script®






















