mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-14 20:23:57 +00:00
update exit_positions, add trade.has_open_position check before trade handling, update comment
This commit is contained in:
parent
bfaf9e690d
commit
9dd887f2ff
|
@ -1279,8 +1279,8 @@ class FreqtradeBot(LoggingMixin):
|
|||
logger.warning(
|
||||
f"Unable to handle stoploss on exchange for {trade.pair}: {exception}"
|
||||
)
|
||||
# Check if we can sell our current pair
|
||||
if trade.is_open and self.handle_trade(trade):
|
||||
# Check if we can exit our current position for this trade
|
||||
if trade.has_open_position and trade.is_open and self.handle_trade(trade):
|
||||
trades_closed += 1
|
||||
|
||||
except DependencyException as exception:
|
||||
|
|
Loading…
Reference in New Issue
Block a user