# Setting TP/SL

There are various methods in setting and changing Take Profits and Stop Losses.

## Using the "Add TP/SL" button

When the bot replies to an open trade submission, a blue button titled `Add TP/SL` is attached with it's response. Clicking this will prompt a user friendly popup where values can be specified for Take Profit and/or Stop Loss. Set the value for one or both.

<figure><img src="/files/JuFk407ZOA8qIq4eBJD9" alt=""><figcaption><p>Set TP/SL popup upon clicking the "Add TP/SL" button</p></figcaption></figure>

The bot will not allow a value below the current market price to be set for a Take Profit, and a value above the current market price to be set for a Stop Loss- and vice versa for short positions.

#### Changing or removing TP/SL using "Add TP/SL" button

This button can also be used to change or remove existing TPs and SLs. To change, simply specify a new value. To remove one or both, set the value to 0 (zero) or leave the fields blank.

{% hint style="info" %}
Did you know?\
Using the `$list` or `/list` command will display all open trades where each one has a button to add or change TP/SL.
{% endhint %}

After successfully setting or changing a TP/SL, the bot sends a ephemeral message to confirm the values specified. The bot will also edit it's response embed to the submitted trade to display the TP/SL values.

<figure><img src="/files/uUolPPCm5b8OJao5YY4l" alt=""><figcaption><p>Successfully setting or changing TP/SL</p></figcaption></figure>

## Setting TP/SL with trade submission

Take Profit and/or Stop Loss values can be specified anywhere within the trade notes when submitting a trade. When using the keyword letters `TP` and/or `SL`, any numbers following after them will be the values used. It's sophisticated in a way where symbols or words can be used between `TP`/`SL` and the number values.

> Specify the price after the keyword letters **`TP`** & **`SL`** | To cancel or remove a TP/SL, set it to **0** (zero).\
> Examples;\
> `TP 2.34 SL 1.23`\
> `TP @ 2.34 and SL @ 1.23`\
> `TP is 2.34 & SL is 1.23`\
> \&#xNAN;*(Any symbol or word can be used where `@` and `is` are.)*

<figure><img src="/files/VN4BM3ItBy9Jh1uTw9eI" alt=""><figcaption><p>Example of setting TP/SL values with trade submission notes</p></figcaption></figure>

### Changing TP/SL using List command

{% hint style="info" %}
The `$list` or `/list` command displays all open trades ordered by most recent. Specifying a ticker with the command will show only open trades for that ticker symbol.
{% endhint %}

A TP/SL can be added, changed, or removed at any time by using the `$list` or `/list` command.  It displays all your open trades 4 at a time. Each trade has a TP/SL button that can be used to specify new or remove values.<br>

<figure><img src="/files/MMEoIVRotZdolOSkKtuZ" alt=""><figcaption><p>List command display example</p></figcaption></figure>

### When TP/SL is Hit

Trades are intended to auto close when the asset's price reaches or exceeds the specified TP/SL values. When this occurs, the bot will send a message notification in the originating server channel the trade was opened in, as well send a DM notification (if enabled) to the trader or user.

<figure><img src="/files/JlEXiQaWdPqQjEE0hefZ" alt=""><figcaption><p>Notification sent to channel the trade originates in</p></figcaption></figure>

<figure><img src="/files/QhawzoHUdAsEnVpxxfrj" alt=""><figcaption><p>DM notification for TP/SL being triggered</p></figcaption></figure>

{% hint style="danger" %}
Note: Auto closing at TP/SL when hit is not always 100% successful with volatility. If you have them set and a trade didn't close when it should, please use the `$fixtrade` command or reach out to [support.](https://discord.gg/rhAvzyzk9J)
{% endhint %}

~~Editor notes: Add .gif of setting TP/SL and bot editing the embed.~~


---

# 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.nvstly.com/submit-stocks-options-trades-on-discord/setting-tp-sl.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.
