From febd809119f1d3cfe30444fbe7978c0ea51e990e Mon Sep 17 00:00:00 2001 From: Stefano Ariestasia Date: Thu, 4 Aug 2022 20:55:52 +0900 Subject: [PATCH] Fix typo adjust_trade_position should return stake_amount, not amount --- 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 18de3513b..a9b032818 100644 --- a/docs/strategy-callbacks.md +++ b/docs/strategy-callbacks.md @@ -721,7 +721,7 @@ class DigDeeperStrategy(IStrategy): if current_profit > 0.05 and trade.nr_of_successful_exits == 0: # Take half of the profit at +5% - return -(trade.amount / 2) + return -(trade.stake_amount / 2) if current_profit > -0.05: return None