From 61ecaa4c41bd918fcdc6fa560ea971b37ca52e26 Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 28 Nov 2025 13:13:57 +0100 Subject: [PATCH] fix: ensure automatic exportfilename detection works closes #12557 --- freqtrade/plot/plotting.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/freqtrade/plot/plotting.py b/freqtrade/plot/plotting.py index 5c43ee404..978e0b44b 100644 --- a/freqtrade/plot/plotting.py +++ b/freqtrade/plot/plotting.py @@ -75,11 +75,11 @@ def init_plotscript(config, markets: list, startup_candles: int = 0): ) no_trades = False - filename = config.get("exportfilename") + filename = config.get("exportfilename") or config.get("exportdirectory") if config.get("no_trades", False): no_trades = True elif config["trade_source"] == "file": - if not filename.is_dir() and not filename.is_file(): + if not filename and not filename.is_dir() and not filename.is_file(): logger.warning("Backtest file is missing skipping trades.") no_trades = True try: