From 52bf926066b1351101df8d6b4a14fccc8c4b6f9c Mon Sep 17 00:00:00 2001 From: adriance Date: Sun, 13 Mar 2022 12:26:57 +0800 Subject: [PATCH] fix duplicate long --- freqtrade/optimize/backtesting.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/freqtrade/optimize/backtesting.py b/freqtrade/optimize/backtesting.py index 33d7578cf..634de99f0 100644 --- a/freqtrade/optimize/backtesting.py +++ b/freqtrade/optimize/backtesting.py @@ -575,8 +575,8 @@ class Backtesting: return self._get_sell_trade_entry_for_candle(trade, sell_row) detail_data.loc[:, 'enter_long'] = sell_row[LONG_IDX] detail_data.loc[:, 'exit_long'] = sell_row[ELONG_IDX] - detail_data.loc[:, 'enter_long'] = sell_row[LONG_IDX] - detail_data.loc[:, 'exit_long'] = sell_row[ELONG_IDX] + detail_data.loc[:, 'enter_short'] = sell_row[SHORT_IDX] + detail_data.loc[:, 'exit_short'] = sell_row[ESHORT_IDX] detail_data.loc[:, 'enter_tag'] = sell_row[ENTER_TAG_IDX] detail_data.loc[:, 'exit_tag'] = sell_row[EXIT_TAG_IDX] headers = ['date', 'open', 'high', 'low', 'close', 'enter_long', 'exit_long',