From 615095c780f99bd8c870554238ddb8f53a65fff7 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 17 Aug 2025 08:53:16 +0200 Subject: [PATCH] feat: add exportdirectory to entry/exit analysis --- freqtrade/commands/arguments.py | 1 + freqtrade/data/btanalysis/bt_fileutils.py | 8 +------- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/freqtrade/commands/arguments.py b/freqtrade/commands/arguments.py index 3f1fb9297..f96148e3c 100755 --- a/freqtrade/commands/arguments.py +++ b/freqtrade/commands/arguments.py @@ -239,6 +239,7 @@ ARGS_HYPEROPT_SHOW = [ ARGS_ANALYZE_ENTRIES_EXITS = [ "exportfilename", + "exportdirectory", "analysis_groups", "enter_reason_list", "exit_reason_list", diff --git a/freqtrade/data/btanalysis/bt_fileutils.py b/freqtrade/data/btanalysis/bt_fileutils.py index cc53aab13..ea9c993fb 100644 --- a/freqtrade/data/btanalysis/bt_fileutils.py +++ b/freqtrade/data/btanalysis/bt_fileutils.py @@ -473,13 +473,7 @@ def load_backtest_analysis_data( """ import joblib - zip_path = _normalize_filename(file_or_directory, None) - - if file_or_directory.is_dir(): - lbf = Path(get_latest_backtest_filename(file_or_directory)) - zip_path = file_or_directory / lbf - else: - zip_path = file_or_directory + zip_path = _normalize_filename(file_or_directory, filename) if zip_path.suffix == ".zip": # Load from zip file