> For the complete documentation index, see [llms.txt](https://docs.odin.tools/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.odin.tools/thor-trading-bot/thor-telegram-bot/trailing-stop-loss.md).

# Trailing Stop-Loss

### What is a Trailing Stop-Loss?

A **Trailing Stop-Loss** is an advanced version of a standard stop-loss.

Instead of remaining fixed, the stop price **automatically moves upward as the token price increases**. This allows you to **lock in profits while limiting downside risk**, making it ideal for capturing strong momentum without giving back gains during pullbacks.

***

### Example

You set:

* **Take Profit:** +200%
* **Stop Loss / Drawdown:** -40%

If the token pumps **+190%** and then starts to drop, the outcome depends on whether the trailing stop is enabled.

| Scenario                   | Result                                                                                                                                                   |
| -------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Without Trailing Stop-Loss | The position stays open until the price drops to **-40%**, which can turn a profitable trade into a loss.                                                |
| With Trailing Stop-Loss    | The stop price **moves upward with the price**, securing profits. If the price peaks at **+190%**, the stop adjusts to about **+74%**, locking in gains. |

***

### Formula

The trailing stop is calculated using the following formula:

\text{Stop Price} = \text{Highest Price} \times (1 - \text{Drawdown})

Example calculation:

| Highest Price Reached | Drawdown | Stop Price |
| --------------------- | -------- | ---------- |
| +190%                 | 40%      | +74%       |

This means the trade will **automatically close in profit** if the price drops to that level.

***

### How to Enable Trailing Stop-Loss

{% hint style="info" %}
Trailing Stop-Loss Setup Tutorial: [YouTube](https://youtube.com/shorts/Z-GTnAjdH1I)&#x20;
{% endhint %}

| Step | Action                                                                                                                                                                                                                                                                                                                         |
| ---- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| 1    | <p>Open <strong>Settings</strong><br></p><p><img src="https://2689080889-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiicLjI9swzGCpZXOuJTI%2Fuploads%2FCx5CLGs6K9Yld8sdnNwp%2Fimage%20(43).png?alt=media&amp;token=320100ab-0bbe-4439-8b99-8d8a2326261f" alt="" data-size="original"></p>               |
| 2    | <p>Click on <strong>Trading Settings</strong><br></p><p><img src="https://2689080889-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiicLjI9swzGCpZXOuJTI%2Fuploads%2FQam0ngurwP0GHJi3qy0C%2Fimage%20(44).png?alt=media&amp;token=f3e3ed4d-7e2f-4a6d-9b3c-8390f011fc8b" alt="" data-size="original"></p>   |
| 3    | <p>Enable <strong>Auto Sell</strong><br><br><img src="https://2689080889-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiicLjI9swzGCpZXOuJTI%2Fuploads%2FK1Xh40bLFwmQ6OlHSrTc%2Fimage%20(46).png?alt=media&amp;token=89a0a1ac-a901-499b-8572-f7699b23f397" alt=""></p>                                    |
| 4    | <p>Activate <strong>Trailing Stop-Loss</strong><br></p><p><img src="https://2689080889-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiicLjI9swzGCpZXOuJTI%2Fuploads%2FWUmcroouVNYG86t0fhoP%2Fimage%20(47).png?alt=media&amp;token=db78ec46-e154-48dd-a3c6-ce61fee17868" alt="" data-size="original"></p> |
