From ce035a59478d730aec8dd0e7d58a5baf68128a91 Mon Sep 17 00:00:00 2001 From: Mark Regan Date: Tue, 3 May 2022 23:34:12 +0100 Subject: [PATCH] Add bot_loop_start() call in plotting.py plotting.py was missing a call to strategy.bot_loop_start() resulting in strategies using this callback to not work. Made changes and confirmed plotting now works for strategies using bot_loop_start() callback. LMK if anything else needed for PR. --- freqtrade/plot/plotting.py | 1 + 1 file changed, 1 insertion(+) diff --git a/freqtrade/plot/plotting.py b/freqtrade/plot/plotting.py index 37758d05f..ce8f54cbd 100644 --- a/freqtrade/plot/plotting.py +++ b/freqtrade/plot/plotting.py @@ -634,6 +634,7 @@ def load_and_plot_trades(config: Dict[str, Any]): exchange = ExchangeResolver.load_exchange(config['exchange']['name'], config) IStrategy.dp = DataProvider(config, exchange) strategy.bot_start() + strategy.bot_loop_start() plot_elements = init_plotscript(config, list(exchange.markets), strategy.startup_candle_count) timerange = plot_elements['timerange'] trades = plot_elements['trades']