均线密集告警 MA Cluster Alert
20/60/120 的 MA + EMA(6 线),4H / 1D / 1W,spread ≤ 0.8% 6 lines (20/60/120 MA & EMA), 4H / 1D / 1W, spread ≤ 0.8%
基于 Python asyncio 的实时行情监控:检测 4H / 1D / 1W 均线密集与 200MA 触碰, Telegram 即时推送;可选 TradingAgents 多智能体 AI 深度解读。 Asyncio market monitor: MA cluster & 200MA touch on 4H / 1D / 1W, instant Telegram alerts, optional TradingAgents AI deep-dive.
规则引擎决定「何时告警」,AI 可选解读「意味着什么」—— 纯后端进程,无 Web API。 Rules decide when to alert; optional AI interprets what it might mean — single Python process, no web API.
20/60/120 的 MA + EMA(6 线),4H / 1D / 1W,spread ≤ 0.8% 6 lines (20/60/120 MA & EMA), 4H / 1D / 1W, spread ≤ 0.8%
仅 1D / 1W,距 200MA ≤ 1.2%;4H 不做触底,不看 200EMA 1D / 1W only, ≤ 1.2% from 200MA; no 4H touch, no 200EMA
告警后自动 / 手动 /analyze,TradingAgents 生成 HTML 报告推送到 Telegram Auto or /analyze: TradingAgents report → Telegram summary + HTML
U 本位合约 WebSocket aggTrade + K 线闭合,低延迟触碰检测 USDT-M futures WebSocket aggTrade + closed klines
Yahoo Finance 历史 K 线 + 轮询,覆盖 MSTR、NVDA、GC=F 等 Yahoo Finance bars + polling for MSTR, NVDA, GC=F, etc.
同一标的+周期+类型 4h 冷却,60s 防抖,避免消息轰炸 4h cooldown + 60s debounce per symbol × interval × type
config.yaml 决定监控标的与阈值;providers 拉行情,services 算指标,notifiers 推 Telegram。 config.yaml drives watchlist & thresholds; providers fetch, services compute, notifiers push.
以下为实际运行截图,展示 Telegram 交互与 AI HTML 报告。 Screenshots from a running instance — Telegram UX & AI HTML report.
来自 config.yaml,每个标的在 4H / 1D / 1W 独立监控。 From config.yaml — each symbol monitored on 4H / 1D / 1W.
| 标的 Symbol | 数据源 Source | 周期 Intervals | 说明 Notes |
|---|---|---|---|
| BTC/USDT | Binance Futures | 4H · 1D · 1W | WebSocket 实时 WebSocket real-time |
| ETH/USDT | Binance Futures | 4H · 1D · 1W | WebSocket 实时 WebSocket real-time |
| SOL · BNB · HYPE | Binance Futures | 4H · 1D · 1W | /USDT |
| MSTR · NVDA · MSFT · GOOGL | Yahoo Finance | 4H · 1D · 1W | 轮询 ~5min Polled ~5min |
| QQQ · VOO · CRCL | Yahoo Finance | 4H · 1D · 1W | ETF / Equity |
| XAU (GC=F) | Yahoo Finance | 4H · 1D · 1W | COMEX 黄金期货 COMEX gold futures |
单进程 asyncio,Docker 可部署,适合作为 fintech / Web3 作品集参考项目。 Single-process asyncio, Docker-ready — great fintech / Web3 portfolio piece.
视频、文章、简历中请链回官方 GitHub,并保留作者署名(Apache-2.0)。 Link to the official GitHub repo and keep attribution (Apache-2.0).
Invest Alert Bot — MA monitor & Telegram alerts
Author: Shijie Zheng (Kerry Zheng)
https://github.com/Formyselfonly/invest-alert-bot
Live demo: https://formyselfonly.github.io/invest-alert-bot/
License: Apache-2.0