Commit Graph

192 Commits

Author SHA1 Message Date
dekun 04e5c11027 Count expiry settlements as martingale losses.
Even small-profit expiry closes count toward consecutive loss days; only non-expiry profitable days break the streak.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-07 15:08:44 +08:00
dekun 930e6c26c5 Clear trade history when resetting sim equity.
Deleting groups/fills/residuals and resetting strategy counters keeps funds reset a clean slate.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-07 14:49:51 +08:00
dekun 0f552eb50e Add martingale mode for risk-based percent sizing.
Enable in settings (default off): after N consecutive loss days, double the effective risk_loss_pct up to a configurable max; blocked when base pct > 3%.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-07 09:55:29 +08:00
dekun 3d1f9f3d50 Move Beijing clock onto nav row with larger type.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-06 15:13:09 +08:00
dekun 0370e91d2f Add Beijing time clock to control header top-right.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-06 15:10:27 +08:00
dekun 82f0c1c27c Equalize strategy and position panel heights without clipping.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-06 03:54:02 +08:00
dekun 3312a8fb50 Show residual option qty with two decimal places.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-06 03:47:49 +08:00
dekun 24f4dea798 Prevent plan position cards from clipping when windowed.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-06 03:43:25 +08:00
dekun 68d02b9c17 Move strategy residual table below market panels.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-06 03:37:52 +08:00
dekun 52948c0a54 Fix strategy plan text overflow in metrics and position cards.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-04 13:49:22 +08:00
dekun b09bcd8414 Show min option hours in control risk/open column.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-03 07:56:32 +08:00
dekun 44a545e6e4 Show control monitor mode as SIM/A or SIM/B sizing codes.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-03 07:54:44 +08:00
dekun 1252f45aac Add strategy residual table with manual close at panel bottom.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-03 07:47:22 +08:00
dekun 09abb8d35b Show residual bid as price/size and recovery percent from bid premium.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-03 07:43:27 +08:00
dekun a10ecf7409 Gate one-open-per-expiry by historical expiry_ymd across days.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-03 07:35:44 +08:00
dekun 5c334a4d89 Use all-time closed groups for funds bar trade stats.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-02 17:07:47 +08:00
dekun d97f7d20e5 Fix funds bar day stats: align trades, win rate, and PL ratio.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-02 17:05:11 +08:00
dekun b983b63c46 Rename control header to hedge fleet command center.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-02 15:47:16 +08:00
dekun 3e71621702 Enlarge control header title further.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-02 15:45:01 +08:00
dekun 5f1dce825b Widen control shell side padding on large screens.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-02 15:43:12 +08:00
dekun 86955c3cf5 Enlarge header subtitle with underline and dash prefix.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-02 15:41:52 +08:00
dekun c70a1fafd5 Restyle control header: large centered title, nav below.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-02 15:39:39 +08:00
dekun 553435eb20 Center control header title and BitCamel subtitle.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-02 15:34:29 +08:00
dekun a7aee8f425 Add control residual options table with liquidity-only manual close.
Fleet status exposes enriched residuals; manual close skips the premium recovery gate while auto mid-close remains unchanged.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-02 15:13:29 +08:00
dekun 92c2e89b0e Add control monitor Start All for stopped fleet nodes.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-02 14:52:56 +08:00
dekun 4059d826e1 Document detailed open/close logic and LIVE failure handling.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-02 14:44:20 +08:00
dekun 469e7a258a Harden residual mid-close: IOC partial fills, exchange reconcile, atomic book.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-02 14:41:00 +08:00
dekun 640ecc9530 Sell residual options at latest bid via IOC limit, not market.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-02 14:25:03 +08:00
dekun 62c91d4bd0 Close residual options when premium recovers above configurable threshold.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-02 14:19:21 +08:00
dekun 60b3743e8d Add initial funds to fleet stats and color total PnL.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-02 12:51:47 +08:00
dekun 51aef1c2fb Fix control SPA refresh 404 on /stats by serving index.html.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-02 12:47:52 +08:00
dekun cd46d7748c Move fleet stats to nav page; backfill funds and loss metrics from curve/status.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-02 12:43:17 +08:00
dekun 921e96321f Align strategy UI prices with exchange tick sizes.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-02 12:34:42 +08:00
dekun 0c12d76212 Show margin and premium in control positions; align exchange price digits.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-02 12:32:25 +08:00
dekun 8745d8e6d1 Add fleet stats table with funds, fees, loss streak, and totals.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-02 12:25:30 +08:00
dekun 5982cb7414 Add select-all update button on control monitor toolbar.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-02 12:18:27 +08:00
dekun 62c9d2ce01 Slow status-dot blink to a softer ~1s breathe.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-02 12:16:30 +08:00
dekun 77e68dd0e9 Lower control shell padding so fullscreen content is less top-heavy.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-02 12:14:42 +08:00
dekun d210db19cf Cyber theme for control UI, faster status flicker, center table text.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-02 12:13:57 +08:00
dekun ec3156021a Add status column with blinking dots, widen shell, risk/open format.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-02 12:07:42 +08:00
dekun 46a861d311 Replace control monitor cards with status table layout.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-02 12:01:49 +08:00
dekun bc3041dcf2 ATM panel: show ask/bid by position state and live option leverage.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-02 11:51:38 +08:00
dekun ead3545df8 Show WeCom machine name after brand title on shell and login.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-02 11:43:02 +08:00
dekun 9427d9c429 Skip used/residual expiries so ATM monitors the next day.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-02 10:31:07 +08:00
dekun 05520f82bd Show option premium in trade detail and widen the modal.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-02 10:25:33 +08:00
dekun cad86813dc Cap fullscreen detail at 1920px width for ultrawide side margins.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-02 10:17:07 +08:00
dekun 987467a808 Make strategy detail overlay fill the entire viewport.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-02 10:14:46 +08:00
dekun 60a1e7ad48 Use horizontal tables for strategy and stats in centered fullscreen modal.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-02 10:10:31 +08:00
dekun b76ef0d248 Center detail modal at 920px with table layout for strategy and stats.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-02 10:06:41 +08:00
dekun 18fdfc6d0a Fullscreen strategy detail with 5-row equity pagination.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-02 10:01:52 +08:00