autoswitch

This commit is contained in:
Nicolás Sánchez 2024-12-19 15:43:14 -03:00
parent 5c97c721ad
commit 8342923def
1 changed files with 3 additions and 1 deletions

View File

@ -385,6 +385,8 @@ class trader:
self.status_dict["start_time"]=self.start_time self.status_dict["start_time"]=self.start_time
self.status_dict["deal_start_time"]=self.deal_start_time self.status_dict["deal_start_time"]=self.deal_start_time
self.status_dict["stop_when_profit"]=self.stop_when_profit self.status_dict["stop_when_profit"]=self.stop_when_profit
self.status_dict["autoswitch"]=False
if "autoswitch" in self.config_dict:
self.status_dict["autoswitch"]=self.config_dict["autoswitch"] self.status_dict["autoswitch"]=self.config_dict["autoswitch"]
except Exception as e: except Exception as e:
self.broker.logger.log_this(f"Can't update status dictionary. Exception: {e}",1,self.pair) self.broker.logger.log_this(f"Can't update status dictionary. Exception: {e}",1,self.pair)