dekun
bfa3352122
feat: 系统设置增加备份恢复与默认登录 admin
...
支持手动/每日自动备份四所数据库、K线库与 env,上传 zip 一键恢复;中控默认账号 admin/admin123。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-02 16:39:46 +08:00
dekun
5797d49d8a
refactor: 将共用代码迁入 lib/ 模块化目录
...
统一 strategy、key_monitor、trade、hub 等共用库到 lib/ 子包,并补充 lib-structure 文档,便于四所与中控维护。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-02 16:23:09 +08:00
dekun
4f784d09ac
fix: 四所统计日历显示每日盈亏与交易笔数
...
日历格子重置实例全局 button 样式,日期格展示 +X.XU 与 N 笔,标题栏汇总当月盈亏与总笔数。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-30 08:56:20 +08:00
dekun
ac4cdceb39
feat: 四所独立统计页日历,修复档案盈亏重复与日历交互
...
四所 index.html 统计分析页接入交易日历;内照明心剔除犯病盈亏列不再重复计入,犯病日点击显示全部交易,选中日历蓝色高亮。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-30 08:27:38 +08:00
dekun
14dbf25798
feat: 档案统计独立卡片、共用交易日历与四所统计页日历
...
内照明心统计表移至顶部卡片,右侧为日历/图表/交易记录;日历样式适配浅深主题,四所统计分析页同步展示按月盈亏日历。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-30 08:17:53 +08:00
dekun
6b872b1f43
feat: 内照明心交易日历与交易所口径成交额/手续费统计
...
新增按 08:00 切日的月历(盈亏、笔数、犯病日高亮与点击筛选);平仓时从交易所 fill 写入双边成交额与手续费,统计表与明细同步展示。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-30 08:05:46 +08:00
dekun
d467760d5c
顺势加仓 v2:程序监控滚仓、文档页与平仓同步
...
重写滚仓计仓与四种加仓方式(市价/斐波/突破),程序盯 mark 触价成交;风险读监控单;pending 可删不可改;手动平仓同步结束滚仓。新增 /strategy/roll/docs 说明页与顺势加仓滚仓说明.md。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-26 22:03:23 +08:00
dekun
4aebe70611
Fix hub market chart live K-line updates in manual follow mode.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-26 19:41:17 +08:00
dekun
ee011800e1
Open instance in new tab as full page, not embed shell.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-25 22:47:02 +08:00
dekun
5cf88818c1
Open instance in new tab; add in-hub trade, monitor, and review shortcuts.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-25 22:37:54 +08:00
dekun
924a385d6c
Fix plan history detail modal unreadable text over stats table.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-25 11:17:31 +08:00
dekun
61d79c4de1
Fix hub market chart live K-line updates without manual reload.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-24 14:48:01 +08:00
dekun
322060de31
Show position-limit freeze on hub and instance risk badges.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-24 01:58:24 +08:00
dekun
3e8ecbf712
Add refresh buttons to hub plan and calculator pages.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-24 01:43:27 +08:00
dekun
bced61b9d7
Avoid hub iframe overlay on embed shell tab switches.
...
Use in-shell content loading state instead of parent postMessage so tab changes do not trigger the full instance-frame loading mask.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-24 01:23:40 +08:00
dekun
157d9ada21
Fix calculator import error for hub_supervisor_lib.
...
Ensure settings_store resolves supervisor module when imported from repo-root calculator libs.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-24 00:42:21 +08:00
dekun
b18b2143b5
Restore hub iframe soft nav to cut blank tab switch gap.
...
Use fetch in-frame navigation with overlay and hover prefetch; show delayed hub loading spinner instead of hiding the iframe.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-24 00:32:03 +08:00
dekun
7f8ae97a98
Fix hub iframe nav flicker with normal navigation and loading overlay
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-24 00:06:17 +08:00
dekun
e03863d780
Add roll leg avg/TP profit display and reduce instance nav flicker
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-23 23:42:02 +08:00
dekun
54ba412d1d
Fix false supervisor open events for existing holdings
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-23 20:20:33 +08:00
dekun
65901c5577
Fix supervisor AI empty replies with fallback templates
...
Skip appending AI error strings to the session and use event-specific fallback commentary when the model returns empty content.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-23 20:10:33 +08:00
dekun
acc158f85d
Use auto-fit grid for funds and dashboard account cards
...
Account cards expand to fill available width when fewer exchanges are enabled instead of staying in fixed four-column tracks.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-23 19:57:24 +08:00
dekun
ea5c6cddb4
Add per-card save and collapse on settings page
...
Each settings section and exchange card gets its own save button and fold toggle with state persisted in localStorage.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-23 19:37:16 +08:00
dekun
0dedaa2b4d
Fix supervisor settings panel inner padding
...
Align the trading supervision card with other settings panels so content is not flush against the border.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-23 19:30:14 +08:00
dekun
bfbd6879d6
Add AI trading supervisor with WeChat push and daily session
...
Proactive monitoring for manual/hub closes and new opens prevents overtrading via in-app alerts, configurable WeChat links, and supervisor chat.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-23 19:25:01 +08:00
dekun
d3d366d0ee
Hide disabled exchanges from dashboard and fund overview.
...
Only aggregate and display exchanges with enabled monitoring in system settings.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-23 18:41:52 +08:00
dekun
faa41eece1
Make calculator cards equal height on desktop layout.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-23 18:34:15 +08:00
dekun
f4d7dec111
Trim trailing zeros in calculator market info display.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-23 18:29:08 +08:00
dekun
5e507d0b66
Use hub exchange instances for calculator contract precision.
...
Load enabled instances from settings, fetch market info via /api/hub/market, and apply exchange-specific amount and price precision in trend and roll calculators.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-23 18:13:02 +08:00
dekun
d938bc6c59
Redesign roll calculator with auto first entry and chained add legs.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-23 17:44:27 +08:00
dekun
253d353206
Add hub strategy calculator page with trend and roll risk-based sizing.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-23 17:35:06 +08:00
dekun
1ba0014fff
Add padding to macro settings panel so text is not flush to edges.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-23 17:24:07 +08:00
dekun
caf4996159
Add settings toggles for plan, archive, and AI coach nav items.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-23 17:19:12 +08:00
dekun
8e810154ca
Add open-instance to trade page and mobile/tablet responsive layouts.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-23 16:38:30 +08:00
dekun
ed3709dddf
Move entry scheme to active plans only, required on archive.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-22 16:56:34 +08:00
dekun
a837cfd14c
Fix broken hub_macro_calendar_lib import in hub.py.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-22 16:50:09 +08:00
dekun
091317276d
Add entry plan page with CRUD, archive flow, and win-rate stats.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-22 16:19:56 +08:00
dekun
c0f3606ecc
Add win rate and profit-loss ratio to archive stats.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-21 09:13:37 +08:00
dekun
c05afbbedf
Add win/loss metrics to archive stats with symbol filter sync.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-21 09:03:21 +08:00
dekun
073a382d41
Unify key support/resistance monitor type and fix form parity.
...
Merge 关键阻力位/关键支撑位 into 关键支撑阻力, share key_monitor_form.js across hub and new-tab views, and add hub shortcut to /key_monitor.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-19 08:31:14 +08:00
dekun
9330e356fc
Fix freeze countdown exceeding configured cooloff hours.
...
Clamp future last_close anchors, cap remaining time server-side, prefer freeze_remaining_sec in the badge JS, and auto-repair stale DB rows on read.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-18 22:11:09 +08:00
dekun
f8e760961e
fix(risk): reset badge to normal when freeze countdown expires
...
Also expand account-risk-cooldown docs with countdown format, API fields, and frontend assets.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-18 17:47:47 +08:00
dekun
97370926d6
feat(risk): show live countdown on freeze status badges
...
Expose freeze_until_ms from risk API and tick hub/instance badges with remaining 1h/4h/daily time.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-18 17:41:04 +08:00
dekun
e470c5952f
feat(hub): add macro calendar for pre-release risk alerts
...
Manual FOMC/CPI/employment entries in settings drive ±1h monitor banners without touching exchange instances.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-18 11:52:30 +08:00
dekun
d8dccb8606
fix(hub): stop instance iframe nav flash after account status badge
...
Load account_risk_badge.css before body paint, skip redundant hub theme re-apply, remove iframe hide overlay, and disable badge transitions in hub embed.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-17 19:36:48 +08:00
dekun
6520234bd8
fix(hub): eliminate iframe flash when switching instance nav tabs
...
Use soft in-frame navigation and loading overlay in hub instance shell; pass embed=1 for iframe SSO opens.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-17 19:27:52 +08:00
dekun
be7f5d5072
fix(auth): stop pre-filling login username on new devices
...
Remove username_hint from hub auth status API and disable autocomplete on hub and instance login forms.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-17 19:21:46 +08:00
dekun
b6acbf4b2c
fix(risk): trigger cooldown only on user-initiated closes
...
Remove external-close risk hooks; register user_instance, user_hub, and user_trend_stop via hub API and trend stop; update docs and tests.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-17 19:14:05 +08:00
dekun
850ffcd7d2
style(risk): polish account status badge for light and dark themes
...
Extract shared account_risk_badge.css with theme-aware contrast, dot indicator, and hub/instance layout fixes.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-17 17:37:32 +08:00
dekun
e307eef690
feat(risk): add account cooldown and daily freeze after manual/external close
...
Implements shared account_risk_lib with 4h/1h cooloff and daily freeze rules, wires hooks into all four exchange apps and hub monitor UI, with tests and docs.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-17 17:05:19 +08:00