This script was created for the Bull Bear Bots community to help users manage their risk with respect to avoiding the dreaded liquidation emails from BitMex.
Colour legend:
Dark Green - Liquidation point for Longs
Light Green - Bankruptcy point for Longs
Dark Red - Liquidation point for Shorts
Light Red - Bankruptcy point for Shorts
Disclaimer: As BitMex do not publish the exact calculations for liquidation, this should be used as an approximation only as the results are slightly offset to what the official calculator provides. This issue is not unique to this script and if you cross-check all the other online calculators with the official one, you will find the same issue.
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.