55 Commits

Author SHA1 Message Date
dekun 6a3225577b Rebuild desktop exe with auto break-even for download center.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-27 11:34:21 +08:00
dekun 75b9bffe96 Add auto break-even toggle and WeCom hub notifications.
Desktop can auto-pull stop to open+/-1 after a 3$ favorable move; hub pushes open/close events and a 23:00 BJT daily summary via webhook.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-27 11:25:44 +08:00
dekun 828038a5ae Include auto-refresh script on trade review list page.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-23 13:29:12 +08:00
dekun e15b1d7491 Auto-refresh review list and stats when trades or annotations change.
Clarify that category/style breakdowns need manual entry tagging.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-23 13:28:27 +08:00
dekun c16dc2e061 Add standalone take-profit edit beside stop-loss on open positions.
Keep existing SL when changing TP, and verify both fields after broker modify.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-22 18:58:20 +08:00
dekun ca117f7dd6 Keep zoomed K-line bar count same as thumbnail window.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-22 13:09:09 +08:00
dekun 01ed885646 Add lean review issues: up to two problem tags plus short note.
Persist review_issues, enforce max two on save, and show issue breakdown in stats.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-21 20:56:32 +08:00
dekun 1bf353c505 Show buy/sell as Chinese labels on live dashboard rows.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-21 20:32:24 +08:00
dekun 9f6651da2f Add Chinese side label and click-to-zoom review charts.
Crop thumbnails around entry/exit so short trades are visible; lightbox uses a tighter window.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-21 20:31:22 +08:00
dekun 656038a74d Show BJT entry/exit times on review chart legend.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-21 20:24:49 +08:00
dekun 429010da6b Fix review chart markers to use containing bar time, not nearest open.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-21 20:24:28 +08:00
dekun 94d7557b1c Hide synthetic dedupe/reconcile rows from trade list count.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-21 20:11:19 +08:00
dekun dcef9f1d61 Dedupe duplicate ticket closes so stats match MT5 today PnL.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-21 19:39:08 +08:00
dekun 1d2d4bbaff Fix stats dirty data: today filter, exclude synthetic closes, scrub frozen float PnL.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-21 19:28:01 +08:00
dekun 391851a2b0 Fix ghost open positions: dedupe tickets and reconcile against MT5.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-21 18:03:48 +08:00
dekun e2847c90df Review charts: M1/M5/M15/H1 bar counts 500/200/100/50; simplify markers.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-21 17:33:18 +08:00
dekun 11c14fbb21 Clean up review charts: crop windows, simplify entry/exit markers.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-21 17:27:49 +08:00
dekun 39bff20d60 Mark entry/exit on review charts; clarify bars are saved then read.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-21 17:24:24 +08:00
dekun 229f0351e0 Add per-position manual stop-loss edit, separate from break-even.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-21 16:50:33 +08:00
dekun 1714732b10 Fix manage.sh menu input after curl|bash tty reattach.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-21 16:35:22 +08:00
dekun e68393fe5b Dashboard shows open positions only; closed trades stay in review.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-21 16:33:30 +08:00
dekun 74cfb8b4aa Speed up UI: throttle history/stats, async hub sync, faster post-trade refresh.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-21 16:31:32 +08:00
dekun 7de33ffed6 Show today win rate on daily stats bar.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-21 13:54:34 +08:00
dekun a6062fbacc Format trade prices to 3 decimals and round on ingest.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-21 10:30:21 +08:00
dekun c436b76e64 Floor ATR at 10 USD for SL/TP when ATR mode enabled.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-21 10:23:16 +08:00
dekun 60ecc65f1c Reconcile stale open trades; report position ticket and history closes.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-21 10:15:07 +08:00
dekun 997dca7a6e Harden break-even SLTP modify with check/retry/verify and UI refresh.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-21 09:22:53 +08:00
dekun 9d39632a48 Fix break-even: enable when SL placeable; clearer hints; verify SLTP.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-21 09:14:01 +08:00
dekun 26a3c760db Fix D1 open elapsed (use current bar); upsert floating P/L on dashboard.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-21 08:44:15 +08:00
dekun 27d14472ea Fix curl|bash manage.sh: reattach /dev/tty; add update subcommand.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-18 08:32:08 +08:00
dekun 8c4afe7781 Remove login defaults; open review via device token SSO.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-18 08:30:08 +08:00
dekun bc50f300ba Define entry styles: trend/reversal x 3 patterns, plus messy other.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-17 22:54:19 +08:00
dekun ae1b91fcc5 Add trade stats board: win rate, hold buckets, by machine/side.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-17 22:31:17 +08:00
dekun 6b705a60ca Remove unused pagination template vars.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-17 22:21:25 +08:00
dekun dbfddeedcb Paginate review list (10/page); show open/close/hold duration in BJT.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-17 22:21:12 +08:00
dekun 3164a21348 Add machine filter on trade records and review list.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-17 22:15:22 +08:00
dekun 7bf04e3c68 Show visible SSE live status with last update time on dashboard.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-17 22:11:31 +08:00
dekun bf5d29ba55 Use Beijing time for next-open countdown and day open labels.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-17 22:02:41 +08:00
dekun 4aad197d46 Add day amplitude metric (high-low range and percent).
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-17 21:51:21 +08:00
dekun 12a62f79a5 Warn on buy/sell when spread exceeds 0.50 USD.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-17 21:48:29 +08:00
dekun 846fdedc1f Fix position list default height to fit 5 rows.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-17 21:44:40 +08:00
dekun a70d8656e7 Polish order UI: elapsed since open, show OHLC when closed, card layout.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-17 21:29:35 +08:00
dekun 1a641f58bc Show day OHLC, session label, clarify auto-lot for small balance.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-17 21:12:59 +08:00
dekun d860156b11 Add SSE second-level dashboard stream and 2s client heartbeat.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-17 21:04:55 +08:00
dekun ba74a9cce8 Improve machines page: online status, formatted time, delete unbound placeholders.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-17 20:59:52 +08:00
dekun 679b55f1db Dashboard: show online machines and live trade feed with polling.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-17 20:35:16 +08:00
dekun 44c54d6f80 Download center: copy code, online/offline status; remove client offline mode.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-17 20:09:22 +08:00
dekun 09c7ee0188 Activate once: persist hub URL/token locally and skip dialog on later launches.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-17 20:02:52 +08:00
dekun 90232cfaa3 Fix activation dialog: pin confirm buttons at bottom so they stay visible.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-17 19:56:47 +08:00
dekun accdab9499 Fix exe silent start: show activation window instead of hidden Tk parent.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-17 19:32:35 +08:00