Proper tp_mode 2 fix

This commit is contained in:
Nicolás Sánchez 2026-06-04 08:34:50 -03:00
parent a43884f472
commit d667371694
3 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -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

View File

@ -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