From df16f76c6bcbc82ceb902700805a1602b7b59e10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20S=C3=A1nchez?= Date: Mon, 3 Mar 2025 20:11:57 -0300 Subject: [PATCH] fixed boosted flag --- trader.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/trader.py b/trader.py index c54f415..36335e2 100755 --- a/trader.py +++ b/trader.py @@ -1151,10 +1151,10 @@ class trader: tp_level = profit_table[order_index] #it just returns the last value. Otherwise, the percentage gets very small. #BOOST LOGIC: If the trader closed n amount of deals within the last t seconds, raise the take profit level by x% - should_it_be_boosted = not self.config.get_is_short() and self.check_boosted() - if should_it_be_boosted: - self.status.set_is_boosted(should_it_be_boosted) + if not self.config.get_is_short() and self.check_boosted(): + self.status.set_is_boosted(True) return tp_level+self.config.get_boosted_amount() + self.status.set_is_boosted(False) return tp_level