Stacked Markets
How to set stop-losses and take-profits on a DEX (no excuses guide)
Published May 30, 2026 · By Stacked Markets Research Team
Contents
- Why traders skip stops on DEX (and why each excuse is wrong)
- How stop-loss orders actually work on Hyperliquid
- Stop-loss placement methodology
- Take-profit placement methodology
- How to set stops and TPs on Hyperliquid native UI
- How Stacked Markets adds configurable risk controls on top
- Common mistakes that will cost you
- FAQs
Most traders who blow up on-chain don't lack analysis skills. They lack stops. They opened the position, watched it move against them, convinced themselves it would recover, and eventually got liquidated or rage-closed at the worst moment. The analysis was fine. The execution discipline wasn't.
This guide is for experienced perp traders who already use Hyperliquid or another DEX but skip protective orders out of habit, overconfidence, or genuine confusion about how trigger orders work on-chain. Every section is specific. The mechanics are real.
Why traders skip stops on DEX (and why each excuse is wrong)
"I watch my positions manually"
You don't. Not at 3am. Not during a flash wick. Not when the market moves 4% in 90 seconds while you're mid-conversation. Manual monitoring works until it doesn't, and when it fails, it fails completely. A stop-loss is always watching. You aren't.
"The gas cost isn't worth it"
On Hyperliquid, there are no gas fees for placing or cancelling orders. The protocol runs on its own chain. Trigger orders cost nothing to place. This excuse is outdated and doesn't apply here.
"The on-chain stop will get gapped through"
That's a real risk on thin-liquidity chains with AMM-based execution. On Hyperliquid's on-chain CLOB, a stop-market order fills at the best available price once triggered. In a genuine liquidity gap, yes, you'll get slippage. But that slippage is almost always smaller than the loss from having no stop at all. A stop-limit order lets you define the floor price below which you won't fill, which controls the worst case explicitly.
"I don't trust trigger orders on DEX"
This is the most honest excuse, and it deserves a direct answer. Trigger orders on Hyperliquid are executed by the protocol's own matching engine, not a third-party bot. The trigger logic is on-chain and verifiable. You can inspect the order state at any time. If you still don't trust it, use testnet and watch a stop-market order trigger and fill in real time. That removes the abstraction.
How stop-loss orders actually work on Hyperliquid
Hyperliquid supports nine order types: limit, market, stop-market, stop-limit, take-profit market, take-profit limit, scale, TWAP, and IOC limit. For protective orders, the four that matter are stop-market, stop-limit, take-profit market, and take-profit limit. The reduce-only flag applies to all of them.
Stop-market vs stop-limit
A stop-market order triggers when the mark price (or last price, depending on your selection) reaches your trigger level. Once triggered, it submits a market order to close the position at the best available price. You will fill. The price is not guaranteed.
A stop-limit order triggers under the same condition but submits a limit order instead. You set both a trigger price and a limit price. If the market gaps below your limit price, the order doesn't fill and you stay in the position. That gives you price control but introduces fill risk.
For most traders, stop-market is the right default for stop-losses. You want out. Stop-limit makes sense when you're protecting against a specific slippage scenario and you're willing to accept the risk of not filling.
Take-profit market vs take-profit limit
Take-profit market triggers when price reaches your target and submits a market sell (or buy, for shorts). It fills immediately. Take-profit limit triggers and submits a limit order at your specified price - useful for capturing a precise exit level without chasing.
Trigger price vs execution price
These are not the same number. The trigger price is the condition that activates the order. The execution price is what you actually fill at. For stop-market orders, execution happens at or near the best bid/ask at the moment of trigger. In fast markets, there can be a meaningful gap between the two. Know this before you place the order.
Mark price vs last price as the trigger source
This is the most important technical detail in this guide. Hyperliquid lets you choose whether your trigger order fires based on mark price or last price.
Mark price is the index-derived fair value of the contract, smoothed to prevent manipulation. Last price is the most recent trade on Hyperliquid's own book.
Use mark price for stop-losses. Last price can be briefly moved by a single large trade or a thin-book wick, triggering your stop on a move that immediately reverses. Mark price is far harder to wick. If your stop fires on mark price, the move was real.
Using last price as your trigger source is how traders get stopped out on wicks that don't represent genuine price discovery. Don't do it.
The reduce-only flag
Always use reduce-only on protective orders. A reduce-only order can only decrease your position size - it can never increase it. Without reduce-only, if there's a bug, a duplicate order, or a race condition where your position was already closed, the stop could open a new position in the opposite direction. That's not a theoretical risk. It has happened. Tick reduce-only. Every time.
Stop-loss placement methodology
ATR-based placement
ATR (Average True Range) measures recent volatility. A common approach is placing your stop at 1x to 2x ATR below your entry for longs. If BTC has a 14-period ATR of $1,800, a 1.5x ATR stop sits $2,700 below entry. This calibrates your stop to the actual volatility of the instrument rather than a fixed percentage that might be too tight or too wide.
Percentage-based placement with position sizing
The standard framework: risk 1% to 2% of account per trade. Not 1% to 2% of position size. Of account.
Worked example: account size $10,000, risk per trade 1% = $100, entry $100,000 BTC, stop $98,500 (1.5% below entry), distance to stop $1,500. Position size = $100 / $1,500 = 0.0667 BTC. At 10x leverage, the notional is $6,670. Your max loss if stopped out is $100. This is the math that keeps you in the game across a losing streak.
Structure-based placement
Place stops below the last significant support level or swing low, not at a round number. Round numbers attract stop hunts. The invalidation level is the price at which your trade thesis is structurally wrong. That's where the stop goes - not at a number that feels comfortable.
Stop vs liquidation price
Your stop should always sit above your liquidation price with meaningful margin between them. If your stop is at $98,500 and your liquidation is at $98,200, you have $300 of buffer. That's not enough in a fast market. If your position sizing forces your stop close to liquidation, you're over-leveraged. Reduce size, not the stop distance.
The liquidation price is the absolute hard floor. It is not a stop-loss. It's what happens when you have no stop-loss.
Take-profit placement methodology
Partial closes with reduce-only
Scaling out beats a single TP for most traders. Set a reduce-only limit order at your first target to close 50% of the position. Leave the rest running with a stop moved to breakeven. You've locked in profit and removed downside risk on the remaining size.
Scaling at R-multiples
R is your initial risk amount. If you risked $100 on the trade, 1R = $100 profit, 2R = $200, 3R = $300.
A common structure: close 33% at 1R, 33% at 2R, let 33% run with a trailing stop. This captures profit at realistic targets while keeping exposure to larger moves. The math works across a large sample of trades even with a sub-50% win rate, as long as your average winner exceeds your average loser.
Funding rate context
If you're holding a long in a high positive funding environment, the cost of carrying to a 3R target accumulates. On Hyperliquid, funding is paid every hour. If the annualised rate is running above 50%, holding a position for 48 hours costs real money. Factor that into your TP decision. Sometimes closing at 1.5R and avoiding two days of funding is the better outcome.
TWAP as a trailing mechanic
For larger positions where a single TP order would move the market, Hyperliquid's TWAP order type distributes your exit across a time window. It's not a trailing stop in the traditional sense, but it functions as a systematic exit mechanic that reduces market impact and removes the temptation to override your plan.
How to set stops and TPs on Hyperliquid native UI
At entry
- Open the order ticket on Hyperliquid's native interface.
- Select your order type - limit or market - for the entry.
- After placing the entry, navigate to the open positions panel.
- Select the position and find the TP/SL fields.
- Enter your trigger price for the stop-loss. Select mark price as the trigger source.
- Enter your take-profit trigger price.
- Check the reduce-only box for both orders.
- Confirm and submit.
Some traders prefer to set TP/SL simultaneously with the entry using bracket order fields if available in the interface at submission. Either approach works. What matters is that the orders exist before the position is open to risk.
Modifying after entry
You can modify trigger orders from the open orders panel. If price moves in your favour and you want to move your stop to breakeven, cancel the original stop order and place a new one at your entry price. Cancel the old order first. Two stop orders on the same position can cause unexpected behaviour.
How Stacked Markets adds configurable risk controls on top
Hyperliquid's native UI lets you set individual TP/SL orders. Stacked Markets adds a layer of structural controls that sit above the order level.
IOC limit orders with slippage bounds mean you see the worst-case fill price before you approve the transaction in your wallet. No fake market orders. You know exactly what you're committing to before you sign.
Configurable max leverage caps act as a structural stop on over-leveraging. You set the ceiling. If you've decided 10x is your limit, the terminal enforces it. You can't accidentally open a 25x position during a fast market when your fingers are moving faster than your judgment.
Halt switches and circuit breakers function as account-level emergency stops. If you're in a rapid order burst and something goes wrong, the circuit breaker stops further order submission. That matters when you're managing multiple positions and a fat-finger or runaway script could do real damage.
The zero-custody model means these controls are trader-set, not platform-imposed. Stacked Markets holds no balances and no keys. Every order is signed by your wallet. The risk controls are yours to configure and yours to enforce.
Common mistakes that will cost you
Setting the stop at liquidation price instead of invalidation level. Your liquidation price is not a stop-loss strategy. It's a failure state. Place your stop at the price where your trade thesis is structurally wrong.
Using last price trigger instead of mark price. A single large trade can wick last price far enough to trigger your stop and immediately reverse. Mark price is the correct trigger source for stop-losses on Hyperliquid.
Not using reduce-only. Without reduce-only, a stop order on a position that was already closed can open a new position in the opposite direction. Always use reduce-only on protective orders.
Forgetting to cancel GTC stops after a manual close. If you close a position manually and forget the associated stop order, that stop stays live with no position to reduce. When price reaches it, it opens a new trade. Cancel your stops when you close manually.
Ignoring funding cost accumulation. A TP target that requires holding through multiple high-funding sessions may not be worth reaching. Funding erodes your profit. Know the current rate before you decide to hold versus close.
Setting stops too tight relative to ATR. A stop inside the normal volatility range of the instrument gets triggered by noise, not by a genuine move against your thesis. Stops need room to breathe. Use ATR to calibrate.
Structural risk controls that enforce your own rules before an order reaches the chain. Stacked Markets holds no funds and no keys.
FAQs
Does Hyperliquid use mark price or last price to trigger stop orders?
You choose. The trigger price source is selectable in the order ticket. Mark price is the recommended choice for stop-losses - it reflects the index-derived fair value and is far harder to manipulate with a single trade than last price.
What happens if my stop-limit order doesn't fill because price gaps through my limit?
You stay in the position. The stop-limit triggers but can't fill because the market is below your limit price. That's the core trade-off between stop-limit and stop-market. If you need certainty of exit, use stop-market. If you need price certainty, use stop-limit and accept the fill risk.
What does reduce-only actually do on a stop order?
It restricts the order so it can only decrease your existing position - it cannot open a new position or increase size. This prevents a bug or race condition from turning a protective order into an unintended new trade.
Can I set a TP and SL at the same time when I open a position?
Yes. Hyperliquid's interface allows you to set both trigger orders alongside or immediately after your entry. Setting them at entry removes the risk of forgetting to place them once the position is open.
How do I calculate position size from my stop distance?
Decide your maximum account risk per trade (1% to 2% is standard). Divide that dollar amount by the distance between your entry price and stop price. The result is your position size in base currency. Multiply by the current price to get notional size.
What is the difference between a stop-market and a take-profit market order on Hyperliquid?
Mechanically, both are trigger orders that submit a market order once a price condition is met. The difference is directional logic. A stop-market on a long triggers when price falls to your level. A take-profit market triggers when price rises to your target. Both fill at the best available market price at the moment of trigger.
Does Stacked Markets charge extra fees for placing stop or take-profit orders?
Stacked Markets may charge a service fee on routed volume, disclosed in the interface and terms. Hyperliquid's base protocol fees apply to all orders routed through any front-end: maker 0.015% and taker 0.045%, with up to 40% discount available via HYPE staking and referral codes. Placing or cancelling trigger orders does not incur additional protocol fees.
