
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.
- 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.
How it works
The trades are sorted exactly as in Opening and closing flow. The labels are decided inonClose, 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