Small minor fixes

This commit is contained in:
Matthias 2022-01-13 17:18:07 +01:00
parent c826c9c2b9
commit faa35cb167
2 changed files with 4 additions and 3 deletions

View File

@ -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.

View File

@ -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():