diff --git a/dashboard/app.py b/dashboard/app.py index 009fb89..ac8c84c 100644 --- a/dashboard/app.py +++ b/dashboard/app.py @@ -192,14 +192,11 @@ if not recent_signals.empty: hist["signal"] = hist["signal"].map({1: "๐ข BUY", -1: "๐ด SELL"}) hist = hist.rename(columns={"time": "T", "close": "Price", "signal": "Sig", "exit_reason": "Exit"}) hist["Exit"] = hist["Exit"].replace("", "โ") - st.dataframe(hist, use_container_width=True, hide_index=True, height=200) + st.dataframe(hist, width="stretch", hide_index=True, height=200) else: st.markdown("---") st.markdown("
No signals generated in recent data.
", unsafe_allow_html=True) # โโโ Footer โโโ st.markdown("---") -st.markdown("Auto-refresh every 60s ยท Data: Yahoo Finance GC=F
", unsafe_allow_html=True) - -# Auto-refresh -st.rerun() +st.markdown("Data: Yahoo Finance GC=F ยท Refresh page to update
", unsafe_allow_html=True) diff --git a/dashboard/xau_monitor.py b/dashboard/xau_monitor.py index 29f4e19..ac8c84c 100644 --- a/dashboard/xau_monitor.py +++ b/dashboard/xau_monitor.py @@ -192,14 +192,11 @@ if not recent_signals.empty: hist["signal"] = hist["signal"].map({1: "๐ข BUY", -1: "๐ด SELL"}) hist = hist.rename(columns={"time": "T", "close": "Price", "signal": "Sig", "exit_reason": "Exit"}) hist["Exit"] = hist["Exit"].replace("", "โ") - st.dataframe(hist, use_container_width=True, hide_index=True, height=200) + st.dataframe(hist, width="stretch", hide_index=True, height=200) else: st.markdown("---") st.markdown("No signals generated in recent data.
", unsafe_allow_html=True) # โโโ Footer โโโ st.markdown("---") -st.markdown("Auto-refresh every 60s ยท Data: Yahoo Finance GC=F
", unsafe_allow_html=True) - -# Auto-refresh every 60s -st.rerun() +st.markdown("Data: Yahoo Finance GC=F ยท Refresh page to update
", unsafe_allow_html=True)