jackyu66git
2e905e7238
feat: 所有页面接入 Google Analytics (G-LVVXH3TL04)
2026-07-02 15:57:15 +08:00
jackyu66git
34040575c1
bsp_monitor: fetcher limit=1000, engine/main tweaks
2026-06-04 12:51:58 +08:00
jackyu66git
e1116edb7b
更新了本地数据拉取
2026-05-26 14:49:31 +08:00
jackyu66git and Claude Opus 4.7
8bc23c0507
notify: 移除持久化去重,BSP 由新笔确认驱动不重复
...
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-26 14:46:10 +08:00
jackyu66git and Claude Opus 4.7
c75d5e11fc
notify: Telegram token/chatid 直接硬编码
...
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-26 14:45:41 +08:00
jackyu66git and Claude Opus 4.7
8eb50e3eae
bsp_monitor: 多周期 BSP 推送 (1m/5m/15m/1h),中枢监控代码保留但暂停
...
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-26 14:42:53 +08:00
jackyu66git and Claude Opus 4.7
42296ef971
refactor: BSP推送提取公共函数 + 清理
...
- _push_bsp() 提取重复的key构造+推送逻辑
- bsp.klc None防护
- getattr替代hasattr+属性访问
- 修正首轮日志(不再写"不推送")
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-26 14:05:20 +08:00
jackyu66git and Claude Opus 4.7
a84a80cb62
Revert: BSP独立跟踪confirmed[-1],不与中枢监控耦合
...
B1/B2依赖中枢存在,不能等中枢更新才查BSP。
保持独立bi_id跟踪confirmed[-1]变化,分型确认时即查BSP。
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-26 14:02:07 +08:00
jackyu66git and Claude Opus 4.7
63787b173a
fix: 新笔确认即查BSP(反向二类分型触发),首轮也查confirmed[-1]
...
笔被反向二类分型确认时is_sure=True,不需要等下一笔。
- 跟踪confirmed[-1]变化→查新确认那笔自身的BSP
- 首轮也查confirmed[-1],避免漏掉监控启动前刚确认的BSP
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-26 13:59:02 +08:00
jackyu66git and Claude Opus 4.7
07f079067f
fix: 跟踪confirmed[-1],新笔确认时查上一轮confirmed[-1]的BSP
...
以前跟踪bi_list[-1](含未确认)导致时序不对。
现在跟踪confirmed[-1]的稳定ID,变化时在bi_list中精确定位
上一轮的那笔,查其end_klc是否为BSP。
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-26 13:55:48 +08:00
jackyu66git and Claude Opus 4.7
ae4c79c133
fix: BSP检测用last_bi_id精确定位旧笔,替代confirmed[-2]索引
...
管线重算后笔列表可能变化,confirmed[-2]不一定是刚结束的笔。
改为用上一轮的last_bi_id在当前bi_list中精确查找,
找到后再检查其end_klc是否为BSP。
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-26 13:35:20 +08:00
jackyu66git and Claude Opus 4.7
743c5d342e
fix: review修复 — 补回last_df_ts、枚举替换魔数、移除死代码
...
- SymbolState 补回 last_df_ts,无效新K线时跳过管线
- _bi_id 添加 start_klc None 防护
- last_bi.dir.value == 1 改为 Chan_BI_DIR.UP 枚举比较
- notify.py 移除未使用的 register_bsp_keys
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-26 12:56:17 +08:00
jackyu66git and Claude Opus 4.7
78d02cf2ef
refactor: BSP检测改为新笔驱动,不再逐tick对比BSP列表
...
- 用 last_bi_id (start_klc.start_time) 跟踪最后一笔
- 新笔确认时检查上一笔终点是否为 BSP → 推送
- 中枢更新同样在新笔产生时触发
- 移除时间过滤、BSP列表diff、持久化去重等冗余逻辑
- 无新笔时快速跳过,tick从40s降到15s
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-26 12:52:36 +08:00
jackyu66git and Claude Opus 4.7
881c9d5eac
bsp_monitor: 支持全部20个币对 + 数据源切换至data_provider + Python 3.9兼容
...
- fetcher.py: 数据源从CCXT改为data_provider HTTP API,新增get_symbols()自动获取所有币对
- main.py: 重构为多币对架构,每个币对独立SymbolState(pivot_monitor/BSP去重/首轮抑制)
- engine.py: format_bsp_detail()支持动态币对名
- ChanPivotMonitor/Classifier: 修复Python 3.9类型注解兼容(X|None → Optional[X])
- 首轮初始化时不推送中枢和BSP,避免启动时20条消息轰炸
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-26 11:55:23 +08:00
jackyu66git and Claude Opus 4.7
b1cbdca707
ChanPivotMonitor: 实时中枢特征跟踪 + Telegram推送
...
- ChanPivotClassifier: 提取 calc_duration/contraction/shift 为 @staticmethod,新增 compute_features()
- ChanPivotMonitor: 实时追踪当前中枢,bi_count 增长时重新计算 shift/contraction/duration
- bsp_monitor/fetcher: 改用 data_provider HTTP API 替代直连 CCXT
- bsp_monitor/notify: 新增 send_telegram_message() 通用推送
- bsp_monitor/main: 集成 ChanPivotMonitor,有新笔或 BSP 时推送到 Telegram
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-26 11:35:09 +08:00
jackyu66git
9b876c45ed
修改了bsp state,继续测试
2026-05-20 00:49:53 +08:00
jackyu66git
f0ea6a6065
添加 bsp_monitor: BTC/USDT 1m 缠论买卖点实时监控
...
- 每整分钟拉取 Binance 永续合约 1m K 线
- 运行完整缠论管线检测买卖点 (BSP)
- 新 BSP 推送到 Telegram
- fix: fetcher 用 limit=1000 替代固定 since,避免 API 500 根限制截断新数据
2026-05-18 08:43:23 +08:00