LuxAlgo

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.

🔶 USAGE


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.


🔹Dashboard

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


🔶 DETAILS

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)

Example:
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.

🔶 SETTINGS

🔹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.

🔹Dashboard

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

🔹Others

  • 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.

🔶 RELATED SCRIPTS

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.

Liquidation-Levels
Liquidations-Real-Time
Buyside-Sellside-Liquidity

Get access to our exclusive tools: luxalgo.com

Join our 150k+ community: discord.gg/lux

All content provided by LuxAlgo is for informational & educational purposes only. Past performance does not guarantee future results.
오픈 소스 스크립트

이 스크립트의 오써는 참된 트레이딩뷰의 스피릿으로 이 스크립트를 오픈소스로 퍼블리쉬하여 트레이더들로 하여금 이해 및 검증할 수 있도록 하였습니다. 오써를 응원합니다! 스크립트를 무료로 쓸 수 있지만, 다른 퍼블리케이션에서 이 코드를 재사용하는 것은 하우스룰을 따릅니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

면책사항

이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.

차트에 이 스크립트를 사용하시겠습니까?