mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 08:33:07 +00:00
Load hyperparameters when calling plot_config
This commit is contained in:
@@ -1466,6 +1466,8 @@ class RPC:
|
|||||||
from freqtrade.resolvers.strategy_resolver import StrategyResolver
|
from freqtrade.resolvers.strategy_resolver import StrategyResolver
|
||||||
|
|
||||||
strategy = StrategyResolver.load_strategy(config)
|
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:
|
if strategy.plot_config and "subplots" not in strategy.plot_config:
|
||||||
strategy.plot_config["subplots"] = {}
|
strategy.plot_config["subplots"] = {}
|
||||||
|
|||||||
Reference in New Issue
Block a user