> For the complete documentation index, see [llms.txt](https://tradewithonyx.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tradewithonyx.gitbook.io/docs/trading/take-profit-stop-loss.md).

# Take Profit / Stop Loss

Take Profit and Stop Loss orders allow positions to be closed automatically once a defined profit target or loss threshold is reached. These orders are triggered based on the mark price.

<figure><img src="/files/g742Iig6vKRDC2Ukujed" alt="" width="375"><figcaption></figcaption></figure>

Users can create and modify TP/SL levels directly from the TradingView chart interface. If an order is moved to a price level that would result in immediate execution, the system will return an error to prevent unintended execution. Positions that are intended to be closed instantly can instead be exited manually through the trade panel.<br>

***

### **Market vs Limit TP/SL Orders**

You can choose between market or limit TP/SL orders:

* Market TP/SL orders have a default slippage tolerance of 8%.
* Limit TP/SL orders allow you to control slippage by setting a custom price.

***

### **TP/SL Tied to a Position**

When you place TP/SL orders from the position form, they default to cover the entire position size. You can also set a fixed size manually — this will not adjust even if your position changes.

These are recommended for beginners due to their simplicity and ease of use.


---

# 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, and the optional `goal` query parameter:

```
GET https://tradewithonyx.gitbook.io/docs/trading/take-profit-stop-loss.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
