From d66737169471e09992c01efa8da3ce41adcd5a82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20S=C3=A1nchez?= Date: Thu, 4 Jun 2026 08:34:50 -0300 Subject: [PATCH] Proper tp_mode 2 fix --- changelog.txt | 3 +++ main.py | 2 +- trader.py | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/changelog.txt b/changelog.txt index ec6c00f..767b2d5 100755 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,6 @@ +2026.06.04: +. Proper tp_mode 2 fix + 2026.06.03: . Fixed tp mode 2 non-functional . Fixed duster binance fee estimation diff --git a/main.py b/main.py index cff87bc..735d523 100644 --- a/main.py +++ b/main.py @@ -18,7 +18,7 @@ import exchange_wrapper import trader -version = "2026.06.03" +version = "2026.06.04" ''' Color definitions. If you want to change them, check the reference at https://en.wikipedia.org/wiki/ANSI_escape_code#Colors diff --git a/trader.py b/trader.py index 87fea2f..a0bd74d 100755 --- a/trader.py +++ b/trader.py @@ -1304,7 +1304,8 @@ class trader: if self.config.get_tp_table()!=[]: if len(self.config.get_tp_table())>=order_index: tp_level = self.config.get_tp_table()[order_index] #Custom percentage table - tp_level = self.config.get_tp_table()[-1] + else: + tp_level = self.config.get_tp_table()[-1] else: tp_level = self.config.get_tp_level() elif self.config.get_tp_mode()==3: #Linear percentage table