From bae4973da518f14cb73feac19329c90f44d844c4 Mon Sep 17 00:00:00 2001 From: Stefano Ariestasia Date: Mon, 11 Mar 2024 22:01:09 +0900 Subject: [PATCH] simplify full exit using adjust trade pos --- docs/strategy-callbacks.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/strategy-callbacks.md b/docs/strategy-callbacks.md index 2f04e906e..c49324be7 100644 --- a/docs/strategy-callbacks.md +++ b/docs/strategy-callbacks.md @@ -783,7 +783,7 @@ Additional entries are ignored once you have reached the maximum amount of extra ### Decrease position The strategy is expected to return a negative stake_amount (in stake currency) for a partial exit. -Returning the full owned stake at that point (based on the current price) (`-(trade.amount / trade.leverage) * current_exit_rate`) results in a full exit. +Returning the full owned stake at that point (`-trade.stake_amount`) results in a full exit. Returning a value more than the above (so remaining stake_amount would become negative) will result in the bot ignoring the signal. !!! Note "About stake size"