From f9977c26e7f682346f875f30fd8b11a9f19cc867 Mon Sep 17 00:00:00 2001 From: eSeR1805 Date: Sat, 30 Apr 2022 12:55:03 +0300 Subject: [PATCH] Full cancel only for non DCA trades. --- freqtrade/freqtradebot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/freqtradebot.py b/freqtrade/freqtradebot.py index 330bfcdf0..49c7050c9 100644 --- a/freqtrade/freqtradebot.py +++ b/freqtrade/freqtradebot.py @@ -1194,7 +1194,7 @@ class FreqtradeBot(LoggingMixin): full_cancel = False cancel_reason = constants.CANCEL_REASON['REPLACE'] if not adjusted_entry_price: - full_cancel = True + full_cancel = True if trade.nr_of_successful_entries == 0 else False cancel_reason = constants.CANCEL_REASON['USER_CANCEL'] if order_obj.price != adjusted_entry_price: # cancel existing order if new price is supplied or None