Proper tp_mode 2 fix
This commit is contained in:
parent
a43884f472
commit
d667371694
|
|
@ -1,3 +1,6 @@
|
||||||
|
2026.06.04:
|
||||||
|
. Proper tp_mode 2 fix
|
||||||
|
|
||||||
2026.06.03:
|
2026.06.03:
|
||||||
. Fixed tp mode 2 non-functional
|
. Fixed tp mode 2 non-functional
|
||||||
. Fixed duster binance fee estimation
|
. Fixed duster binance fee estimation
|
||||||
|
|
|
||||||
2
main.py
2
main.py
|
|
@ -18,7 +18,7 @@ import exchange_wrapper
|
||||||
import trader
|
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
|
Color definitions. If you want to change them, check the reference at https://en.wikipedia.org/wiki/ANSI_escape_code#Colors
|
||||||
|
|
|
||||||
|
|
@ -1304,7 +1304,8 @@ class trader:
|
||||||
if self.config.get_tp_table()!=[]:
|
if self.config.get_tp_table()!=[]:
|
||||||
if len(self.config.get_tp_table())>=order_index:
|
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()[order_index] #Custom percentage table
|
||||||
tp_level = self.config.get_tp_table()[-1]
|
else:
|
||||||
|
tp_level = self.config.get_tp_table()[-1]
|
||||||
else:
|
else:
|
||||||
tp_level = self.config.get_tp_level()
|
tp_level = self.config.get_tp_level()
|
||||||
elif self.config.get_tp_mode()==3: #Linear percentage table
|
elif self.config.get_tp_mode()==3: #Linear percentage table
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue