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