Skip to content

Commit 9e2a90b

Browse files
committed
app edit
1 parent b4e325c commit 9e2a90b

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

app/app.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ def _cov_and_mu(returns: pd.DataFrame, horizon: int):
3737
st.title("Integrated Risk App (Python)")
3838

3939
# ---------------- SIDEBAR (unchanged controls) ----------------
40-
st.sidebar.header("2) Portfolio")
40+
st.sidebar.header("1) Portfolio")
4141
ret_method = st.sidebar.selectbox("Return type", ["log", "simple"], index=0)
4242
weights_mode = st.sidebar.selectbox("Weights", ["Equal", "Manual by column name"])
4343
alpha = st.sidebar.slider("Confidence (α)", 0.80, 0.999, 0.95, 0.001)
4444
horizon = st.sidebar.number_input("Horizon (days)", 1, 30, 1)
4545
exposure = st.sidebar.number_input("Exposure", 0.0, 1e12, 1_000_000.0, step=1000.0)
4646

47-
st.sidebar.header("3) Method")
47+
st.sidebar.header("2) Method")
4848
method_choice = st.sidebar.radio(
4949
"Method",
5050
["Historical", "Parametric (Normal)", "Monte Carlo", "Filtered Historical (GARCH-lite)"],
@@ -63,7 +63,7 @@ def _cov_and_mu(returns: pd.DataFrame, horizon: int):
6363
alpha_g = st.sidebar.number_input("GARCH α (ARCH)", min_value=0.0, max_value=0.5, value=0.05, step=0.01)
6464
beta_g = st.sidebar.number_input("GARCH β (GARCH)", min_value=0.0, max_value=0.999, value=0.94, step=0.01)
6565

66-
st.sidebar.header("4) Backtest")
66+
st.sidebar.header("3) Backtest")
6767
bt_window = st.sidebar.number_input("Rolling window (days)", min_value=50, value=250, step=10)
6868

6969
# ---------------- MARKET DATA INPUT (moved from sidebar) ----------------
-635 KB
Binary file not shown.

0 commit comments

Comments
 (0)