서버 최신버전 동기화
This commit is contained in:
+4
-2
@@ -450,7 +450,7 @@ def build_chart(symbol, interval, candle_limit=200):
|
|||||||
fig.add_hline(y=1.0, line=dict(color=COLORS["grid"], width=0.8, dash="dash"), row=5, col=1)
|
fig.add_hline(y=1.0, line=dict(color=COLORS["grid"], width=0.8, dash="dash"), row=5, col=1)
|
||||||
|
|
||||||
fig.add_trace(go.Scatter(x=t, y=df["RSI"], line=dict(color=COLORS["blue"], width=1.5), name="RSI(14)"), row=6, col=1)
|
fig.add_trace(go.Scatter(x=t, y=df["RSI"], line=dict(color=COLORS["blue"], width=1.5), name="RSI(14)"), row=6, col=1)
|
||||||
fig.add_trace(go.Scatter(x=t, y=df["StochRSI_k"],line=dict(color=COLORS["yellow"], width=1.2, dash="dot"), name="StochRSI K"), row=6, col=1)
|
fig.add_trace(go.Scatter(x=t, y=df["StochRSI_k"],line=dict(color=COLORS["red"], width=1.5), name="StochRSI K"), row=6, col=1)
|
||||||
fig.add_trace(go.Scatter(x=t, y=df["StochRSI_d"],line=dict(color=COLORS["orange"], width=1.0, dash="dot"), name="StochRSI D"), row=6, col=1)
|
fig.add_trace(go.Scatter(x=t, y=df["StochRSI_d"],line=dict(color=COLORS["orange"], width=1.0, dash="dot"), name="StochRSI D"), row=6, col=1)
|
||||||
for lvl in [20, 50, 80]:
|
for lvl in [20, 50, 80]:
|
||||||
fig.add_hline(y=lvl, line=dict(color=COLORS["grid"], width=0.6, dash="dash"), row=6, col=1)
|
fig.add_hline(y=lvl, line=dict(color=COLORS["grid"], width=0.6, dash="dash"), row=6, col=1)
|
||||||
@@ -581,6 +581,8 @@ def main():
|
|||||||
with col4:
|
with col4:
|
||||||
refresh_sec = st.number_input("갱신(초)", min_value=10, max_value=300, value=30)
|
refresh_sec = st.number_input("갱신(초)", min_value=10, max_value=300, value=30)
|
||||||
with col5:
|
with col5:
|
||||||
|
now_kst = datetime.now(timezone.utc) + KST
|
||||||
|
st.markdown(f"<div style='text-align:right; font-size:12px; color:#888; margin-bottom:2px;'>🕐 마지막 갱신: {now_kst.strftime('%Y-%m-%d %H:%M:%S')} KST</div>", unsafe_allow_html=True)
|
||||||
col5a, col5b, col5c, col5d = st.columns(4)
|
col5a, col5b, col5c, col5d = st.columns(4)
|
||||||
with col5a:
|
with col5a:
|
||||||
refresh_btn = st.button("🔄 새로고침")
|
refresh_btn = st.button("🔄 새로고침")
|
||||||
@@ -623,7 +625,7 @@ def main():
|
|||||||
"modeBarButtonsToRemove": ["lasso2d", "select2d"],
|
"modeBarButtonsToRemove": ["lasso2d", "select2d"],
|
||||||
})
|
})
|
||||||
|
|
||||||
st.caption(f"마지막 갱신: {datetime.now().strftime('%H:%M:%S')}")
|
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
st.error(f"데이터 로드 오류: {e}")
|
st.error(f"데이터 로드 오류: {e}")
|
||||||
|
|||||||
Reference in New Issue
Block a user