> For the complete documentation index, see [llms.txt](https://gunthy.gitbook.io/wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gunthy.gitbook.io/wiki/trading-strategy-options/trailme.md).

# TrailMe

TrailMe is a group of features that allows you to trail different types of trades to reach better entry or exit points. This page describes all available configuration options.

Trailing works just like it does for the TSSL strategy, the difference being the starting point of trailing.

Orders resulting from trailing are only placed when the main strategy criteria are met, and confirming indicators (if any) allow the order. All these conditions must occur in the same cycle.

## TrailMe settings parameters

### Trail Me Buy

{% tabs %}
{% tab title="Description" %}
Use this to enable tssl-style trailing for strategy buy orders.
{% endtab %}

{% tab title="Values" %}
**Values:** true or false

**Default value:** false
{% endtab %}

{% tab title="Order types" %}

| Affects      | Does not affect |
| ------------ | --------------- |
| Strategy buy | RT buy          |
|              | Strategy sell   |
|              | Close           |
|              | DCA buy         |
|              | Stop limit      |
|              | RT buyback      |
|              | RT sell         |
| {% endtab %} |                 |

{% tab title="Name" %}
Parameter name in `config.js`: `TRAIL_ME_BUY`
{% endtab %}
{% endtabs %}

### Trail Me Sell

{% tabs %}
{% tab title="Description" %}
Use this to enable tssl-style trailing for strategy sell orders.
{% endtab %}

{% tab title="Values" %}
**Values:** true or false

**Default value:** false
{% endtab %}

{% tab title="Order types" %}

| Affects       | Does not affect |
| ------------- | --------------- |
| Strategy sell | RT buy          |
|               | Strategy buy    |
|               | Close           |
|               | DCA buy         |
|               | Stop limit      |
|               | RT buyback      |
|               | RT sell         |
| {% endtab %}  |                 |

{% tab title="Name" %}
Parameter name in `config.js`: `TRAIL_ME_SELL`
{% endtab %}
{% endtabs %}

### Trail Me DU

{% tabs %}
{% tab title="Description" %}
Use this to enable tssl-style trailing for DU orders.
{% endtab %}

{% tab title="Values" %}
**Values:** true or false

**Default value:** false
{% endtab %}

{% tab title="Order types" %}

| Affects      | Does not affect |
| ------------ | --------------- |
| DCA buy      | RT buy          |
|              | Strategy sell   |
|              | Close           |
|              | Strategy buy    |
|              | Stop limit      |
|              | RT buyback      |
|              | RT sell         |
| {% endtab %} |                 |

{% tab title="Name" %}
Parameter name in `config.js`: `TRAIL_ME_DU`
{% endtab %}
{% endtabs %}

### Trail Me RT

{% tabs %}
{% tab title="Description" %}
Use this to enable tssl-style trailing for RT\_BUY orders.
{% endtab %}

{% tab title="Values" %}
**Values:** true or false

**Default value:** false
{% endtab %}

{% tab title="Order types" %}

| Affects      | Does not affect |
| ------------ | --------------- |
| RT buy       | Strategy buy    |
|              | Strategy sell   |
|              | Close           |
|              | DCA buy         |
|              | Stop limit      |
|              | RT buyback      |
|              | RT sell         |
| {% endtab %} |                 |

{% tab title="Name" %}
Parameter name in `config.js`: `TRAIL_ME_RT`
{% endtab %}
{% endtabs %}

### Trail Me RT Sell

{% tabs %}
{% tab title="Description" %}
Use this to enable tssl-style trailing for RT\_SELL orders above the last RT\_BUY rate.
{% endtab %}

{% tab title="Values" %}
**Values:** true or false

**Default value:** false
{% endtab %}

{% tab title="Order types" %}

| Affects      | Does not affect |
| ------------ | --------------- |
| RT sell      | Strategy buy    |
|              | Strategy sell   |
|              | Close           |
|              | DCA buy         |
|              | Stop limit      |
|              | RT buyback      |
|              | RT buy          |
| {% endtab %} |                 |

{% tab title="Name" %}
Parameter name in `config.js`: `TM_RT_SELL`
{% endtab %}
{% endtabs %}

### Trail Me Buy Range

{% tabs %}
{% tab title="Description" %}
This sets the buy range for TrailMe.

Setting a range of 0.5% at a starting price of 0.1 would set a range between 0.0995 and 0.1005. As long as prices keep moving downwards, the range moves down along with the price.

As soon as prices start going upward, the range freezes and a buy order is placed when the price crosses the upper boundary of the range.
{% endtab %}

{% tab title="Values" %}
**Values:** numerical – represent a percentage.

**Default value:** 0.5
{% endtab %}

{% tab title="Order types" %}

| Affects      | Does not affect |
| ------------ | --------------- |
| Strategy buy | RT sell         |
| RT Buy       | Strategy sell   |
| DCA buy      | Close           |
|              | Stop limit      |
|              | RT buyback      |
| {% endtab %} |                 |

{% tab title="Name" %}
Parameter name in `config.js`: `TRAIL_ME_BUY_RANGE`
{% endtab %}
{% endtabs %}

### Trail Me Sell Range

{% tabs %}
{% tab title="Description" %}
This sets the sell range for TrailMe.

Setting a range of 0.5% at a current price of 0.1 would set a range between 0.0995 and 0.1005. As long as prices keep moving upwards, the range moves up along with the price.

As soon as prices start going downward, the range freezes and a sell order is placed when the prices crosses the lower boundary of the range.
{% endtab %}

{% tab title="Values" %}
**Values:** numerical – represent a percentage.

**Default value:** 0.5
{% endtab %}

{% tab title="Order types" %}

| Affects       | Does not affect |
| ------------- | --------------- |
| Strategy sell | Strategy buy    |
|               | RT buy          |
|               | Close           |
|               | DCA buy         |
|               | Stop limit      |
|               | RT buyback      |
|               | RT sell         |
| {% endtab %}  |                 |

{% tab title="Name" %}
Parameter name in `config.js`: `TRAIL_ME_SELL_RANGE`
{% endtab %}
{% endtabs %}

### Trail Me RT Sell Range

{% tabs %}
{% tab title="Description" %}
This sets the sell range for TrailMe.

Setting a range of 0.5% at a current price of 0.1 would set a range between 0.0995 and 0.1005. As long as prices keep moving upwards, the range moves up along with the price.

As soon as prices start going downward, the range freezes and a sell order is placed when the prices crosses the lower boundary of the range.
{% endtab %}

{% tab title="Values" %}
**Values:** numerical – represent a percentage.

**Default value:** 0.5
{% endtab %}

{% tab title="Order types" %}

| Affects      | Does not affect |
| ------------ | --------------- |
| RT sell      | Strategy buy    |
|              | Strategy sell   |
|              | Close           |
|              | DCA buy         |
|              | Stop limit      |
|              | RT buyback      |
|              | RT buy          |
| {% endtab %} |                 |

{% tab title="Name" %}
Parameter name in `config.js`: `TRAIL_ME_RT_SELL_RANGE`
{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://gunthy.gitbook.io/wiki/trading-strategy-options/trailme.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
