From 57fd455adfc3ad8073f4dfc9a03ed5abd64d94e4 Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 28 Nov 2025 13:29:50 +0100 Subject: [PATCH] fix: Proper fix for plotscript this time also saving the file ... closes #12557 --- freqtrade/plot/plotting.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/plot/plotting.py b/freqtrade/plot/plotting.py index 978e0b44b..a27069194 100644 --- a/freqtrade/plot/plotting.py +++ b/freqtrade/plot/plotting.py @@ -79,7 +79,7 @@ def init_plotscript(config, markets: list, startup_candles: int = 0): if config.get("no_trades", False): no_trades = True elif config["trade_source"] == "file": - if not filename and not filename.is_dir() and not filename.is_file(): + if not filename or (not filename.is_dir() and not filename.is_file()): logger.warning("Backtest file is missing skipping trades.") no_trades = True try: