Liquidations Meter [LuxAlgo]

The Liquidation Meter aims to gauge the momentum of the bar, identify the strength of the bulls and bears, and more importantly identify probable exhaustion/reversals by measuring probable liquidations.


This tool includes many features related to the concept of liquidation. The two core ones are the liquidation meter and liquidation price calculator, highlighted below.

🔹Liquidation Meter

The liquidation meter presents liquidations on the price chart by measuring the highest leverage value of longs and shorts that have been potentially liquidated on the last chart bar, hence allowing traders to:

  • gauge the momentum of the bar.
  • identify the strength of the bulls and bears.
  • identify probable reversal/exhaustion points.

Liquidation of low-leveraged positions can be indicative of exhaustion.

🔹Liquidation Price Calculator

A liquidation price calculator might come in handy when you need to calculate at what price level your leveraged position in Crypto, Forex, Stocks, or any other asset class gets liquidated to add a protective stop to mitigate risk. Monitoring an open position gets easier if the trader can calculate the total risk in order for them to choose the right amount of margin and leverage.

Liquidation price is the distance from the trader's entry price to the price where trader's leveraged position gets liquidated due to a loss. As the leverage is increased, the distance from trader's entry price to the liquidation price shrinks.

While you have one or several trades open you can quickly check their liquidation levels and determine which one of the trades is closest to their liquidation price.

If you are a day trader that uses leverage and you want to know which trade has the best outlook you can calculate the liquidation price to see which one of the trades looks best.


The bar statistics option enables measuring and presenting trading activity, volatility, and probable liquidations for the last chart bar.


It's important to note that liquidation price calculator tool uses a formula to calculate the liquidation price based on the entry price + leverage ratio.

Other factors such as leveraged fees, position size, and other interest payments have been excluded since they are variables that don’t directly affect the level of liquidation of a leveraged position.

The calculator also assumes that traders are using an isolated margin for one single position and does not take into consideration the additional margin they might have in their account.

🔹Liquidation price formula

the liquidation distance in percentage = 100 / leverage ratio
the liquidation distance in price = current asset price x the liquidation distance in percentage
the liquidation price (longs) = current asset price – the liquidation distance in price
the liquidation price (shorts) = current asset price + the liquidation distance in price

or simply

the liquidation price (longs)  = entry price * (1 – 1 / leverage ratio)
the liquidation price (shorts) = entry price * (1 + 1 / leverage ratio)

Let’s say that you are trading a leverage ratio of 1:20. The first step is to calculate the distance to your liquidation point in percentage.

the liquidation distance in percentage = 100 / 20 = 5%

Now you know that your liquidation price is 5% away from your entry price. Let's calculate 5% below and above the entry price of the asset you are currently trading. As an example, we assume that you are trading bitcoin which is currently priced at $35000.

the liquidation distance in price = $35000 x 0.05 = $1750

Finally, calculate liquidation prices.

the liquidation price (longs) = $35000 – $1750 = $33250
the liquidation price (short) = $35000 + $1750 = $36750

In this example, short liquidation price is $36750 and long liquidation price is $33250.

🔹How leverage ratio affects the liquidation price

The entry price is the starting point of the calculation and it is from here that the liquidation price is calculated, where the leverage ratio has a direct impact on the liquidation price since the more you borrow the less “wiggle-room” your trade has.

An increase in leverage will subsequently reduce the distance to full liquidation. On the contrary, choosing a lower leverage ratio will give the position more room to move on.


🔹Liquidations Meter

  • Base Price: The option where to set the reference/base price.

🔹Liquidation Price Calculator

  • Liquidation Price Calculator: Toggles the visibility of the calculator. Details and assumptions made during the calculations are stated in the tooltip of the option.
  • Entry Price: The option where to set the entry price, a value of 0 will use the current closing price. Details are given in the tooltip of the option.
  • Leverage: The option where to set the leverage value.
  • Show Calculated Liquidation Prices on the Chart: Toggles the visibility of the liquidation prices on the price chart.


  • Show Bar Statistics: Toggles the visibility of the last bar statistics.


  • Liquidations Meter Text Size: Liquidations Meter text size.
  • Liquidations Meter Offset: Liquidations Meter offset.
  • Dashboard/Calculator Placement: Dashboard/calculator position on the chart.
  • Dashboard/Calculator Text Size: Dashboard text size.


Here are some of the scripts that are related to the liquidation and liquidity concept, for more and other conceptual scripts you are kindly invited to visit LuxAlgo-Scripts.


Get access to our exclusive tools:

Join our 150k+ community:

All content provided by LuxAlgo is for informational & educational purposes only. Past performance does not guarantee future results.
Skrypt open-source

Zgodnie z prawdziwym duchem TradingView, autor tego skryptu opublikował go jako open-source, aby traderzy mogli go zrozumieć i zweryfikować. Brawo dla autora! Możesz używać go za darmo, ale ponowne wykorzystanie tego kodu w publikacji jest regulowane przez Dobre Praktyki. Możesz go oznaczyć jako ulubione, aby użyć go na wykresie.

Wyłączenie odpowiedzialności

Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.

Chcesz użyć tego skryptu na wykresie?