Skip to main content
Opens and closes footprint on a BTC footprint chart

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

Open on a chart

Load it on BTC 1m in the terminal, then change its settings or open it in the script editor.
Who opened and who closed, at each price. Taker selling sits on the left, split into longs closing (nearest the candle) and new shorts; taker buying sits on the right, split into shorts closing and new longs. A move that starts with longs opening and finishes by squeezing shorts shows both in one bar. New shorts and new longs are opposed: where one is three times the other at a price, the footprint marks it as an imbalance, and three in a row run right as a band. The other lanes mark none.

How it works

Each fill’s takerWhy puts it in one lane. A flip (flip_ls, flip_sl) opens the other way, so it counts as an open. The closing lanes take hues of their own, orange and teal, so they are never mistaken for the opening ones at small sizes. The statistics rows under each bar are the four lanes summed.

Try changing

  • Drop the opposed pair to turn the imbalance marks off.
  • Split the closes into stops and profit taking with stop_long and tp_long, in place of the opens.

The script

opens-closes-footprint.ts

Next step

See the next example, Open interest footprint.
Last modified on October 17, 2026