# Advanced Trading: Limits, TP/SL & TWAPs

With UniversalX, you can also execute more complex trading operations, 100% onchain. These include:<br>

* Limit orders
* Take-Profit/Stop-Loss operations
* TWAP orders<br>

Below, you can find a breakdown of these functionalities:

### 1. Limit Orders

A **limit order** lets you specify the exact price at which you’re willing to buy or sell a token.\
\
Your transaction will only be executed once that price becomes available in the pool.

#### To create a limit order:

1. Open the **Trade** screen for any token.
2. Within **Buy** or **Sell**, select the **Limit** tab.
3. Fill in:
   * **Limit Price** – The price at which you want to buy or sell the token.
   * **Amount** – How much of the token you'd like to trade (you can also use the quick‑select buttons to set this).
4. *(Optional)* Attach TP/SL presets (see section 2).
5. Press **Buy / Sell.**

After this, you can find your order under your **History** at the bottom of the **Execution panel.**

<figure><img src="/files/VHNUqXkzLLKMA79dYdjx" alt=""><figcaption><p>Setting up a limit order.</p></figcaption></figure>

***

### 2. Take‑Profit & Stop‑Loss (TP/SL)

**TP/SL** lets you automate exits at predefined profit or loss levels.\
UniversalX supports:

| Type                 | Field              | Description                                                   |
| -------------------- | ------------------ | ------------------------------------------------------------- |
| **TP (Take‑Profit)** | *PnL %* or *Price* | Closes a slice of the position once the selected gain is hit. |
| **SL (Stop‑Loss)**   | *PnL %* or *Price* | Closes a slice if the loss threshold is breached.             |

You can also stack several legs of these (up to 4 TPs and 4 SLs) to ladder out of a position gradually.

**To set up a Take-Profit or Stop-Loss strategy:**<br>

1. **Summon the TP/SL modal.** Within the **Execution panel**, select TP/SL.
2. **Edit a preset or create one.** You'll see the tabs **P1‑P4**. These are trading presets. You can either edit the pre-selected one or create a new one by hitting **“+”.**
3. **Define your exit legs.** Fill up the following fields:

| Field                    | What it means                     | Example                                         |
| ------------------------ | --------------------------------- | ----------------------------------------------- |
| **Sell %**               | How much of the position to close | `50` → half the size                            |
| **PnL %** (or **Price**) | Profit or loss trigger            | `+100` (double your money) for TP, `‑50` for SL |

\
You can also add multiple legs to your strategy to ladder your approach.

4. **Execute your trade once you're ready.**

<figure><img src="/files/3vM96pYlHqj8MAIq9Ym8" alt=""><figcaption><p>Setting up TPs and SLs.</p></figcaption></figure>

***

### 3. TWAP (Time‑Weighted Average Price) Orders

A **TWAP** splits a large order into equal-sized child orders sent at fixed intervals. This reduces market impact and helps you track the average price of the range.

**To place a TWAP order:**

1. Choose **Market | Limit | TWAP** → **TWAP**.
2. Set an **Interval (Intv.)** – e.g. every 5 minutes.
3. Fill out **Split to** – i.e. the number of trades required to fill your order.
4. Enter your total trading **Amount.**
5. **Confirm.** Your order is now sent and will execute even if you close UniversalX.

After this, you can find your TWAP order under your **History** at the bottom of the **Execution panel.**

<figure><img src="/files/GeTI6RSidwy70Ur0bMQR" alt=""><figcaption><p>Using TWAPs on UniversalX.</p></figcaption></figure>

***

### 4. Preset Strategies (P‑slots & S‑slots)

Beyond one‑off orders, UniversalX also offers dedicated slots to **save full strategies.**&#x20;

You can select between setting up **presets** and **strategies**:

| Slot group     | Purpose                                                |
| -------------- | ------------------------------------------------------ |
| **Presets**    | Parameter templates (leverage, slippage, MEV, expiry). |
| **Strategies** | Full TP/SL blueprints.                                 |

You can predefine up to four trading settings to quickly apply them when trading. \
\
**To create a preset:**

1. **Locate** the Presets and Strategies bar at the top of the **Execution panel**.
2. Press **+** next to an empty P or S slot.
3. Configure your strategy or preset by filling out their parameters. **Remember that every preset has a Buying and a Selling component**, so you'll need to fill out both.
4. Give it a descriptive name and **Confirm**.
5. **Select it any time** you'd like to use it for a trade.

<figure><img src="/files/Da1tCg1NLUvgJjjFk0oK" alt=""><figcaption><p>Setting up strategies.</p></figcaption></figure>

***


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.universalx.app/use/trade-buy-and-sell-tokens-on-any-chain/advanced-trading-limits-tp-sl-and-twaps.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
