mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 18:23:55 +00:00
remove unnecessary check
This commit is contained in:
parent
7655bf6ea7
commit
552f947248
|
@ -66,11 +66,7 @@ class FullTradesFilter(IPairList):
|
||||||
self.log_once("FullTradesFilter is not available in this mode.", logger.warning)
|
self.log_once("FullTradesFilter is not available in this mode.", logger.warning)
|
||||||
return pairlist
|
return pairlist
|
||||||
|
|
||||||
# Skip performance-based sorting if no performance data is available
|
|
||||||
num_open = len(trades)
|
num_open = len(trades)
|
||||||
if num_open == 0:
|
|
||||||
return pairlist
|
|
||||||
|
|
||||||
max_trades = self._config['max_open_trades']
|
max_trades = self._config['max_open_trades']
|
||||||
|
|
||||||
# self.log_once(f"Max open trades: {max_trades}, current open trades: {num_open}", logger.info)
|
# self.log_once(f"Max open trades: {max_trades}, current open trades: {num_open}", logger.info)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user