Skip to main content
Squeeze or new positions on a BTC chart

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

Open on a chart

Load it on BTC 5m in the terminal, then change its settings or open it in the script editor.
A candle whose body is more than 1.5 times the 14-bar ATR gets a label:
  • Squeeze: a rally where shorts buying back outweighed new longs.
  • New longs: a rally carried by positions opening.
  • Flush: a drop where longs selling out outweighed new shorts.
  • New shorts: a drop carried by positions opening.
Diamonds mark the moves driven by exits, circles the ones driven by entries. Moves driven by exits tend to run out once the trapped side is gone; moves on new positions leave those positions behind as fuel, or as the next squeeze.

How it works

The trades are sorted exactly as in Opening and closing flow. The labels are decided in onClose, once per closed bar, so they never repaint. The ATR is updated before the early return, because an indicator only advances on the bars it is updated on.

Try changing

  • Lower Body over ATR to label more candles.
  • Add an alert that fires on a squeeze.

The script

squeeze-or-new-positions.ts

Next step

See the next example, Most-liquidated wallets.
Last modified on October 16, 2026