增加趋势回调

This commit is contained in:
dekun
2026-05-23 11:33:01 +08:00
parent fc8f9b70da
commit 4439bedcb7
12 changed files with 1419 additions and 194 deletions
+3 -3
View File
@@ -33,7 +33,7 @@ strategy_templates/ # 主站内嵌 panelsubnav、roll、trend 禁用
| 路由 | 子 Tab | 说明 |
|------|--------|------|
| `/strategy/trend` | 趋势回调 | **完整功能仅在 `crypto_monitor_gate_bot`**;其它所在主站 `index.html` 内嵌说明(不再跳转独立 HTML |
| `/strategy/trend` | 趋势回调 | **币安 / Gate / OKX / gate_bot 四所均可**(预览、执行、自动补仓、程序止盈 |
| `/strategy/roll` | 顺势加仓 | **四所均可用**(须已有同向持仓),与实盘页同一布局 |
| `/trade` | 实盘下单 | 首仓、以损定仓、移动保本(不变) |
@@ -43,12 +43,12 @@ strategy_templates/ # 主站内嵌 panelsubnav、roll、trend 禁用
## 三、趋势回调(延续 Gate 趋势机器人逻辑)
- **位置**`crypto_monitor_gate_bot`**策略交易 → 趋势回调**(与 Gate 主站同一顶栏风格,非独立站点)。
- **位置**各所顶栏 **策略交易 → 趋势回调**(共用 `strategy_trend_register.py` + 各所交易所 API)。
- **行为**:与《[crypto_monitor_gate_bot/趋势回调策略说明.md](./crypto_monitor_gate_bot/趋势回调策略说明.md)》一致——预览 → 确认执行 → 首仓 50% + 交易所止损 + 多档 **自动** 市价补仓 + 程序监控止盈。
- **共用代码**`parse_and_compute_trend_pullback_plan` 中网格/拆档已改为调用 `strategy_trend_lib`
- **互斥**:与「机器人下单监控」持仓上限、运行中趋势计划互斥(逻辑未改)。
其它三所打开 **策略交易 → 趋势回调** 会在主站内嵌说明:完整功能请使用 Gate 趋势机器人实例(常见 `:5002`
逻辑与 gate_bot 一致;各所使用自己的 API 密钥与 `crypto.db`,互不影响
---