Skip to main content
Liquidation levels ahead on a BTC chart

BTC on 15-minute bars in the 0xArchive Terminal, 2026-10-15.

Open on a chart

Load it on BTC 15m in the terminal, then change its settings or open it in the script editor.
0xArchive estimates where open positions would be liquidated, in 40 levels over 10% either side of the mark, about every 5 minutes. This script draws the three biggest clusters of shorts above the price and of longs below it, within 4%, as lines out to the right with their size. The solid line on each side is the biggest. Under the candles, the bars are the balance within 4% of the price on each bar: USD of shorts above less USD of longs below. Above zero, more shorts sit close above than longs below.

How it works

liquidationLevels() is a sample stream: read in a handler, it gives the snapshot as of that bar, so history never sees a later snapshot. The balance is computed on every bar; the lines and labels only on the newest bar. maxLines and maxLabels cap the drawings at six, so each bar’s lines replace the last bar’s. Liquidation levels are Hyperliquid’s, from 27 July 2026, kept for 7 days.

Try changing

  • Widen Within toward 10% to reach clusters further away; lines past the edge of the view are not seen.
  • Fire an alert when the balance flips sign.

The script

liquidation-levels-ahead.ts

Next step

See the next example, Large taker orders.
Last modified on October 16, 2026