diff --git a/app_streamlit.py b/app_streamlit.py index 88b1480..800ecd0 100644 --- a/app_streamlit.py +++ b/app_streamlit.py @@ -96,12 +96,12 @@ def check_and_alert(df, symbol, interval): continue if sig in LONG_SIGNALS: - entry_price = float(triggered.iloc[-1]["low"]) * 0.9998 + entry_price = float(triggered.iloc[-1]["close"]) stop_price = entry_price * (1 - STOP_LOSS_PCT) msg = f"{label}\n{symbol} {interval}\n진입가: {entry_price:.2f}\n손절가: {stop_price:.2f}" _long_entry = {"price": entry_price, "stop": stop_price, "open_time": candle_time} elif sig in SHORT_SIGNALS: - entry_price = float(triggered.iloc[-1]["high"]) * 1.0002 + entry_price = float(triggered.iloc[-1]["close"]) stop_price = entry_price * (1 + STOP_LOSS_PCT) msg = f"{label}\n{symbol} {interval}\n진입가: {entry_price:.2f}\n손절가: {stop_price:.2f}" _short_entry = {"price": entry_price, "stop": stop_price, "open_time": candle_time}