Load hyperparameters when calling plot_config

This commit is contained in:
Matthias 2024-06-16 09:52:25 +02:00
parent e11295a042
commit 2223c16d00

View File

@ -1466,6 +1466,8 @@ class RPC:
from freqtrade.resolvers.strategy_resolver import StrategyResolver
strategy = StrategyResolver.load_strategy(config)
# Manually load hyperparameters, as we don't call the bot-start callback.
strategy.ft_load_hyper_params(False)
if strategy.plot_config and "subplots" not in strategy.plot_config:
strategy.plot_config["subplots"] = {}