From f9c17bf1a455ea8c52491b01163c8c2bf5257547 Mon Sep 17 00:00:00 2001 From: Lucien Date: Fri, 26 May 2023 09:03:52 +0200 Subject: [PATCH] Switch tsl_triggered to True --- models/Strategy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/Strategy.py b/models/Strategy.py index 3b1e8dd8..aaf2d3d2 100644 --- a/models/Strategy.py +++ b/models/Strategy.py @@ -288,7 +288,7 @@ def is_sell_trigger(self, state, price: float = 0.0, price_exit: float = 0.0, ma else: # loss failsafe sell at trailing_stop_loss if margin > self.state.tsl_trigger: - self.state.tsl_triggered = 1 + self.state.tsl_triggered = True if self.app.debug: debugtext = f"TSL Triggered: {self.state.tsl_triggered} TSL Pcnt: {self.state.tsl_pcnt}% TSL Trigger: {self.state.tsl_trigger}%"