From b0e7a7c51baf418cc9780a5fc38221191b1c44a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=AE=AE=E0=AE=A9=E0=AF=8B=E0=AE=9C=E0=AF=8D=E0=AE=95?= =?UTF-8?q?=E0=AF=81=E0=AE=AE=E0=AE=BE=E0=AE=B0=E0=AF=8D=20=E0=AE=AA?= =?UTF-8?q?=E0=AE=B4=E0=AE=A9=E0=AE=BF=E0=AE=9A=E0=AF=8D=E0=AE=9A=E0=AE=BE?= =?UTF-8?q?=E0=AE=AE=E0=AE=BF?= Date: Sun, 8 May 2022 13:41:17 +0530 Subject: [PATCH] removed debug lines --- freqtrade/strategy/interface.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/freqtrade/strategy/interface.py b/freqtrade/strategy/interface.py index 4de37a95a..26efd74a9 100644 --- a/freqtrade/strategy/interface.py +++ b/freqtrade/strategy/interface.py @@ -1002,12 +1002,7 @@ class IStrategy(ABC, HyperStrategyMixin): # Make sure current_profit is calculated using high for backtesting. bound = low if trade.is_short else high bound_profit = current_profit if not bound else trade.calc_profit_ratio(bound) - from pprint import pformat - logger.info(pformat(trade.to_json())) - logger.info((self.trailing_only_offset_is_reached, - self.trailing_stop_positive, bound_profit, sl_offset)) - logger.debug(f"{trade.pair} - Using positive stoploss: {stop_loss_value} " - f"offset: {sl_offset:.4g} profit: {current_profit:.2%}") + # Don't update stoploss if trailing_only_offset_is_reached is true. if not (self.trailing_only_offset_is_reached and bound_profit < sl_offset): # Specific handling for trailing_stop_positive @@ -1098,8 +1093,8 @@ class IStrategy(ABC, HyperStrategyMixin): return strategy_safe_wrapper(time_method, default_retval=False)( - pair=trade.pair, trade=trade, order=order, - current_time=current_time) + pair=trade.pair, trade=trade, order=order, + current_time=current_time) def advise_all_indicators(self, data: Dict[str, DataFrame]) -> Dict[str, DataFrame]: """