# ROE trailing

To increase the profitability of a margin position, you can use ROE trailing to trail for a better close price.

The basic concepts are exactly the same as regular buy and sell [trailing](/wiki/how-to-work-with-gunbot/basic-workings/trailing.md), with three differences:

* Trailing ranges are based on a percentage of the unrealized ROE for the position. This means that the trailing limits get wider when unrealized ROE increases.
* Instead of trailing prices, changes in unrealized ROE are trailed.
* The only dependency for ROE trailing is that it starts when the minimum ROE target is reached. Other factors like confirming indicators play no role.

![](https://raw.githubusercontent.com/boekenbox/gitbook-images/master/image%20%2822%29.png)

{% hint style="info" %}
Because trailing is completely based on ROE, and not on price, you must use larger trailing limits than with other types of trailing.

Setting a ROE Limit of 1 means that when your unrealized ROE decreases with 1% (i.e. from 1.00 to 0.99), the position will be closed. A low setting like this hardly allows for trailing.
{% endhint %}


---

# 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://gunthy.gitbook.io/wiki/how-to-work-with-gunbot/basic-workings/roe-trailing.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.
