From 57871e889798f3eb88fc306cd8d312b65e54eeb9 Mon Sep 17 00:00:00 2001 From: Stuart Clark Date: Fri, 17 Mar 2023 20:22:33 +1100 Subject: [PATCH] Update PyCryptoBot.py Removed conditional statement from pycryptobot.py related to updating the .json --- controllers/PyCryptoBot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/PyCryptoBot.py b/controllers/PyCryptoBot.py index 0547d07e..9f2201c6 100644 --- a/controllers/PyCryptoBot.py +++ b/controllers/PyCryptoBot.py @@ -1417,7 +1417,7 @@ def _notify(notification: str = "", level: str = "normal") -> None: self._simulation_summary() self._simulation_save_orders() - if self.state.last_buy_size <= 0 and self.state.last_buy_price <= 0 and self.price <= 0 and self.state.last_action != "BUY": + if self.state.last_buy_size <= 0 and self.state.last_buy_price <= 0 and self.state.last_action != "BUY": self.telegram_bot.add_info( f'Current price: {str(self.price)}{trailing_action_logtext} | {str(round(((self.price-df["close"].max()) / df["close"].max())*100, 2))}% from DF HIGH', round(self.price, 4),