fix: Define 'results' in check_atr_ema_buy_condition function

This commit is contained in:
Bobby (aider) 2025-02-08 07:46:06 -08:00
parent 8f34d143c8
commit df4ee34b3a

View File

@ -13,6 +13,8 @@ def check_atr_ema_bullish_signal(df: pd.DataFrame) -> bool:
last_price = df.iloc[-1] last_price = df.iloc[-1]
indicator = ThreeATREMAIndicator() indicator = ThreeATREMAIndicator()
results = indicator.calculate(df) results = indicator.calculate(df)
indicator = ThreeATREMAIndicator()
results = indicator.calculate(df)
last_bands = results.iloc[-1] last_bands = results.iloc[-1]
print(f"\nSunnyBands Indicators:") print(f"\nSunnyBands Indicators:")