From faa35cb16737d3400d7e4be37281de08a40d805b Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 13 Jan 2022 17:18:07 +0100 Subject: [PATCH] Small minor fixes --- docs/strategy-callbacks.md | 4 ++-- freqtrade/freqtradebot.py | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/strategy-callbacks.md b/docs/strategy-callbacks.md index 849eb50dc..c9403265c 100644 --- a/docs/strategy-callbacks.md +++ b/docs/strategy-callbacks.md @@ -623,8 +623,8 @@ class DigDeeperStrategy(IStrategy): return proposed_stake / self.max_dca_multiplier def adjust_trade_position(self, trade: Trade, current_time: datetime, - current_rate: float, current_profit: float, min_stake: float, - max_stake: float, **kwargs): + current_rate: float, current_profit: float, min_stake: float, + max_stake: float, **kwargs): """ Custom trade adjustment logic, returning the stake amount that a trade should be increased. This means extra buy orders with additional fees. diff --git a/freqtrade/freqtradebot.py b/freqtrade/freqtradebot.py index a056adabe..ee5d1545c 100644 --- a/freqtrade/freqtradebot.py +++ b/freqtrade/freqtradebot.py @@ -181,7 +181,8 @@ class FreqtradeBot(LoggingMixin): # Check if we need to adjust our current positions before attempting to buy new trades. if self.strategy.position_adjustment_enable: - self.process_open_trade_positions() + with self._exit_lock: + self.process_open_trade_positions() # Then looking for buy opportunities if self.get_free_open_trades():