From 323f42fc5329a707b6fa1f7ff55c6471e20f23fc Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 5 Jan 2026 11:11:45 +0100 Subject: [PATCH] fix: Don't round date up to next date it'll cause a record in the future eventually. --- freqtrade/data/btanalysis/trade_parallelism.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/freqtrade/data/btanalysis/trade_parallelism.py b/freqtrade/data/btanalysis/trade_parallelism.py index aed8aaf4b..dc242587e 100644 --- a/freqtrade/data/btanalysis/trade_parallelism.py +++ b/freqtrade/data/btanalysis/trade_parallelism.py @@ -6,7 +6,6 @@ import pandas as pd from freqtrade.constants import IntOrInf from freqtrade.exchange.exchange_utils_timeframe import ( - timeframe_to_next_date, timeframe_to_prev_date, timeframe_to_resample_freq, ) @@ -81,7 +80,7 @@ def balance_distribution_over_time( Each column will contain the amount of the currency at the given time """ min_date_res = timeframe_to_prev_date(timeframe, min_date) - max_date_res = timeframe_to_next_date(timeframe, max_date) + max_date_res = timeframe_to_prev_date(timeframe, max_date) index = pd.date_range(min_date_res, max_date_res, freq=timeframe_to_resample_freq(timeframe)) df = pd.DataFrame(index=index) df[stake_currency] = float(start_balance)