Skip to content

Implement Trailing take profit orders #13

@btschwertfeger

Description

@btschwertfeger

We should check if trailing take profit orders make sense. This way instances could achieve way higher profits than expected.

Since there is currently only the Kraken exchange implemented, a look into the docs has shown that their built-in trailing-stop mechanism is not desirable, since there we have no mechanism to ensure that the trailing stop sell starts at the point the position reached the interval profit.

Meaning when buying at 100 € and having an interval set for 10 %, the trailing stop would sell the position at 90 € which is not what we desire. Instead we want to sell at least at 110 € but if the price rises higher, we are fine with keeping the position, e.g. at 111 € but placing a with placing a trailing stop with a fixed price or executing a stop loss order (but that would be a market order which is also not desirable).

The take profit limit order on the other hand might be one favorable approach but this way we introduce new complexity since the it will trigger an independent limit order when the profit price is reached. This might lead to recalculation and adjusting/cancellation of the new limit order in case the price rises even higher.


A concept was created in #15. This must be explored, implemented, and tested.

Sub-issues

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions