2025.10.07
This commit is contained in:
parent
8f3b0eb186
commit
e354ea4d55
|
|
@ -1,3 +1,6 @@
|
|||
2025.10.07:
|
||||
. In short traders, if there are too few safety orders (less than 67% of the max amount), safety_order_deviance is increased from 2% to 3%.
|
||||
|
||||
2025.10.04:
|
||||
. Fixed error while logging orders in new_simulated_market_order.
|
||||
. renew_tp_and_so_routine now send the take profit order first, and then the safety orders.
|
||||
|
|
|
|||
2
main.py
2
main.py
|
|
@ -18,7 +18,7 @@ import exchange_wrapper
|
|||
import trader
|
||||
|
||||
|
||||
version = "2025.10.04"
|
||||
version = "2025.10.07"
|
||||
|
||||
'''
|
||||
Color definitions. If you want to change them, check the reference at https://en.wikipedia.org/wiki/ANSI_escape_code#Colors
|
||||
|
|
|
|||
|
|
@ -171,6 +171,8 @@ class trader:
|
|||
return 1
|
||||
self.status.set_order_size(order_size)
|
||||
self.status.set_no_of_safety_orders(no_of_safety_orders)
|
||||
if no_of_safety_orders<self.config.get_max_short_safety_orders()*.67:
|
||||
self.config.set_safety_order_deviance(3)
|
||||
self.broker.logger.log_this(f"Order size: {self.broker.amount_to_precision(self.status.get_pair(),order_size)}. Amount of safety orders: {no_of_safety_orders}",2,self.status.get_pair())
|
||||
|
||||
#Write the changes to the config file
|
||||
|
|
|
|||
Loading…
Reference in New Issue