---
title: "Trapped longs: a Hyperliquid order flow setup"
description: "Spot trapped longs on Hyperliquid: new longs buy a swing high and the bar closes weak. Read it on the footprint, trade the short, and script an alert."
canonical_url: "https://0xarchive.io/resources/market-data-guides/trapped-longs-hyperliquid"
markdown_url: "https://0xarchive.io/resources/market-data-guides/trapped-longs-hyperliquid.md"
route: "/resources/market-data-guides/trapped-longs-hyperliquid"
robots: "index, follow, max-image-preview:large"
generated_from: "prerendered_html"
---

# Trapped longs: a short setup from Hyperliquid order flow

How to spot trapped longs on Hyperliquid: new longs buying a swing high on a bar that closes weak. How to read it on the footprint, trade the short, and get a script to alert you.

By

[0xArchive Team](https://0xarchive.io/authors/0xarchive-team)

November 23, 2026

7 min read

- [Hyperliquid](https://0xarchive.io/resources?topic=hyperliquid)

## Key findings

1. [1. Two kinds of buyer at a new high](https://0xarchive.io/resources/market-data-guides/trapped-longs-hyperliquid#article-section-1-two-kinds-of-buyer-at-a-new-high)
2. [2. Why trapped longs fall](https://0xarchive.io/resources/market-data-guides/trapped-longs-hyperliquid#article-section-2-why-trapped-longs-fall)
3. [3. Who opened, who closed: every Hyperliquid fill says which](https://0xarchive.io/resources/market-data-guides/trapped-longs-hyperliquid#article-section-3-who-opened-who-closed-every-hyperliquid-fill-says-which)
4. [4. The setup: a swing high, new longs, a weak close](https://0xarchive.io/resources/market-data-guides/trapped-longs-hyperliquid#article-section-4-the-setup-a-swing-high-new-longs-a-weak-close)
5. [5. The trade: short the close, stop above the trap bar's high](https://0xarchive.io/resources/market-data-guides/trapped-longs-hyperliquid#article-section-5-the-trade-short-the-close-stop-above-the-trap-bars-high)
6. [6. Let a script watch for trapped longs](https://0xarchive.io/resources/market-data-guides/trapped-longs-hyperliquid#article-section-6-let-a-script-watch-for-trapped-longs)

Every move to a new high has someone buying the top.

The question isn't only how much was bought. It's who bought it.

Here's how to read it on the footprint, how to trade it, and how to get a script to alert you when it happens on [Hyperliquid](https://hyperliquid.xyz/).

![Illustration of a trap: price runs a swing high on one bar, new longs buy above it, and the bar closes weak back under the high. The bars after it fall and leave those longs underwater.](https://api.0xarchive.io/cms-assets/2026/11/a05181a9-4129-44db-8cc6-2a6ce7306ec0.webp)

Illustration, not market data. 1: the swing high. 2: new longs buy above it. 3: the bar closes weak.

## 1. Two kinds of buyer at a new high

**Shorts covering.** They're closing a position. They buy once and they're gone.

**New longs.** They're opening one. They stay, and they have a price where they're wrong.

A high bought by shorts covering can run out of buyers. A high bought by new longs can run out of buyers and leave a crowd stuck at the top.

![Illustration of two price runs through a swing high. On the left the buying above it is shorts covering, who buy once and are gone. On the right it is new longs, who stay and can be wrong.](https://api.0xarchive.io/cms-assets/2026/11/5e90e76f-0f39-4da8-b83f-c28769e4a344.webp)

Illustration, not market data. The same move, bought by two different crowds.

## 2. Why trapped longs fall

A long that opened at the high has no cushion.

If the bar closes back below where it bought, it's losing from the first bar. Some cut it. Some get stopped. Some get liquidated.

All three are sells, into the same move that trapped them.

![Illustration of longs opening at a high, then price falling in three legs labelled cut, stopped and liquidated, each one a wave of sells.](https://api.0xarchive.io/cms-assets/2026/11/bcd01945-8ea2-49db-a649-5f83bb639e0c.webp)

Illustration, not market data. Longs that cut, get stopped or get liquidated all sell into the drop.

## 3. Who opened, who closed: every Hyperliquid fill says which

Most tools have to guess. Open interest went up and delta was positive, so it was probably new longs.

With [0xArchive](https://0xarchive.io/) you don't have to guess. 0xArchive matches every Hyperliquid trade, taker to maker, so every fill says whether it opened or closed a position.

The [0xArchive Terminal](https://terminal.0xarchive.io/) 's footprint splits every bar into four: new longs, shorts closing, longs closing, new shorts. So "who bought the high" is a number you read straight off the bar.

![Opens and closes footprint of SOL 15-minute bars in the 0xArchive Terminal. The bar above the swing high is boxed: 90% of the buying there was new longs, and the bar closes weak, back under the high.](https://api.0xarchive.io/cms-assets/2026/11/db6dad3b-2810-4793-b543-2778f282e923.webp)

SOL 15-minute bars on Hyperliquid, 6 November 2026 UTC, in the Terminal's Opens and closes footprint.

## 4. The setup: a swing high, new longs, a weak close

All three, on the same closed bar:

**1. It takes out a swing high.** A swing high is a high with lower highs on each side of it. The bar trades above a recent one. If it runs several, the highest counts.

**2. New longs bought it.** Most of the taker buying above that swing high opened new longs, not shorts covering.

**3. A weak close.** The bar closes near the bottom of its range, back under the swing high.

Swing highs are where the stops and the breakout orders sit. That's why the crowd shows up there.

![Illustration of the three checks: a bar takes out a swing high, most of the buying above it was new longs, and the bar closes weak near the bottom of its range.](https://api.0xarchive.io/cms-assets/2026/11/01fc4ebd-ebde-4e6e-904d-bcc43e6bb52f.webp)

Illustration, not market data. All three have to happen on the same closed bar.

## 5. The trade: short the close, stop above the trap bar's high

When all three line up, short the crowd that just bought the top.

**Entry:** short once the trap bar has closed.

**Stop:** above the trap bar's high, padded by a fraction of the ATR (average true range) so normal noise doesn't take you out. If that puts the stop too far away, skip the trade. If price takes the high back, the longs weren't trapped and the read was wrong.

**Target:** a fixed reward-to-risk (RR) multiple, set before you enter. The trapped longs cutting, getting stopped and getting liquidated is what moves price there.

**Time stop:** if the flush doesn't come within a set number of bars, get out. The trap didn't spring.

**Risk:** a small, fixed slice of the account per trade, a cap on trades per day, and a daily loss limit.

Look for it on liquid perps, where there's a crowd big enough to trap.

![Illustration of the trade: a short entered after the trap bar closes, a stop above the trap bar's high, a target below the entry, and a time stop to the right.](https://api.0xarchive.io/cms-assets/2026/11/89664065-3e39-42d5-806d-3237c981f3ee.webp)

Illustration, not market data. Entry after the close, stop above the high, a target and a time stop.

## 6. Let a script watch for trapped longs

You can read all of this off the footprint by hand. But it's three checks on every closed bar, and a script doesn't miss the one at 3am.

Most alert tools can't watch for this. They only see price and volume, and a candle can't tell a new long from a short covering. Scripts in the Terminal read every Hyperliquid fill, and every fill says whether it opened or closed.

You write it as a script once. When a bar closes as a trap, the script labels it with the share of new longs and sends you an alert.

Then it's your call. The alert, the chart, the footprint and the order ticket are on the same screen, so you read the bar and take the trade on Hyperliquid without leaving the Terminal.

![SOL 15-minute chart in the 0xArchive Terminal with the trapped longs script's label on the bar that ran the swing high: 90% new longs.](https://api.0xarchive.io/cms-assets/2026/11/0b93f61b-2bfb-45d1-aad7-b110947fcf55.webp)

The script's label on SOL 15-minute bars, 6 November 2026 UTC.

![The 0xArchive Terminal on one screen: an ETH 15-minute chart with the script's label reading 72% new longs, and the order ticket beside it set to Sell on a Paper account.](https://api.0xarchive.io/cms-assets/2026/11/36f8c896-4df5-4a21-ae7a-1950cb8f6e05.webp)

ETH 15-minute bars, 16 November 2026 UTC. The label and the order ticket on one screen, on a Paper account.

Practice it on Paper first. Paper orders fill against the live Hyperliquid book.

## 7. An agent can write the script for you

Paste this into Claude, ChatGPT or any agent, with the Terminal's [scripting reference](https://terminal.0xarchive.io/scripting/llms.txt):

> Write me a script for the 0xArchive Terminal that finds trapped longs on Hyperliquid and alerts me, so I can trade it myself. The idea: price runs a swing high (a pivot high), most of the buying above it is new longs opening (not shorts covering), and then the bar closes weak: near the bottom of its range, back under the swing high. Make the pivot length, the new-long share and the close level inputs I can set. Mark every one on my chart with the share of new longs on the label, and alert me when one closes.

Paste what comes back into the Terminal's editor and add it to your chart.

![The trapped longs script open in the 0xArchive Terminal's TypeScript editor, sorting each taker buy into new longs or shorts covering from the fill's reason.](https://api.0xarchive.io/cms-assets/2026/11/bdc11d5e-0b64-4624-8e6f-a5dd2a13522c.webp)

The trapped longs script in the Terminal's editor.

Trapped longs is one setup. Which one would you want a script watching for?

Trading on the Terminal costs 0.01% a trade on top of Hyperliquid's fee.

## Common questions about trapped longs

**What is a trapped long?** A long opened near a new high on a bar that then closes back below where it bought. It is underwater from the first bar, and when it cuts, gets stopped or gets liquidated, it sells into the drop.

**How do you tell new longs from shorts covering?** Open interest and delta only let you guess. On Hyperliquid, 0xArchive matches every trade taker to maker, so each fill says whether it opened or closed a position, and the Terminal's footprint shows the split on every bar.

**Where does the stop go on a trapped longs short?** Above the trap bar's high, padded by a fraction of the ATR. If price takes that high back, the longs were not trapped.

## Terminal references

Use the [trapped traders example](https://docs.0xarchive.io/terminal/examples/trapped-traders) in the [Terminal docs](https://docs.0xarchive.io/terminal) for a working script, and the [scripting reference](https://terminal.0xarchive.io/scripting/llms.txt) when an agent writes one for you.

For current API availability and plan details, use the [Hyperliquid data API](https://0xarchive.io/hyperliquid), [data catalog](https://0xarchive.io/data/catalog), [pricing](https://0xarchive.io/pricing), and [status](https://0xarchive.io/status).
