diff --git a/app_streamlit.py b/app_streamlit.py index 800ecd0..7fff34b 100644 --- a/app_streamlit.py +++ b/app_streamlit.py @@ -453,7 +453,7 @@ def build_chart(symbol, interval, candle_limit=200): ]: d = df[mask] if not d.empty: - cd = [[v] for v in d["open_time"].dt.strftime("%m/%d %H:%M").tolist()] + cd = list(zip(d["open_time"].dt.strftime("%m/%d %H:%M").tolist(), d["close"].tolist())) _long_sigs = ["강한 롱 진입 신호", "볼륨급등 롱 신호", "롱 진입 신호", "매도소진(롱)"] _short_sigs = ["강한 숏 진입 신호", "볼륨급등 숏 신호", "숏 진입 신호", "매수소진(숏)", "롱소진경고(숏전환)", "숏 진입(주의)"] if sig_name in _long_sigs: @@ -467,7 +467,7 @@ def build_chart(symbol, interval, candle_limit=200): mode="markers", marker=dict(symbol=sym, color=color, size=10), name=sig_name, customdata=cd, - hovertemplate="" + sig_name + "
신호: %{customdata[0]}
가격: %{y:,.1f}", + hovertemplate="" + sig_name + "
신호: %{customdata[0]}
가격: %{customdata[1]:,.1f}", showlegend=True, ), row=1, col=1) else: