Stop loss and take profit on Hyperliquid: a complete guide

By the Whenly team · · 7 min read

Short answer

On Hyperliquid, a stop loss or take profit is a trigger order: when the mark price crosses your trigger price, it sends a market order (with up to 10% slippage) or a limit order at your price. You can attach TP/SL to a new order, placed once that order fills, or set it on the whole position. Both rest on the exchange, so they work while you are offline.

A stop loss is the cheapest insurance in trading, and on a leveraged perp it is the difference between a bad trade and an empty account. Hyperliquid's TP/SL orders are simple to place but have details that decide whether they save you: which price triggers them, how they fill, and what size they close. This guide covers all three, then where to put a stop when you trade with leverage.

How TP/SL orders work on Hyperliquid

A take profit (TP) or stop loss (SL) is a trigger order. It waits on the exchange until the price crosses your trigger price, then sends an order to close. Three rules from Hyperliquid's order type docs matter most:

  • The mark price triggers it. Hyperliquid's mark price combines prices from other exchanges with its own order book, so one thin wick on Hyperliquid's book is less likely to stop you out than on an exchange that triggers on the last trade.
  • Market TP/SL fills with up to 10% slippage. After the trigger, a market TP/SL takes the best prices on the book, up to 10% away from the trigger.
  • Limit TP/SL never fills worse than its limit, but if the price jumps through it, it may not fill at all, and the position stays open.
A long from 100 with a take profit at 106 (+6%) and a stop loss at 97 (−3%). The mark price dips to 98.4 without reaching the stop, then reaches 106: the take profit triggers and closes the position. The dashed line is what the price did afterwards.

Position TP/SL vs order TP/SL

Hyperliquid has two kinds, and they behave differently when your position size changes.

Order TP/SLPosition TP/SL
Attached toOne order you are placingThe open position
When it is placedOnly once that order fillsRight away
SizeFixed: the order's sizeBy default the whole position at trigger time; a size you set stays fixed
If you add to the positionCovers only the original order's sizeWithout a set size, still closes all of it
If the parent order is cancelledCancelled with itNot affected

The safe default for most traders is a position TP/SL without a size: it always closes whatever you hold when it triggers, even after you add to the position.

Trailing stop loss on Hyperliquid

A trailing stop moves with the price instead of sitting at a fixed level. Hyperliquid has one natively for perp markets: a market order that triggers when the mark price pulls back from its best level by the distance or percentage you choose. On a long, a 3% trailing stop follows every new high and fires once the price falls 3% from the highest mark price it has seen; it never moves back down.

Use it to protect profit on a trend without guessing the top. Set the distance wider than the market's normal pullbacks, or ordinary noise will close the trade. Whenly's terminal places fixed TP/SL orders; trailing stops are available in Hyperliquid's own app.

How to set a stop loss and take profit in Whenly

Whenly's terminal trades on Hyperliquid's order book, so these are Hyperliquid's own TP/SL orders, resting on the exchange.

  1. On a new order: tick TP/SL in the order form and enter the take profit and stop loss prices. These are market TP/SL orders placed once the order fills.
  2. On an open position: in the Positions table, use TP/SL to add or modify it. This is where you set a limit price, or close only part of the position.
  3. Check the expected PnL the form shows for each trigger before confirming, and compare the stop with the Liq. Price.
Whenly terminal on BTC-USDC: chart, order book and the order form with the TP/SL checkbox and the liquidation price
The terminal on BTC. The TP/SL checkbox sits in the order form on the right, above Reduce Only; the mark price and funding are in the bar above the chart.

Where to put your stop with leverage

A stop is set in price, but the loss lands on your margin. With leverage, every 1% the price moves is leverage × 1% of your margin:

Loss on margin when the stop of an isolated BTC long is hit, before fees and slippage
Stop distance2x5x10x20x
1% below entry2%5%10%20%
2% below entry4%10%20%40%
5% below entry10%25%50%Liquidated first

Your stop also has to sit well inside your liquidation price, or the exchange closes the position before the stop can. An isolated BTC long at 10x is liquidated after a fall of about 8.9%, so a stop 5% below entry leaves room; at 20x the liquidation is about 3.8% away and a 5% stop is useless. The formula and a table by leverage are in Hyperliquid liquidation price, explained.

A few rules of thumb:

  • Pick the stop from the chart (where your idea is wrong), then size the position so that the loss there is what you can afford.
  • Leave a gap between the stop and the liquidation price at least as big as a normal hourly move.
  • Prefer market stops for protection. A limit stop that doesn't fill protects nothing.
  • Count funding on positions you hold for days: it is paid or received every hour, and over days it changes the margin behind a position. See funding rates explained.

What a stop loss can't do

A TP/SL watches one price for one position. It doesn't help when the risk is somewhere else:

  • A bad day across many positions. No single stop is hit, but together they lose 8% of the account. A Daily Loss Limit rule closes everything once the account is down a set share on the day.
  • A position drifting toward liquidation that you'd rather rescue than close. A Liquidation Guard rule adds margin first and cuts the position only if that isn't enough.
  • Signals that aren't the price, such as a whale you follow closing the same trade (Whale Exit) or funding turning against you.

All of these are rules that run on Whenly's servers; how to automate Hyperliquid trading compares them with trigger orders and bots.

A stop loss limits a loss; it doesn't guarantee its size. In a fast market a market stop can fill well past its trigger, and a limit stop can be skipped.

Frequently asked questions

Which price triggers a stop loss on Hyperliquid?

The mark price, not the last traded price. Hyperliquid's mark price combines prices from other exchanges with its own order book, so a single wick on Hyperliquid's book is less likely to set off your stop.

Does a Hyperliquid stop loss guarantee my exit price?

No. A market stop fills at the best prices available after it triggers, up to 10% away from the trigger. A limit stop never fills worse than its limit, but it may not fill at all if the price moves through it.

What is the difference between position TP/SL and order TP/SL?

Order TP/SL is tied to one order and has that order's size; it is placed only when the order fills. Position TP/SL applies to the open position and by default closes all of it when it triggers, whatever its size is by then.

Does Hyperliquid have a trailing stop loss?

Yes. Hyperliquid has a native trailing stop for perp markets: a market order that triggers when the mark price pulls back from its best level by the distance or percentage you set. It follows the price up for a long (down for a short) and never moves back.

Where should I put my stop loss with 10x leverage?

Inside your liquidation price, with room to spare. At 10x a 1% price move is 10% of your margin, and an isolated BTC long at 10x is liquidated after a fall of about 8.9%, so a stop 5% below entry already risks half the margin.

This article explains how things work; it is not investment advice. Perpetual futures carry a high risk of loss. Read the Risk Disclosure.