From bbcb7a767a4d06d6bf5be8d8c1661a2282fa1c36 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Tue, 7 Apr 2026 03:01:40 +0000 Subject: [PATCH 1/4] Add help tooltips to financial parameters in dashboard Added `help` parameter to `bt_cost` (Transaction Cost bps) and `adv_pct` (ADV Participation %) inputs in `src/dashboard.py` to clarify abstract financial metrics with concrete numerical examples for better UX. Created journal entry in `.Jules/palette.md`. Co-authored-by: aarjava <218419324+aarjava@users.noreply.github.com> --- .Jules/palette.md | 3 +++ src/dashboard.py | 19 +++++++++++++++++-- 2 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 .Jules/palette.md diff --git a/.Jules/palette.md b/.Jules/palette.md new file mode 100644 index 0000000..8383507 --- /dev/null +++ b/.Jules/palette.md @@ -0,0 +1,3 @@ +## 2024-05-24 - Clarifying Abstract Financial Inputs +**Learning:** Inputs requiring niche domain knowledge (like basis points or ADV metrics) often confuse general users without concrete examples. Using `help=` with explicit mathematical conversions ("10 bps = 0.10%") significantly improves input comprehension. +**Action:** Always include concrete numeric examples in tooltips when an input deals with domain-specific statistical or financial parameters. diff --git a/src/dashboard.py b/src/dashboard.py index 4156c1d..9667ac4 100644 --- a/src/dashboard.py +++ b/src/dashboard.py @@ -170,7 +170,14 @@ def get_cache_key(*args) -> str: else: factor_window = st.slider("Factor Beta Window (days)", 20, 252, 63, 7) vol_window = st.slider("Regime Vol Window (days)", 10, 60, 21, 5) - adv_pct = st.slider("ADV Participation %", 0.01, 0.30, float(DEFAULT_ADV_PCT), 0.01) + adv_pct = st.slider( + "ADV Participation %", + 0.01, + 0.30, + float(DEFAULT_ADV_PCT), + 0.01, + help="Max percentage of Average Daily Volume to trade. e.g., 0.05 = 5% of daily volume.", + ) st.markdown("---") st.subheader("4. Research Rigor") @@ -190,7 +197,15 @@ def get_cache_key(*args) -> str: if mode == "Single-Asset": st.subheader("5. Backtest Settings") - bt_cost = st.number_input("Transaction Cost (bps)", value=DEFAULT_COST_BPS, step=1) / 10000 + bt_cost = ( + st.number_input( + "Transaction Cost (bps)", + value=DEFAULT_COST_BPS, + step=1, + help="10 bps = 0.10%. Represents slippage and execution costs per trade.", + ) + / 10000 + ) allow_short = st.checkbox("Allow Short Selling?", value=False) else: st.subheader("5. Alert Thresholds") From a812819946e620a7f4e3419e8a54ccddf9545140 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Tue, 7 Apr 2026 03:07:02 +0000 Subject: [PATCH 2/4] Add help tooltips to financial parameters in dashboard Added `help` parameter to `bt_cost` (Transaction Cost bps) and `adv_pct` (ADV Participation %) inputs in `src/dashboard.py` to clarify abstract financial metrics with concrete numerical examples for better UX. Created journal entry in `.Jules/palette.md`. Co-authored-by: aarjava <218419324+aarjava@users.noreply.github.com> From 4805a2c2ca875a2e8a14a122d90db0db6afd3112 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Tue, 7 Apr 2026 03:27:45 +0000 Subject: [PATCH 3/4] Add help tooltips to financial parameters in dashboard Added `help` parameter to `bt_cost` (Transaction Cost bps) and `adv_pct` (ADV Participation %) inputs in `src/dashboard.py` to clarify abstract financial metrics with concrete numerical examples for better UX. Created journal entry in `.Jules/palette.md`. Co-authored-by: aarjava <218419324+aarjava@users.noreply.github.com> --- src/dashboard.py | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/src/dashboard.py b/src/dashboard.py index 9667ac4..53e2d7b 100644 --- a/src/dashboard.py +++ b/src/dashboard.py @@ -160,12 +160,20 @@ def get_cache_key(*args) -> str: st.subheader("3. Signal Parameters") if mode == "Single-Asset": sma_window = st.slider( - "Trend SMA Window", 10, 200, DEFAULT_SMA_WINDOW, 10, - help="Lookback days for Simple Moving Average trend signal." + "Trend SMA Window", + 10, + 200, + DEFAULT_SMA_WINDOW, + 10, + help="Lookback days for Simple Moving Average trend signal.", ) mom_window = st.slider( - "Momentum Lookback (Months)", 1, 24, DEFAULT_MOMENTUM_WINDOW, 1, - help="Lookback months for Momentum signal." + "Momentum Lookback (Months)", + 1, + 24, + DEFAULT_MOMENTUM_WINDOW, + 1, + help="Lookback months for Momentum signal.", ) else: factor_window = st.slider("Factor Beta Window (days)", 20, 252, 63, 7) @@ -184,16 +192,14 @@ def get_cache_key(*args) -> str: use_oos = st.toggle( "Out-of-Sample Mode", value=False, - help="Uses expanding-window quantiles for regime classification to avoid look-ahead bias. Enable for rigorous backtesting." + help="Uses expanding-window quantiles for regime classification to avoid look-ahead bias. Enable for rigorous backtesting.", ) if use_oos: st.success("✓ Look-ahead bias removed") else: st.info("Using full-sample quantiles (exploratory mode)") - vol_q_high = st.slider( - "High Volatility Quantile", 0.5, 0.95, DEFAULT_VOL_QUANTILE_HIGH, 0.05 - ) + vol_q_high = st.slider("High Volatility Quantile", 0.5, 0.95, DEFAULT_VOL_QUANTILE_HIGH, 0.05) if mode == "Single-Asset": st.subheader("5. Backtest Settings") From 290643524e2d8555e9bf710de124fbb0e28ae563 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Tue, 7 Apr 2026 03:31:09 +0000 Subject: [PATCH 4/4] Add help tooltips to financial parameters in dashboard Added `help` parameter to `bt_cost` (Transaction Cost bps) and `adv_pct` (ADV Participation %) inputs in `src/dashboard.py` to clarify abstract financial metrics with concrete numerical examples for better UX. Created journal entry in `.Jules/palette.md`. Co-authored-by: aarjava <218419324+aarjava@users.noreply.github.com>