# Trailing Take Profit

Trailing Take Profit (TTP) allows a trader to progressively sell his assets for profits as the price appreciates. Similar to StockHero's Trailing Stoploss, a user can set the following TTPs:

* Fixed TTP
* Variable TTP

#### Fixed TTP

Fixed TTP allows a trader to exit a fixed percentage of the stocks bought by the bot for every fixed increase in the price level.&#x20;

For example, if the buy price is 100 USD and the quantity of stock purchased is 100, the following table will illustrate exactly how much of the purchased stock will be sold.

Fixed TTP Settings: Sell 1% of asset at every 2% above Buy Price

| Price | Qty of Stocks Sold | Balance |
| ----- | ------------------ | ------- |
| 101   | 0                  | 100     |
| 102   | 1                  | 99      |
| 104   | 1                  | 98      |

#### Variable TTP

Variable TTP allows a trader to exit a percentage of their stock holdings whenever a price level is hit. The intervals between the price levels are not the same. It is important for the trader to ensure that the total percentages for all the asset allocations are equal to 100%.

<figure><img src="/files/lpZqziUrCT0TaKkoauXT" alt=""><figcaption><p>(Total Sell Percentages = 100%. Variable TTP is correctly configured)</p></figcaption></figure>

If the exit percentage is not equal to 100%, the bot will never exit since there are remaining stocks that are not sold.

### Trailing Take Profit And Extra Order Combination

TTP allows a trader to run a dynamic, yo-yo strategy. If a bot has activated TTP and encounters an entry condition again, an extra order (if set by the user) will be executed by the bot.&#x20;

This interplay of buy-sell-buy-sell allows a user to run a longer strategy profitably, as long as the price appreciates in the long run.

When a new extra order is executed, the average buy price will be refreshed based on previous buy/sell orders.

A deal is considered complete only when the bot has sold all the stocks bought in previous orders.


---

# 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.stockhero.ai/bot-settings/trailing-take-profit.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.
