diff --git a/app_streamlit.py b/app_streamlit.py index 75c5e66..b0e929c 100644 --- a/app_streamlit.py +++ b/app_streamlit.py @@ -91,7 +91,9 @@ SIG_DEFS = [ def check_and_alert(df, symbol, interval): now = time.time() - recent = df.tail(3) + # 마지막 행은 형성 중(forming) 캔들 — 지표가 close 변동에 따라 깜빡일 수 있어 + # false alert 의 주범. 닫힌 캔들 (최근 3개) 만 신호 검사 대상으로 사용. + recent = df.iloc[:-1].tail(3) eligible = [] for sig, key, sub_label, direction in SIG_DEFS: