diff --git a/.Jules/palette.md b/.Jules/palette.md new file mode 100644 index 0000000..6911a4e --- /dev/null +++ b/.Jules/palette.md @@ -0,0 +1,3 @@ +## 2024-04-06 - Concrete Examples for Financial Parameters +**Learning:** Users can find financial jargon like "basis points" confusing, even in specialized dashboards. Providing concrete examples directly in the tooltip significantly improves clarity. +**Action:** Always include a concrete mathematical example (e.g., "10 bps = 0.10%") in the `help` tooltip for inputs involving statistical or financial parameters like quantiles or basis points. diff --git a/src/dashboard.py b/src/dashboard.py index 4156c1d..5607720 100644 --- a/src/dashboard.py +++ b/src/dashboard.py @@ -190,7 +190,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="Cost per trade in basis points (e.g., 10 bps = 0.10%).", + ) + / 10000 + ) allow_short = st.checkbox("Allow Short Selling?", value=False) else: st.subheader("5. Alert Thresholds")