Stock Monitor Pro - Full-featured intelligent advisory system
🎯 Core Features
1. Seven Major Alert Rules (Want Them All!)
| Rule |
Trigger Condition |
Weight |
| Cost Percentage |
Profit +15% / Loss -12% |
⭐⭐⭐ |
| Intraday Change |
Individual stocks ±4% / ETF ±2% / Gold ±2.5% |
⭐⭐ |
| Abnormal Trading Volume |
Volume surge >2x average volume / Volume shrink <0.5x |
⭐⭐ |
| Moving Average Golden Cross/Death Cross |
MA5 crosses above/below MA10 |
⭐⭐⭐ |
| RSI Overbought/Oversold |
RSI>70 overbought / RSI<30 oversold |
⭐⭐ |
| Gap |
Upward/downward gap >1% |
⭐⭐ |
| Dynamic Take-Profit |
After 10%+ profit, retracement 5%/10% |
⭐⭐⭐ |
2. Tiered Alert System
- 🚨 Urgent Level: Multiple conditions resonate (e.g., volume surge + moving average golden cross + breaking through cost)
- ⚠️ Warning Level: 2 conditions triggered (e.g., RSI oversold + volume surge)
- 📢 Reminder Level: Single condition triggered
3. Chinese Conventions
- 🔴 Red = Rise / Profit
- 🟢 Green = Fall / Loss
📋 Monitoring Configuration
Complete Alert Rule Example
{
"code": "600362",
"name": "江西铜业",
"type": "individual", # 个股
"market": "sh",
"cost": 57.00, # 持仓成本
"alerts": {
# 1. 成本百分比
"cost_pct_above": 15.0, # 盈利15%提醒 (¥65.55)
"cost_pct_below": -12.0, # 亏损12%提醒 (¥50.16)
# 2. 日内涨跌幅 (个股±4%)
"change_pct_above": 4.0,
"change_pct_below": -4.0,
# 3. 成交量异动
"volume_surge": 2.0, # 放量>2倍5日均量
# 4-7. 技术指标 (默认开启)
"ma_monitor": True, # 均线金叉死叉
"rsi_monitor": True, # RSI超买超卖
"gap_monitor": True, # 跳空缺口
"trailing_stop": True # 动态止盈
}
}
Differentiation by Instrument Type
| Type |
Intraday Movement Threshold |
Volume Threshold |
Applicable Instruments |
| individual (Individual Stocks) |
±4% |
2x |
Jiangxi Copper, Ping An of China |
| etf (ETF) |
±2% |
1.8x |
Hang Seng Healthcare, ChiNext 50, etc. |
| gold (Gold) |
±2.5% |
None |
London Gold |
🚀 Operation Mode
Background Resident Process
cd ~/workspace/skills/stock-monitor/scripts
./control.sh start # 启动
./control.sh status # 查看状态
./control.sh log # 查看日志
./control.sh stop # 停止
⚡ Intelligent Frequency (Beijing Time)
| Time Period |
Frequency |
Monitored Instruments |
| Trading Hours 9:30-15:00 |
Every 5 minutes |
All + Technical Indicators |
| Lunch Break 11:30-13:00 |
Every 10 minutes |
All |
| After Close 15:00-24:00 |
Every 30 minutes |
All (Daily Data) |
| Early Morning 0:00-9:30 |
Every 1 hour |
London Gold only |
| Weekend |
Every 1 hour |
London Gold only |
🔔 Alert Message Examples
Multiple Conditions Resonance (Urgent Level)
🚨【紧急】🔴 江西铜业 (600362)
━━━━━━━━━━━━━━━━━━━━
💰 当前价格: ¥65.50 (+15.0%)
📊 持仓成本: ¥57.00 | 盈亏: 🔴+14.9%
🎯 触发预警 (3项):
• 🎯 盈利 15% (目标价 ¥65.55)
• 🌟 均线金叉 (MA5¥63.2上穿MA10¥62.8)
• 📊 放量 2.5倍 (5日均量)
📊 江西铜业 深度分析
💰 价格异动:
• 当前: 65.5 (+15.0%)
• MA趋势: MA5>MA10>MA20 [多头排列]
• RSI: 68 [接近超买]
💡 Kimi建议:
🚀 多条件共振,趋势强劲,可考虑继续持有或分批减仓。
RSI Oversold (Warning Level)
⚠️【警告】🟢 恒生医疗 (159892)
━━━━━━━━━━━━━━━━━━━━
💰 当前价格: ¥0.72 (-10.0%)
📊 持仓成本: ¥0.80 | 盈亏: 🟢-10.0%
🎯 触发预警 (2项):
• 📉 日内大跌 -10.0%
• ❄️ RSI超卖 (28.5),可能反弹
💡 Kimi建议:
🔍 短期超跌严重,RSI进入超卖区,关注反弹机会但勿急于抄底。
Dynamic Take-Profit Reminder
📢【提醒】🔴 中国平安 (601318)
━━━━━━━━━━━━━━━━━━━━
💰 当前价格: ¥70.50 (+6.8%)
📊 持仓成本: ¥66.00 | 盈亏: 🔴+6.8%
🎯 触发预警:
• 📉 利润回撤 5.2%,建议减仓保护利润
(最高盈利12%已回撤)
🛠️ File Structure
stock-monitor/
├── SKILL.md # 本文档
├── RULE_REVIEW_REPORT.md # 规则审核报告
└── scripts/
├── monitor.py # 核心监控 (7大规则)
├── monitor_daemon.py # 后台常驻进程
├── analyser.py # 智能分析引擎
└── control.sh # 一键控制脚本
⚙️ Custom Configuration
Modify Cost Price
"cost": 55.50, # 改成你的实际成本
Adjust Alert Thresholds
"cost_pct_above": 20.0, # 盈利20%提醒
"cost_pct_below": -15.0, # 亏损15%提醒
"change_pct_above": 5.0, # 日内异动±5%
"volume_surge": 3.0, # 放量3倍提醒
Toggle Technical Indicators
"ma_monitor": False, # 关闭均线
"rsi_monitor": True, # 开启RSI
"gap_monitor": True, # 开启跳空
📝 Changelog
- v3.0 Full-featured Version: Completed 7 major alert rules (cost/price change/volume/moving average/RSI/gap/dynamic take-profit)
- v2.4 Cost Percentage Edition: Supports percentage alerts based on holding cost
- v2.3 China Edition: Red for up, green for down color convention
- v2.2 Resident Process Edition: Background resident process support
- v2.1 Smart Frequency Edition: Smart frequency control
- v2.0 Pro Edition: News and sentiment analysis
⚠️ Usage Tips
- Technical indicators have lag: Moving averages, MACD, etc. are all lagging indicators, used to confirm trends rather than predict them
- Avoid overtrading: Alerts are only for reference; do not act on every signal
- Multi-condition resonance is more reliable: A single indicator is prone to false signals; multi-condition resonance is more accurate
- Dynamic take-profit should be flexible: Reducing position at a 5% drawdown and liquidating at 10% are suggestions; adjust flexibly according to the market
Core Principle:
The goal of the alert system is to "not miss big opportunities and not make big mistakes", not to "catch every fluctuation".