How to Set a Take-Profit and Stop-Loss on X-Perps
Setting a take-profit (TP) and stop-loss (SL) is one of the most important steps you can take before placing an X-Perps trade. On OKX, TP and SL are set directly in the order form, before you confirm the trade, not after. This means you define your exit conditions upfront, so the platform manages your position automatically if the price hits your target or your limit. You set TP/SL by percentage (e.g. take profit at +10%, stop loss at -5%) or by entering a specific price. Percentage-based inputs are the simplest approach and are recommended for most traders. They scale automatically with your entry price, so you don’t need to calculate exact price levels, just decide how much you want to make or are willing to lose on the trade.
Before You Set TP/SL: Know Your Levels
Before you place your order, decide two things:
Your take-profit level: the price or percentage gain at which you want to lock in profit and close the position.
Your stop-loss level: the price or percentage loss at which you want to exit to limit downside. Percentage inputs are the most straightforward. For example: take profit at +10% means the position closes automatically if the price moves 10% in your favour. Stop loss at -5% means the position closes if the price moves 5% against you. This approach requires no precise price calculation, just decide how much you want to make or are willing to lose.
Step-by-Step: Setting TP/SL on Web
Step | Action | Detail |
1 | Open X-Perps | Navigate to X-Perps on OKX |
2 | Select your contract | Choose the asset you want to trade (e.g. BTC/USD) |
3 | Set up your order | In the order panel (right side): select your order type (Limit is default), enter your margin amount, set your leverage, and choose Long or Short |
4 | Set TP/SL | In the order form, find the TP/SL section. Switch to percentage input. Enter your take-profit % (e.g. 10%) and stop-loss % (e.g. 5%). You can also enter a specific price if preferred |
5 | Review liquidation price | Before confirming, check the liquidation price shown in the order summary. If the price at which you would be liquidated is too close to the current market price, reduce leverage or increase your margin |
6 | Confirm | Click the Buy/Long or Sell/Short button to place the order. Your position opens with TP/SL already attached. You can see it at the bottom of the screen in the open orders / positions panel |
Trigger Types Explained
When you set a TP or SL, you choose what price reference triggers the order. There are two options:
1. Mark Price (recommended)
The order triggers based on the mark price, OKX’s fair-value calculation for the contract, derived from a combination of spot index prices and a smoothing mechanism designed to reduce the impact of momentary dislocations.Mark price is less susceptible to brief spikes caused by thin liquidity or a single large trade moving the last traded price. In crypto markets, wicks, brief sharp price movements that quickly reverse, are common, particularly during low-liquidity periods. Using mark price as your trigger means a wick is less likely to close your position prematurely. For most traders in most situations, mark price is the right choice.
2. Last Price
The order triggers based on the most recent executed trade in the market. This can react faster to real price moves but is more susceptible to wicks and momentary dislocations. A single large market order in thin conditions can push the last price sharply away from fair value for a brief moment, which could trigger your TP or SL before the market confirms the move.Last price is more appropriate when you need faster reaction times and are willing to accept a slightly higher risk of false triggers, for example, in highly liquid conditions during active trading hours. If you use last price, consider setting your levels slightly further from the current price to reduce false trigger risk.
Order Types on Trigger
When your TP or SL triggers, you have two choices for how the closing order executes: Market order: The position closes immediately at the best available price. You are guaranteed to exit but not at a specific price, in fast-moving or thin markets, the execution price may differ from the trigger level. This difference is called slippage. For stop-losses, a market order is usually the right choice: in a fast-moving adverse scenario, getting out quickly matters more than the exact execution price. A limit order that doesn’t fill leaves you exposed to further losses. Limit order: When the trigger is hit, a limit order is placed at the price you specify. This gives you price control but introduces the risk that the order doesn’t fill, if the market moves quickly through your limit price without matching a buyer or seller at that level, the order remains open and your position stays live. Limit orders are better suited for take-profits, where you’d rather wait for your target price than accept a slightly worse execution. For stop-losses, only use a limit order if you are comfortable with the risk of non-execution in a fast market.
Why setting TP/SL matters Derivatives trading involves fast-moving markets and leverage that amplifies both gains and losses. Without predefined exits, two common mistakes happen. The first is holding a losing position too long, hoping it will recover, until the loss becomes too large to absorb. The second is closing a winning position too early out of nervousness, missing the move you anticipated. TP/SL removes both of these emotional decisions from the equation. When you set a take-profit, you lock in a gain automatically at the level you determined was your target before emotions were involved. When you set a stop-loss, you cap your downside at a level you determined was acceptable before the trade went against you. Neither of these outcomes requires you to be watching the screen. The platform executes on your behalf. This is particularly valuable in crypto, where markets trade 24 hours a day, seven days a week. A sharp overnight move can wipe out a position before you have a chance to react manually. A stop-loss set at the time of entry means you always have protection in place, regardless of when the move happens.
X-Perps TP/SL
Give your stop room to breathe. Prices can spike briefly without reversing. Too tight and you get stopped out by noise; too wide and you absorb large losses. Base your stop on the asset's typical daily range.
Factor in funding costs. X-Perps have a funding rate every 8 hours. If funding is running against you, your net P&L will be lower than the raw price move suggests, especially relevant if holding for more than a few hours.
Review TP/SL after partial closes. If you manually close part of your position, your TP and SL are still tied to the original size. Go to Active Orders and adjust the quantities.
You can modify or cancel at any time. TP and SL orders can be updated or cancelled from the open orders panel as long as they haven't been triggered yet.
Disclaimer:
This content is provided for informational purposes only and may cover products that are not available in your region. It does not constitute investment or financial product advice, not it is a recommendation or solicitation to buy or sell financial instruments or to engage in any specific trading strategy.
Trading in financial instruments involves a significant risk of loss and may not be suitable for all investors. If you invest in X-Perps or other derivatives you may lose some or all of the money you invest. X-Perps are leveraged instruments; leverage can amplify both gains and losses. The value of investments and any income derived from them can go down as well as up, and you may not recover the amount originally invested. Past performance is not a reliable indicator of future results. You should carefully consider your investment objectives, level of experience, and risk appetite before engaging in any trading activity.
OKX Europe Markets Ltd ("OEM"), which is authorised and regulated by the Malta Financial Services Authority (MFSA) under the Investment Services Act (Chapter 370 of the Laws of Malta) as a Investment Services Licence Holder (Licence No. OEML-15905).
© 2026 OKX. This article may be reproduced or distributed in its entirety, or excerpts of 100 words or less of this article may be used, provided such use is non-commercial. Any reproduction or distribution of the entire article must also prominently state: “This article is © 2026 OKX and is used with permission.”
Permitted excerpts must cite to the name of the article and include attribution, for example “Article Name, [author name if applicable], © 2026 OKX. Some content may be generated or assisted by artificial intelligence (AI) tools. No derivative works or other uses of this article are permitted.
FAQs
Before. On X-Perps, TP and SL are set directly in the order form before you confirm the trade. You enter your take-profit and stop-loss percentages (or price levels) as part of placing the order. The position opens with your TP/SL already attached.
Yes. You can modify or cancel TP/SL orders from the open orders panel at any time, as long as they have not been triggered yet. If market conditions change after you enter, you can update your levels to reflect your new view.
Mark Price uses OKX’s fair-value calculation and is less susceptible to brief price spikes, making it the safer default for most traders. Last Price reacts faster but is more vulnerable to wicks. See the trigger types section above for a full explanation.
© OKX, 2025. Эту статью можно копировать и распространять как полностью, так и в цитатах объемом не более 100 слов, при условии некоммерческого использования. При любом копировании или распространении всей статьи должно быть указано: «Разрешение на использование получено от владельца авторских прав на эту статью — © OKX, 2025. Цитаты должны содержать ссылку на название статьи и ее автора, например: «Название статьи, [имя автора, если указано], © OKX, 2025». Часть контента может быть создана с использованием инструментов искусственного интеллекта (ИИ). Создание производных материалов и любое другое использование данной статьи не допускается.




