> For the complete documentation index, see [llms.txt](https://doc.ave.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.ave.ai/ave-ai-perp-dex/ave.ai-perpetual-trading-interface/order-panel-execution-and-position-design-engine.md).

# Order Panel: Execution & Position Design Engine

This module is not just for placing orders—it is used for **position structuring and risk modeling**.

<figure><img src="https://282307349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVhfw2n4uNr4o5eCyFsyK%2Fuploads%2FX0AJurpODT84W3GESPF3%2Fimage.png?alt=media&amp;token=e9c76cae-a392-4eea-8348-376c51ce68d3" alt=""><figcaption></figcaption></figure>

1. **Margin Mode: Cross vs Isolated**

These represent two fundamentally different risk models:

* **Cross Margin** All account funds are shared as margin.
  * Pros: higher resilience to volatility
  * Cons: one bad trade can impact entire account

**Use cases:**

* Trend trading
* Lower leverage
* Swing positions

***

* **Isolated Margin** Each position has independent margin.
  * Max loss = margin allocated to that position

**Use cases:**

* High leverage trades
* Breakout strategies
* Experimental trades

👉 Advantage: **risk is contained per position**<br>

2. **Leverage Adjustment**

<figure><img src="https://282307349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVhfw2n4uNr4o5eCyFsyK%2Fuploads%2FI2QiL3jkvHyABd6YGeIL%2Fimage.png?alt=media&amp;token=4f1696b1-f5e2-4f3f-afbe-95c5ab6d32dd" alt=""><figcaption></figcaption></figure>

Leverage determines the **distance between entry price and liquidation price**. Higher leverage → liquidation price closer → less tolerance👉 Professionals use leverage to:

* Match stop-loss distance
* Optimize capital efficiency (not just maximize gains)

***

3. **Limit Orders**

<figure><img src="https://282307349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVhfw2n4uNr4o5eCyFsyK%2Fuploads%2FwzTUuo627RdqA5HQRH6t%2Fimage.png?alt=media&amp;token=e6c59c20-ef83-4019-b4e7-73bf82b0857a" alt=""><figcaption></figcaption></figure>

Allows execution at a **specified price**.**Use cases:**

* Buy at support
* Sell at resistance

**Advantages:**

* Lower slippage
* Better risk/reward

***

4. **Market Orders**

Executes immediately at current market price.**Use cases:**

* Entering breakouts
* Fast stop-loss
* Emergency exits

👉 Designed for **speed-first execution**

***

5. **Position Slider (Capital Allocation Tool)**

<figure><img src="https://282307349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVhfw2n4uNr4o5eCyFsyK%2Fuploads%2F6tvIVCo3KqTcNnGxowDB%2Fimage.png?alt=media&amp;token=398e4298-579b-47d7-af17-7482185d9542" alt=""><figcaption></figcaption></figure>

A quick **position sizing calculator**:

* No need for manual margin calculation
* Allocate based on account percentage

👉 Critical for fast execution in volatile markets

***

6. **Take Profit / Stop Loss System**

One of the most important features—**automated risk control**:

* Stop loss → exit when trade is invalidated
* Take profit → lock in gains

👉 Without stop-loss, risk is effectively **unlimited**

***

7. **Reduce-Only Function**

Ensures orders **only reduce positions**, not reverse them.**Use cases:**

* Partial profit-taking
* Grid exits
* Controlled position reduction

👉 A key tool for professional position management
