> For the complete documentation index, see [llms.txt](https://docs.javsphere.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.javsphere.com/products/leveragex/trader/edit-and-close-trade.md).

# Edit & Close Trade

In LeverageX, users have full control over their trades, allowing them to edit and close positions easily.

{% embed url="<https://youtu.be/Zg1HlXrDd9k>" %}

## Editing Trades

* Each trade can be modified by adjusting Stop Loss (SL) or Take Profit (TP) settings. To do this, simply click on the edit button next to the SL/TP ($) element.
* Additionally, you can change the leverage, size, collateral, and slippage settings by clicking on the edit button next to the Size element.
* During the Minimum Trade Duration you can't edit SL, TP, or position size. [Click here for more information](/products/leveragex/trader/limitations.md).&#x20;

## Position Health

LeverageX uses a color-coded system to show the health of your position:

* Green: Your position is in profit or has a loss of up to -30%, indicating a relatively safe position.
* Yellow: Your position is at a loss between -30% and -60%. Keep a close eye on this trade.
* Red: Your position is at a loss greater than -60%. Be cautious as the position is at risk of liquidation.

## Closing Trades

* To close a trade, simply click the “Close” button. This will lock in any profits or losses and remove the position from your open trades.
* During the Minimum Trade Duration you can't close the position. [Click here for more information](/products/leveragex/trader/limitations.md).&#x20;

<figure><img src="/files/LaE9yXRNIOrnuzs8JEKP" alt=""><figcaption></figcaption></figure>


---

# 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 dynamically by asking a question.

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

```
GET https://docs.javsphere.com/products/leveragex/trader/edit-and-close-trade.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.
