Small minor fixes
This commit is contained in:
parent
c826c9c2b9
commit
faa35cb167
@ -623,8 +623,8 @@ class DigDeeperStrategy(IStrategy):
|
|||||||
return proposed_stake / self.max_dca_multiplier
|
return proposed_stake / self.max_dca_multiplier
|
||||||
|
|
||||||
def adjust_trade_position(self, trade: Trade, current_time: datetime,
|
def adjust_trade_position(self, trade: Trade, current_time: datetime,
|
||||||
current_rate: float, current_profit: float, min_stake: float,
|
current_rate: float, current_profit: float, min_stake: float,
|
||||||
max_stake: float, **kwargs):
|
max_stake: float, **kwargs):
|
||||||
"""
|
"""
|
||||||
Custom trade adjustment logic, returning the stake amount that a trade should be increased.
|
Custom trade adjustment logic, returning the stake amount that a trade should be increased.
|
||||||
This means extra buy orders with additional fees.
|
This means extra buy orders with additional fees.
|
||||||
|
@ -181,7 +181,8 @@ class FreqtradeBot(LoggingMixin):
|
|||||||
|
|
||||||
# Check if we need to adjust our current positions before attempting to buy new trades.
|
# Check if we need to adjust our current positions before attempting to buy new trades.
|
||||||
if self.strategy.position_adjustment_enable:
|
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
|
# Then looking for buy opportunities
|
||||||
if self.get_free_open_trades():
|
if self.get_free_open_trades():
|
||||||
|
Loading…
Reference in New Issue
Block a user