Charts See the terminal

Premium script

Liquidation Levels

Estimated prices where traders who entered at a recent pivot with 5x to 100x leverage would be liquidated, drawn as lines that run until price trades through them.

More scripts Sign up for Altrady $15/month one-time

Live Liquidation Levels preview · BTC/USDT on Binance · 4h, history up to a day ago

What is Liquidation Levels?

Liquidation Levels estimates where leveraged positions opened at a recent turning point would be forced closed. At every confirmed pivot low it draws lines below the low for longs at 5x, 10x, 25x, 50x and 100x leverage, and at every pivot high it draws lines above the high for shorts. These are estimates from a simple formula, not liquidation data from an exchange.

A level is only started while volume is elevated, and the higher the leverage tier, the more elevated volume has to be. Each line runs to the right until a bar trades through it and then stops. Bars where any shown tier is active are coloured, and a small dashboard in the bottom right lists the five tiers.

This is a closed-source premium script. It runs on Altrady's servers, so only its output reaches your chart and its code is not published.

How to use Liquidation Levels

  • Long liquidations. The lines below a pivot low, in the Long Liquidations Color. They mark roughly where longs opened at that low would be closed out at each leverage.
  • Short liquidations. The lines above a pivot high, in the Short Liquidations Color. The same estimate for shorts opened at that high.
  • Running and stopped lines. A line that still reaches the current bar has not been traded through. A line that stops short was crossed by a bar and is no longer extended.
  • Clusters. Where many running lines sit close together, many estimated liquidation prices overlap. Some traders read such clusters as areas price may be drawn to; the script only shows where they are.
  • Coloured bars. A coloured bar means volume was elevated enough on that bar for at least one shown tier to be active.

Settings

Settings

SettingDefaultRangeWhat it changes
Start From1672531200
Lookback Period40 1 to 500
Show 5x LeverageOn
Show 10x LeverageOn
Show 25x LeverageOn
Show 50x LeverageOn
Show 100x LeverageOn
Line Width3 1 to 5
Short Liquidations Color #22ab94
Long Liquidations Color #f7525f
Color Active BarsOn
DashboardShow Show, Hide
Active #00e676

How it works

A pivot high is a bar whose high is strictly above the highs of the 3 bars on each side, and a pivot low the same for lows. On daily, weekly and monthly charts 2 bars on each side are used. A pivot is confirmed once those bars have closed, and its lines start at the pivot bar.

For each tier the script uses a fixed risk distance: 20% for 5x, 10% for 10x, 4% for 25x, 2% for 50x and 1% for 100x. The short level is the pivot high times (1 + risk) and the long level is the pivot low divided by (1 + risk). Higher tiers are drawn more opaque, 5x the faintest and 100x the strongest.

Whether a tier is active depends on volume. The script takes the midpoint between the highest and lowest volume of the last Lookback Period bars, 40 by default, and compares it with the average of that midpoint over the last Lookback Period + 10 bars. 5x is active when the midpoint is above its average, 10x at 2.5% above, 25x at 5%, 50x at 10% and 100x at 20%. Only tiers that are both shown and active get a line when a pivot is confirmed.

A line is extended bar by bar until a bar's low is below it and its high above it, and from then on it is fixed. This also happens on the forming bar, and a touch on a forming bar is permanent. A new line is skipped when a running line of the same tier and side lies within a tenth of that tier's distance. The newest 500 lines across all tiers are kept and older ones are removed.

Pivots and bar colouring only count from the Start From date, 1 January 2023 by default. On a short history, such as a new listing, the volume windows use the bars available once there are at least 10. The script declares no alerts.

Limitations

  • Estimates, not exchange data. The levels come from a fixed formula applied to a pivot. Real liquidation prices depend on the exchange, the margin mode, maintenance margin, fees and the actual entry price, none of which the script knows.
  • Pivot lag. A pivot is only known 3 bars after it formed, 2 on daily and higher charts, so its lines appear late and are drawn back to the pivot bar.
  • Volume gates the levels. A pivot that forms while volume is quiet gets no lines, or lines only for the lower tiers. Volume quality varies between exchanges and markets.
  • Crossed means crossed, not liquidated. A line stops when a bar trades through it. That says nothing about how many positions, if any, were actually closed there.
  • The dashboard shows settings. Its dots are bright for the tiers that are switched on and dim for those that are off. They do not show which tiers are active on the current bar.
  • No alerts. The script draws lines and colours bars. It has no alert conditions.
  • It is not a strategy. The lines are estimates of where leveraged positions could be closed. They carry no entry or exit rule.

Get Liquidation Levels

Premium scripts are a one-time purchase in the Altrady marketplace and need a paid Altrady plan to run.

  • Liquidation Levels $15/month This script on its own.
  • Altrady Complete Suite $109 All 28 premium scripts.
Sign up for Altrady

Frequently asked questions

For a pivot high, the level is the high times (1 + risk); for a pivot low, the low divided by (1 + risk). The risk is 20% for 5x, 10% for 10x, 4% for 25x, 2% for 50x and 1% for 100x.

No. They are estimates of where positions opened at a pivot would be liquidated at a given leverage. The script does not read liquidation or open interest data from any exchange.

Lines are only started for tiers that are shown and active when the pivot is confirmed, and a tier is active only when volume is elevated enough. A pivot before the Start From date also gets no lines, and a level too close to a running one of the same tier is skipped.

A bar traded through it, with its low below the line and its high above. From then on the line is no longer extended.

The number of bars used for the volume midpoint, 40 by default, and with it the window for the average that decides which tiers are active.

No. It declares no alert conditions.

Sign up for Altrady