> For the complete documentation index, see [llms.txt](https://docs.cod3x.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cod3x.org/terminal-overview/position-management/opening-a-new-position.md).

# Opening a New Position

## Opening a New Position

The **New Position** button sits just on the top right hand side of the terminal.\
This is where you open a leveraged long or short trade on any market—fully on-chain and in a few guided steps.

***

## Creating a Position

The position creator is a **single unified panel** that lets you configure everything in one place—direction, order type, collateral, leverage, and risk controls—without clicking through multiple steps.

### 1. Choose Direction & Order Type

At the top of the panel you can select:

* **Long** – Profit when price rises.
* **Short** – Profit when price falls.

Then choose the execution type:

* **Market** – Executes immediately at the best available price.
* **Limit** – Opens your position only when the market reaches your target price.

Click on the little settings icon to manually adjust the slippage.

The market pair (e.g., BTC/USD, ETH/USD) is shown above the widget based on the chart you’re viewing.

***

### 2. Set Order Size & Leverage

Use the slider or input fields to define:

* **Collateral Amount** – How much of your HL balance you want to deploy.
* **Leverage** – Increase or decrease position exposure with the slider.

A live preview updates instantly, showing:

* Position size
* Estimated entry
* Liquidation metrics

This allows you to adjust risk without leaving the panel.

***

### 3. Configure Stop Loss & Take Profit (Optional)

Enable **SL** or **TP** to automate exits:

* **Stop Loss (SL)** – Close the position if price moves against you.
* **Take Profit (TP)** – Secure gains at a predefined price.

You can enter exact trigger levels or use percentage shortcuts.\
Cod3x displays the expected PnL at each level so you can confirm the risk profile.

***

### 4. Open the Position

When everything looks right:

* Market orders execute immediately.
* Limit orders remain open until filled.

Click **Open Long** or **Open Short** to send the trade through Hyperliquid’s matching engine.

Your position then appears in the **Positions & Orders** section below the chart, where you can modify size, SL/TP, or close it at any time.

***

#### Quick Tips

* **Watch your liquidation buffer** — it updates dynamically as you adjust leverage.
* **Use SL/TP early** — they help automate discipline and protect capital.
* **Everything is editable** — you can adjust SL/TP, add to size, or close at any time from the position panel.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.cod3x.org/terminal-overview/position-management/opening-a-new-position.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
