dekun
7f22bffbc6
Shorten force-close window to 5m and grey-out open during blocks.
...
Unify Gate/OKX/Binance: disable the open button with a side note during force-close, cooloff, and daily freeze, and enforce the same gate server-side.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-06 08:38:00 +08:00
dekun
55e94fe059
Restore Gate intraday close/TP-SL controls and document force-close rules.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-05 08:16:02 +08:00
dekun
4a3e6a2a1d
Add global autofill guard for hub, env, and transfer inputs.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-20 10:18:56 +08:00
dekun
f7ba7c2f7d
Auto-fill journal direction from trade records.
...
Add a required direction field on the review form, persist it, and set long/short when clicking 填入复盘.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-17 12:00:09 +08:00
dekun
1f767f16e4
Fix Gate key_focus 500 from invalid Jinja startswith filter.
...
Use (value|upper).startswith(...) so symbol whitelist select works when default is BTC/USDT.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-16 12:12:48 +08:00
dekun
d3a44b23db
Split journal order type from entry reason and fix review edit toggle in embed shell.
...
Adds order_type to journal uploads, removes legacy swing/trend labels from entry reason options, and ensures review-edit buttons sync when the records tab loads dynamically.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-09 09:27:03 +08:00
dekun
b733e551a0
Normalize fullwidth punctuation to ASCII across codebase.
...
Add scripts/normalize_ambiguous_unicode.py; fix corrupted patch_instance_theme_templates.py. Preserves curly quotes in string literals; removes Git homoglyph warnings on .env.example.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-08 23:42:26 +08:00
dekun
e3e53ff7f5
Fix roll position display: live contracts, TP profit, and 2-decimal qty precision.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-08 17:06:33 +08:00
dekun
5ef6affabf
Show initial and current roll position size plus rolling status on active roll groups table.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-08 16:45:32 +08:00
dekun
6745262412
fix: intraday journal entry type limited to four options
...
日内复盘开仓类型仅保留假破、结构突破、回调触价、突破触价;移除旧趋势长句与策略项。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-07 00:55:35 +08:00
dekun
5a0d18cf99
feat: add force-close exit trigger and round journal real RR to 2dp
...
复盘离场触发增加强制清仓;填入复盘与自动计算实际盈亏比保留两位小数。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-07 00:40:55 +08:00
dekun
ff1bcd69d2
feat: two-level entry model UI for trend accounts (reversal/trend/swing)
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-06 19:02:18 +08:00
dekun
8b069294b7
refactor: unify three-exchange instance UI with shared templates
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-06 02:43:24 +08:00
dekun
7fb87d6030
fix: improve journal form layout for tablet with proportional field widths
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-06 00:59:45 +08:00
dekun
fa9e6be36d
feat: show entry type in trade records, remove journal custom entry reason
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-06 00:49:21 +08:00
dekun
ea429b2694
feat: 趋势户开仓类型大分歧A/B/小分歧,自动联动趋势波段与复盘
...
下单监控增加 entry_model 下拉;平仓写入短标签并预填复盘。Binance/OKX 用趋势 profile,Gate 日内仍用手选 trade_style。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-06 00:18:38 +08:00
dekun
21894334f8
feat: KEY_AUTO_ORDER_ENABLED 三所统一开关,联动关键位自动单与开仓类型
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-05 23:39:06 +08:00
dekun
f688a504e1
ui: 复盘表单紧凑布局、即时上传截图并移除占用时新开仓
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-05 22:46:05 +08:00
dekun
88fe4bbe56
feat: 复盘四周期手动上传,移除 AI 识别预填
...
固定 5m/15m/1h/4h 四槽截图上传与详情四宫格展示;自动 K 线默认关闭且与手动上传互斥。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-05 21:57:41 +08:00
dekun
eec57610dc
fix: 注册 symbol_live_price.js 静态路由(现价不显示)
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-05 00:46:23 +08:00
dekun
3a740235ac
feat: 币种输入旁实时显示交易所现价
...
Shared SymbolLivePrice polls /api/order_defaults on input with debounce; wired to trade, key monitor, trend, and key focus forms.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-05 00:42:44 +08:00
dekun
efe7a57e60
fix: trade_policy 宏使用 with context 修复 500
...
Jinja imported macros did not receive trade_policy from render context, causing Internal Server Error on all instance pages.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-05 00:36:06 +08:00
dekun
c0ad50a7b5
feat: 账户方向与币种白名单 env 开关(三所)
...
Per-instance TRADE_DIRECTION / TRADE_SYMBOL_WHITELIST restricts UI and API for manual orders, key monitors, and strategies; includes sync script for deployment profiles.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-05 00:30:49 +08:00
dekun
9f67de3677
refactor: 移除 gate_bot,统一为三所架构并更新文档
...
删除 crypto_monitor_gate_bot 目录,中控与子代理改为 binance/okx/gate 三账户;
文档与 UI 文案「四所」改为「三所」;新增清库前一次性配置备份脚本。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-04 22:00:08 +08:00
dekun
394793b9d2
fix: 突破加仓按 mark 触价触发,避免漏单
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-02 22:31:49 +08:00
dekun
9d9d0af31e
fix: 市价加仓预览后无法执行滚仓
...
修复 embed 壳拦截 roll-form 提交,以及策略 tab 切换后未重新绑定顺势加仓脚本的问题。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-02 21:42:12 +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