From df4ee34b3acc431177571b85d2216a6769a1de21 Mon Sep 17 00:00:00 2001 From: "Bobby (aider)" Date: Sat, 8 Feb 2025 07:46:06 -0800 Subject: [PATCH] fix: Define 'results' in check_atr_ema_buy_condition function --- src/screener/t_atr_ema.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/screener/t_atr_ema.py b/src/screener/t_atr_ema.py index aea430d..597a2d3 100644 --- a/src/screener/t_atr_ema.py +++ b/src/screener/t_atr_ema.py @@ -13,6 +13,8 @@ def check_atr_ema_bullish_signal(df: pd.DataFrame) -> bool: last_price = df.iloc[-1] indicator = ThreeATREMAIndicator() results = indicator.calculate(df) + indicator = ThreeATREMAIndicator() + results = indicator.calculate(df) last_bands = results.iloc[-1] print(f"\nSunnyBands Indicators:")