OPEN-SOURCE SCRIPT

BitMEX Liquidation Levels

Updated
This indicator plots BitMEX liquidation levels:
- 25x
- 50x
- 100x

The indicator works as following:
  • The underlying assumption (as with all liquidation calculations) obviously is that traders used fixed margin or go "all in" on their cross-margin account.
  • You then can configure a minimum trade volume and a minimum price change in percent for a candle to start computing liquidation levels from that candle
  • Additionally: configure the price base for the liqudation level: Candle high or low (default) works well, but you can also set "candle close" or "median high/low"
  • The indicator will then plot horizontal lines on the main chart showing price levels where many positions opened at the configured "start candle" will likely get liquidated.


It works for all BitMEX contracts and while it has been optimized for BitMEX, it will work on other exchanges with the same leverage levels (25x, 50x, 100x) and maintenance margin requirements too.


This indicator uses the Smart Volume indicator to compute the volume at the "start volume candle" setting where the liquidation level starts. This indicator can be found here: Smart Volume:
Smart Volume
Release Notes
- added 10x liquidation levels
- added candle close price to liquidation alert messages
Release Notes
fixed style
Release Notes
draw bars less thinner
Bitcoin (Cryptocurrency)cryptoCryptocurrencyEthereum (Cryptocurrency)Trend AnalysisVolume

Open-source script

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 publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


Full time & full stack developer - professional trader wolfbot.org

✅ 💹 Automate your Crypto TradingView Signals ✅ 💹 wolfbot.org/strategies/tradingview-signal-strategy/
20% discount code: tvdiscount20
Also on:

Disclaimer