Spaces:
Running
Running
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +2 -2
src/streamlit_app.py
CHANGED
|
@@ -1211,7 +1211,7 @@ def render_signal_tracker():
|
|
| 1211 |
# TAB 5: ROTATION MAP (relative strength / momentum vs benchmark)
|
| 1212 |
# =========================================================
|
| 1213 |
|
| 1214 |
-
DEFAULT_ROTATION_TICKERS = ["XLK", "XLF", "XLE", "XLV", "XLI", "
|
| 1215 |
|
| 1216 |
|
| 1217 |
@st.cache_data(ttl=4 * 3600, show_spinner="Building rotation map...")
|
|
@@ -1272,7 +1272,7 @@ def render_rotation_map():
|
|
| 1272 |
value=", ".join(DEFAULT_ROTATION_TICKERS),
|
| 1273 |
key="rm_tickers",
|
| 1274 |
)
|
| 1275 |
-
benchmark = st.text_input("Benchmark", value="
|
| 1276 |
trail_weeks = st.slider("Trail length (weeks)", 2, 12, 6, 1, key="rm_trail")
|
| 1277 |
lookback_years = st.slider("History to fetch (years)", 1, 5, 2, 1, key="rm_lookback")
|
| 1278 |
window = st.slider("Z-score window (weeks)", 8, 52, 21, 1, key="rm_window")
|
|
|
|
| 1211 |
# TAB 5: ROTATION MAP (relative strength / momentum vs benchmark)
|
| 1212 |
# =========================================================
|
| 1213 |
|
| 1214 |
+
DEFAULT_ROTATION_TICKERS = ["XLK", "XLB", "XLF", "XLE", "XLV", "XLI", "XLU", "XLP", "XLRE", "XLY" , "XLC"]
|
| 1215 |
|
| 1216 |
|
| 1217 |
@st.cache_data(ttl=4 * 3600, show_spinner="Building rotation map...")
|
|
|
|
| 1272 |
value=", ".join(DEFAULT_ROTATION_TICKERS),
|
| 1273 |
key="rm_tickers",
|
| 1274 |
)
|
| 1275 |
+
benchmark = st.text_input("Benchmark", value="RSP", key="rm_benchmark").strip().upper()
|
| 1276 |
trail_weeks = st.slider("Trail length (weeks)", 2, 12, 6, 1, key="rm_trail")
|
| 1277 |
lookback_years = st.slider("History to fetch (years)", 1, 5, 2, 1, key="rm_lookback")
|
| 1278 |
window = st.slider("Z-score window (weeks)", 8, 52, 21, 1, key="rm_window")
|