# Take Profit and Stop Loss

How It Works:

As a front-end coordinator with solvers through SYMMIO core contracts, we’ve implemented our own proprietary solution for SL/TP. This comprehensive solution allows us to trigger orders as soon as the price hits the user’s target; consisting of a price query from Binance official price feeds, Last Price, Mark Price, and a fallback option in case it goes down to always have a reliable Oracle to gather price from.

For us to be able to close a position on behalf of the user, the SYMMIO team has added a function inside the core contract that allows us to execute a transaction on the user’s behalf after signing a transaction permitting us to do so.

**The system works as follows:**

**Price** >= TP → System is triggered, and the close request is sent to the solver.

**Price** <= SL → System is triggered, and the close request is sent to the solver.

{% hint style="info" %}
**Price** is determined using "**Last Price**" from source market to align with charting in normal trading conditions (99% of the time). To add protection against price wicks, if "**Last Price**" dislocates from the market "**Mark Price**" by >0.25% during volatility, IntentX uses "**Mark Price**" to trigger the stop loss instead.
{% endhint %}

Once triggered, the transaction is closed at **Market Price**, which can vary from the trigger price.

The time between the system trigger and the transaction being sent is minimal, and thanks to our Account Abstraction technology, we can sponsor this operation with a $0 gas cost for the user.

However, the timing between different states on the SYMMIO on-chain side can vary between 3–5 seconds, which creates room for orders not to get filled/executed because of price changes.

Users must consider that this system works better on medium & long-term operations rather than in scalping & low timeframe operations.

{% hint style="danger" %}
**Warning:** As a front-end implemented solution, IntentX cannot guarantee that the close order is complete on the solver side, only that the close request is sent correctly to the solver. This dependency exists on the SYMMIO and solver side, with further development required to create a 100% robust system, including a multi-dimensional system with redundancies on both the IntentX and solver side.
{% endhint %}

## Setting Stop Loss & Take Profit <a href="#id-4a41" id="id-4a41"></a>

Setting your SL & TP is as easy as a few clicks.

Firstly, you need to open a position and view your position in the ‘’Positions’’ tab. From there, you’ll find TP/SL. Click on the settings to start setting up your TP/SL.

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

Now, you’ll need to enable stop loss with an approval. This approval needs to be set so IntentX can close your position.

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

Once you’ve enabled stop loss, it’s as simple as choosing your Take Profit & Stop Loss. Choose percentage-based, or put in your own desired prices.


---

# Agent Instructions: 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.intentx.io/intentx-platform/trading-on-intentx/take-profit-and-stop-loss.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.
