> For the complete documentation index, see [llms.txt](https://xdex.gitbook.io/xdex/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://xdex.gitbook.io/xdex/star-here/trading-perpetual-contracts/take-profit-and-stop-loss.md).

# Take-Profit & Stop-Loss

* **Take-Profit (TP):** Close your position once you've reached a specified level of profit
* **Stop-Loss (SL):** Exit your position once the asset reaches a specified price to mitigate capital losses on your order when the market moves against you

Here's how you can set up Take-Profit and Stop-Loss on your Limit, Market and Conditional (Market or Limit) orders. Before you begin, please ensure that you are logged into your XDEX account and that your wallet is successfully connected to the platform.

*Please note: TP/SL orders functions as a market order.*

1. On the trading page, select the contract you'd like to trade and create either your Limit, Market or Conditional (Limit or Market) order by choosing the correct option on the panel seen on the right.

<figure><img src="https://4044384595-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmKAADDJlqS6BoEpWBaWI%2Fuploads%2F7KhLqLSBocdmcLPXGwOA%2Fimage.png?alt=media&amp;token=b2333b82-fc3f-4f96-b298-3d953824ac43" alt=""><figcaption></figcaption></figure>

2. Fill in your order accordingly. For a recap on XDEX's order types and how to create each order, please refer to [this article](/xdex/star-here/trading-perpetual-contracts/order-types.md).
3. Please note that you can only select and configure TP/SL options after your order is executed. This means that for Limit and Conditional (Market or Limit) orders, you will need to wait for the orders to move from a pending status (under Active or Conditional) into the "Positions" tab at the bottom of the trading page here. As Market orders are immediately executed at the best available price, you will not need to wait for the order to be triggered by a set price before setting TP/SL in the same way.

&#x20; 4\.  By default, all TP/SL orders are Reduce-Only orders on XDEX.

5. Check out your open positions under the "Postions" tab and click on the **\[+Add]** button to set TP/SL.

<figure><img src="https://4044384595-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmKAADDJlqS6BoEpWBaWI%2Fuploads%2Fbkii6djqzjqCPeX0h3sd%2Fimage.png?alt=media&amp;token=e8a6fcf6-a477-412d-94fa-3ae692307a21" alt=""><figcaption></figcaption></figure>

5. Alternatively, you can also use the Close By Limit function to set up Take-Profit orders .
