# 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="https://1979700980-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7y9NJ86ay9CegkK2t71u%2Fuploads%2FsYV04BW2yd0T2MkR1dKd%2Fimage.png?alt=media&#x26;token=fd9fec6d-7b40-44b3-9d0b-986a8f12ed5e" 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="https://1979700980-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7y9NJ86ay9CegkK2t71u%2Fuploads%2FMjXtu9xTR6BfinSaxzF9%2F%7BCFD6E60B-A38F-4D97-8AAB-76238F72BFF3%7D.png?alt=media&#x26;token=f46893ef-1cd4-4076-afa7-92b6ba641481" 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 1.34 SL 1.23`\
> `TP @ 1.34 and SL @ 1.23`\
> `TP is 1.34 & SL is 1.23`\
> \&#xNAN;*(Any symbol or word can be used where `@` and `is` are.)*

<figure><img src="https://1979700980-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7y9NJ86ay9CegkK2t71u%2Fuploads%2Fnckpv04q1BfDljPs1LXx%2Fimage.png?alt=media&#x26;token=a2003ed0-30e3-4414-bca4-08656b0e98cb" 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.

<figure><img src="https://1979700980-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7y9NJ86ay9CegkK2t71u%2Fuploads%2FYstYsYTvfJBDO1kJ6PEG%2F%7B2084C319-A7A5-4148-BF95-B1A85BF5AAE5%7D.png?alt=media&#x26;token=7ae03984-f821-43ef-8d7b-4b60918b7901" 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="https://1979700980-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7y9NJ86ay9CegkK2t71u%2Fuploads%2FDw2f1T6oiem6QgJHjngc%2Fimage.png?alt=media&#x26;token=561b86cf-8cc5-4498-9226-da2391d6d894" alt=""><figcaption><p>Notification sent to channel the trade originates in</p></figcaption></figure>

<figure><img src="https://1979700980-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7y9NJ86ay9CegkK2t71u%2Fuploads%2FljhkzuqakukhV3Dqx5pK%2Fimage.png?alt=media&#x26;token=1a63a5bf-4cf0-4e96-8fea-71a777771e89" 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.~~
