mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 08:33:07 +00:00
Fixed a bug where the pairlist was just .*/USDT (with a length of 1.)
The bug happened since it just checked the length of the list itself, not what it represents. in this case .*/USDT could be any amount of pairs when the user sets a max_open_trades of let's say 3 then the pairs only have 3 trade slots of whatever amount of pairs it really has and thereby creating a bottleneck. This just sets the max_open_trades to -1 without even checking it, letting freqtrade itself handle the amount of trades allowed at a given time.
This commit is contained in:
@@ -153,14 +153,10 @@ class LookaheadAnalysisSubFunctions:
|
||||
raise OperationalException(
|
||||
"Targeted trade amount can't be smaller than minimum trade amount."
|
||||
)
|
||||
if len(config["pairs"]) > config.get("max_open_trades", 0):
|
||||
logger.info(
|
||||
"Max_open_trades were less than amount of pairs "
|
||||
"or defined in the strategy. "
|
||||
"Set max_open_trades to amount of pairs "
|
||||
"just to avoid false positives."
|
||||
)
|
||||
config["max_open_trades"] = len(config["pairs"])
|
||||
config["max_open_trades"] = -1
|
||||
logger.info(
|
||||
f"forced pairs to -1 (same amount of max_open_trades as there are pairs)"
|
||||
)
|
||||
|
||||
min_dry_run_wallet = 1000000000
|
||||
if get_dry_run_wallet(config) < min_dry_run_wallet:
|
||||
|
||||
Reference in New Issue
Block a user