Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .Jules/palette.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## 2024-10-24 - Add help tooltip for bps input
**Learning:** Inputs involving statistical or financial parameters (e.g., quantiles, basis points) can be confusing without examples. Adding concrete examples (e.g., "10 bps = 0.10%") improves clarity and user confidence.
**Action:** Always include a `help` tooltip with a concrete example for any input field that uses financial jargon or statistical units like basis points.
10 changes: 9 additions & 1 deletion src/dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -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="10 bps = 0.10%",
)
/ 10000
)
allow_short = st.checkbox("Allow Short Selling?", value=False)
else:
st.subheader("5. Alert Thresholds")
Expand Down
Loading