From: Jérôme Benoit Date: Fri, 23 May 2025 13:05:32 +0000 (+0200) Subject: refactor(qav3): log error message at TP kama failure X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=33f9258a1c713a94563751c33ae70eeb055d4a6e;p=freqai-strategies.git refactor(qav3): log error message at TP kama failure Signed-off-by: Jérôme Benoit --- diff --git a/quickadapter/user_data/strategies/QuickAdapterV3.py b/quickadapter/user_data/strategies/QuickAdapterV3.py index abe56c2..f0d12fd 100644 --- a/quickadapter/user_data/strategies/QuickAdapterV3.py +++ b/quickadapter/user_data/strategies/QuickAdapterV3.py @@ -508,8 +508,11 @@ class QuickAdapterV3(IStrategy): ).dropna() if not trade_kama_natr.empty: take_profit_natr = trade_kama_natr.iloc[-1] - except Exception: - pass + except Exception as e: + logger.error( + f"Failed to calculate KAMA at take profit price computation: {str(e)}", + exc_info=True, + ) if isna(take_profit_natr): take_profit_natr = ( trade_zl_natr.ewm(span=trade_duration_candles).mean().iloc[-1]