dekun
96ab7e997c
docs: binance reversal launch A/B strategy v0.4 draft
...
Document MACD divergence, reference-high two-touch rules, launch A (A1/A2) and B; update hub checklist. UI implementation still pending.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-06 18:44:17 +08:00
dekun
43cd98f2d5
feat: add EMA144 as separate market chart indicator
...
Optional EMA144 line on hub K-line main chart, independent from EMA 21/55 cross.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-06 03:32:26 +08:00
dekun
22b2db34fc
feat: MD-style popup print for strategy doc and checklist
...
Open clean white document in new tab with auto print dialog instead of printing the dark hub page.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-06 03:28:44 +08:00
dekun
0d5b20c0db
feat: strategy page scroll layout, OKX standalone docs, split print
...
Right checklist drives card height with left doc scroll; rewrite OKX strategy MD and checklist as standalone; add per-column print buttons.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-06 03:25:56 +08:00
dekun
a4cd966370
fix: align strategy page card heights and inner padding
...
Equal-height two-column cards with flex layout; add card padding and spacing so content is not flush to edges.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-06 03:17:12 +08:00
dekun
7223b54ec4
feat: add hub strategy docs page with MD and checklists
...
Central /strategy page shows per-exchange strategy markdown and read-only entry checklists; nav toggle in settings, print and HTML export per tab.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-06 03:12:09 +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
df99eb5fb5
chore: gate-only force-close policy and deploy pull script
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-06 02:32:35 +08:00
dekun
3c0c62997f
chore: align binance/okx env examples with gate and add sync script
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-06 02:31:06 +08:00
dekun
4904a86e03
fix: hide hub close/entrust controls for intraday discipline profile
...
Expose intraday_discipline via hub meta and block manual close/tpsl APIs; Gate instance card no longer shows 全平/平仓/委托.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-06 02:26:22 +08:00
dekun
a268a93027
feat: show force-close badge and countdown when FORCE_CLOSE is enabled
...
Add shared lib/UI for midnight force-close indicator on instance and hub pages, and document Gate intraday 0-point exit alignment.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-06 02:17:47 +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
5137d5ed17
fix: remove inline estimated TP preview from fixed RR order form
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-06 00:40:16 +08:00
dekun
e526d6af76
fix: 注册 order_entry_model.js 静态路由,embed 内联联动逻辑
...
中控 iframe 下 JS 404 导致小分歧/杠杆不更新;boot 脚本内联兜底。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-06 00:34:26 +08:00
dekun
e81343ae91
fix: 小分歧联动波段单显示,杠杆改为按币种默认只读
...
option 增加 data-trade-style;修复 JS 初始化顺序。杠杆隐藏输入,显示 BTC/ETH 10x 其它 5x。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-06 00:28:10 +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
7bb6ee1154
remove: 全面移除「错过机会」功能与文案
...
删除手动记录表单与 /add_miss;停止自动生成错过类交易记录;列表/统计/顶栏不再展示;复盘卡片改为整行。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-05 22:21:30 +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
65b911994c
fix: 今日统计数字改用常规字体,去掉发光效果
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-04 23:16:22 +08:00
dekun
9deb58a38a
feat: 监控区 2x2 布局与左上今日统计卡
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-04 23:10:32 +08:00
dekun
eb975b0133
fix: 交易安全审计修复 — 补偿平仓、中控同步、滚仓/趋势防护
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-04 22:44:16 +08:00
dekun
df28e6dfb8
fix: ccxt Gate 类名 gateio 改为兼容 gate
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-04 22:21:33 +08:00
dekun
4923b32bbe
feat: 新增 Plan B 整目录重装脚本,不影响 setup_env 一键安装
...
添加 deploy/reinstall.sh 备份 env、克隆、调 setup_env、恢复配置并 PM2 启动;
附带 pm2_start_all.sh 与 hub_settings 清理工具。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-04 22:07:59 +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
be51eee73f
fix: 中控改委托后同步计划价并去重条件单展示
...
Co-authored-by: Cursor <cursoragent@cursor.com >
pre-remove-gate-bot
2026-07-04 21:12:00 +08:00
dekun
54c1984ec7
fix: 中控 iframe 嵌入模板路径改用 REPO_ROOT
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-02 22:58:56 +08:00
dekun
be7896cc25
fix: OKX 持仓张数优先读 info.pos,滚仓后同步 order_amount
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-02 22:40:41 +08:00
dekun
394793b9d2
fix: 突破加仓按 mark 触价触发,避免漏单
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-02 22:31:49 +08:00
dekun
0b8f410fbe
fix: 中控持仓卡合并最新风险与保证金展示
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-02 22:19:07 +08:00
dekun
687a34474d
feat: 修改委托后展示最新风险,四所持仓卡增加张数
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-02 22:08:27 +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
bfa3352122
feat: 系统设置增加备份恢复与默认登录 admin
...
支持手动/每日自动备份四所数据库、K线库与 env,上传 zip 一键恢复;中控默认账号 admin/admin123。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-02 16:39:46 +08:00
dekun
55261b7812
fix: lib 迁移后中控数据路径指向 manual_trading_hub
...
修复 hub_fund_history 等模块误读 lib/hub/manual_trading_hub 导致资金概况历史曲线丢失的问题。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-02 16:28:36 +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
4742a0bb9d
refactor: 移除四所统计分析页交易日历
...
删除日历 UI、bootstrap 与 /api/stats/calendar 注册;保留日/周/月统计表。内照明心档案日历不受影响。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-30 09:51:10 +08:00
dekun
32079bb4c2
fix: 修复统计日历 bootstrap 导致整站 500
...
日历数据改为安全 JSON 内嵌,仅统计页构建;构建失败时降级为空,避免拖垮其他页面。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-30 09:24:54 +08:00
dekun
3b687d17eb
fix: 统计日历服务端内嵌 bootstrap,首屏显示盈亏与笔数
...
与月统计同源 initial_calendar 写入页面,API 失败时仍渲染;四所日历路由独立注册并传入 get_db_fn。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-30 09:13:58 +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
052dcf63bd
fix: 四所统计日历 embed 切换后初始化与加载失败仍渲染网格
...
统一 initInstanceStatsCalendar,统计 tab 动态注入时重新挂载日历,API 异常时保留月历骨架。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-30 08:42:39 +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
865567fbd3
fix: add_key 允许突破触价开仓类型通过白名单校验
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-29 20:55:51 +08:00