# 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="https://3129435684-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC9pzDucGQU4QfCFx4WS7%2Fuploads%2FyspakzNA3tlzFPXB0Wt9%2Fsetting-up-a-limit-order.gif?alt=media&#x26;token=2eb8a358-3140-4bcc-b809-b2733cfdaa1b" 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="https://3129435684-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC9pzDucGQU4QfCFx4WS7%2Fuploads%2F3CG0HUYH5nFAaGnkxFrr%2FSetting-up-a-TP-or-SL.gif?alt=media&#x26;token=e8b99960-62c5-415d-b2fe-7b975d42bc9e" 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="https://3129435684-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC9pzDucGQU4QfCFx4WS7%2Fuploads%2Fy1Xva6d6mmK0isMnmXRL%2FTWAP.gif?alt=media&#x26;token=9807b3fd-98e1-497a-9b9e-bccee86dbd43" 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="https://3129435684-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC9pzDucGQU4QfCFx4WS7%2Fuploads%2FsOvdlerg1elpGKI31dku%2FSetting-up-a-strategy.gif?alt=media&#x26;token=cbccdf2d-041a-4016-b6b4-8a4863c4d443" alt=""><figcaption><p>Setting up strategies.</p></figcaption></figure>

***
