market-top-detector by tradermonty/claude-trading-skills
npx skills add https://github.com/tradermonty/claude-trading-skills --skill market-top-detector使用一个包含6个组成部分的量化评分系统(0-100分)来检测市场顶部形成的概率。整合了三种经过验证的市场顶部检测方法:
与泡沫探测器(宏观/多月评估)不同,此技能侧重于战术性的2-8周择时信号,这些信号出现在市场10-20%的调整之前。
英文:
日文:
必需:
$FMP_API_KEY 环境变量或传递 --api-key。免费层级足够(每次执行约33次API调用)。广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
可选:
--vix-term 手动覆盖。数据新鲜度: 所有手动收集的数据应来自最近3个交易日,以确保分析准确性。
| 方面 | 市场顶部探测器 | 泡沫探测器 |
|---|---|---|
| 时间框架 | 2-8周 | 数月到数年 |
| 目标 | 10-20%调整 | 泡沫破裂(30%以上) |
| 方法论 | O'Neil/Minervini/Monty | Minsky/Kindleberger |
| 数据 | 价格/成交量 + 广度 | 估值 + 情绪 + 社会 |
| 评分范围 | 0-100综合分 | 0-15分 |
运行 Python 脚本前,使用 WebSearch 收集以下数据。数据新鲜度要求: 所有数据必须来自最近3个交易日。过时数据会降低分析质量。
1. 标普500广度(200日移动平均线以上百分比)
从 TraderMonty CSV 自动获取(无需 WebSearch)
脚本会自动从 GitHub Pages CSV 数据获取此数据。
覆盖: --breadth-200dma [VALUE] 以使用手动值。
禁用: --no-auto-breadth 以完全跳过自动获取。
2. [必需] 标普500广度(50日移动平均线以上百分比)
有效范围: 20-100
主要搜索: "S&P 500 percent stocks above 50 day moving average"
备用搜索: "market breadth 50dma site:barchart.com"
记录数据日期
3. [必需] CBOE 股票看跌/看涨比率
有效范围: 0.30-1.50
主要搜索: "CBOE equity put call ratio today"
备用搜索: "CBOE total put call ratio current"
备用搜索: "put call ratio site:cboe.com"
记录数据日期
4. [可选] VIX 期限结构
值: steep_contango / contango / flat / backwardation
主要搜索: "VIX VIX3M ratio term structure today"
备用搜索: "VIX futures term structure contango backwardation"
注意: 如果 VIX3M 报价可用,则从 FMP API 自动检测。
CLI --vix-term 可覆盖自动检测。
5. [可选] 保证金债务同比百分比
主要搜索: "FINRA margin debt latest year over year percent"
备用搜索: "NYSE margin debt monthly"
注意: 通常滞后1-2个月。记录报告月份。
使用收集的数据作为 CLI 参数运行脚本:
python3 skills/market-top-detector/scripts/market_top_detector.py \
--api-key $FMP_API_KEY \
--breadth-50dma [VALUE] --breadth-50dma-date [YYYY-MM-DD] \
--put-call [VALUE] --put-call-date [YYYY-MM-DD] \
--vix-term [steep_contango|contango|flat|backwardation] \
--margin-debt-yoy [VALUE] --margin-debt-date [YYYY-MM-DD] \
--output-dir reports/ \
--context "Consumer Confidence=[VALUE]" "Gold Price=[VALUE]"
# 200日移动平均线广度从 TraderMonty CSV 自动获取。
# 如需覆盖,请使用 --breadth-200dma [VALUE]。
# 使用 --no-auto-breadth 禁用自动获取。
脚本将执行以下操作:
向用户呈现生成的 Markdown 报告,重点突出:
---|---|---|---|---
1 | 派发日计数 | 25% | FMP API | 过去25个交易日内的机构卖出
2 | 领先股健康状况 | 20% | FMP API | 成长型ETF组合恶化
3 | 防御性板块轮动 | 15% | FMP API | 防御性板块相对于成长股的表现
4 | 市场广度背离 | 15% | 自动(CSV) + WebSearch | 200日移动平均线(自动)/ 50日移动平均线(WebSearch)广度与指数水平对比
5 | 指数技术状况 | 15% | FMP API | 移动平均线结构、反弹失败、更低的高点
6 | 情绪与投机 | 10% | FMP + WebSearch | VIX、看跌/看涨比率、期限结构
| 评分 | 区域 | 风险预算 | 操作 |
|---|---|---|---|
| 0-20 | 绿色(正常) | 100% | 正常操作 |
| 21-40 | 黄色(早期警告) | 80-90% | 收紧止损,减少新入场 |
| 41-60 | 橙色(风险升高) | 60-75% | 对弱势头寸获利了结 |
| 61-80 | 红色(高概率顶部) | 40-55% | 积极获利了结 |
| 81-100 | 严重(顶部形成) | 20-35% | 最大防御,对冲 |
必需: FMP API 密钥(免费层级足够:每次执行约33次调用) 可选: 用于广度和情绪的 WebSearch 数据(提高准确性)
market_top_YYYY-MM-DD_HHMMSS.jsonmarket_top_YYYY-MM-DD_HHMMSS.mdreferences/market_top_methodology.mdreferences/distribution_day_guide.mdreferences/historical_tops.mdmarket_top_methodology.md 以全面理解框架distribution_day_guide.mdhistorical_tops.md每周安装数
89
仓库
GitHub 星标数
398
首次出现
2026年2月16日
安全审计
安装于
cursor85
gemini-cli85
github-copilot84
amp84
codex84
kimi-cli84
Detect the probability of a market top formation using a quantitative 6-component scoring system (0-100). Integrates three proven market top detection methodologies:
Unlike the Bubble Detector (macro/multi-month evaluation), this skill focuses on tactical 2-8 week timing signals that precede 10-20% market corrections.
English:
Japanese:
Required:
$FMP_API_KEY environment variable or pass --api-key. Free tier sufficient (~33 API calls per execution).Optional:
--vix-term.Data Freshness: All manually collected data should be from the most recent 3 business days for accurate analysis.
| Aspect | Market Top Detector | Bubble Detector |
|---|---|---|
| Timeframe | 2-8 weeks | Months to years |
| Target | 10-20% correction | Bubble collapse (30%+) |
| Methodology | O'Neil/Minervini/Monty | Minsky/Kindleberger |
| Data | Price/Volume + Breadth | Valuation + Sentiment + Social |
| Score Range | 0-100 composite | 0-15 points |
Before running the Python script, collect the following data using WebSearch. Data Freshness Requirement: All data must be from the most recent 3 business days. Stale data degrades analysis quality.
1. S&P 500 Breadth (200DMA above %)
AUTO-FETCHED from TraderMonty CSV (no WebSearch needed)
The script fetches this automatically from GitHub Pages CSV data.
Override: --breadth-200dma [VALUE] to use a manual value instead.
Disable: --no-auto-breadth to skip auto-fetch entirely.
2. [REQUIRED] S&P 500 Breadth (50DMA above %)
Valid range: 20-100
Primary search: "S&P 500 percent stocks above 50 day moving average"
Fallback: "market breadth 50dma site:barchart.com"
Record the data date
3. [REQUIRED] CBOE Equity Put/Call Ratio
Valid range: 0.30-1.50
Primary search: "CBOE equity put call ratio today"
Fallback: "CBOE total put call ratio current"
Fallback: "put call ratio site:cboe.com"
Record the data date
4. [OPTIONAL] VIX Term Structure
Values: steep_contango / contango / flat / backwardation
Primary search: "VIX VIX3M ratio term structure today"
Fallback: "VIX futures term structure contango backwardation"
Note: Auto-detected from FMP API if VIX3M quote available.
CLI --vix-term overrides auto-detection.
5. [OPTIONAL] Margin Debt YoY %
Primary search: "FINRA margin debt latest year over year percent"
Fallback: "NYSE margin debt monthly"
Note: Typically 1-2 months lagged. Record the reporting month.
Run the script with collected data as CLI arguments:
python3 skills/market-top-detector/scripts/market_top_detector.py \
--api-key $FMP_API_KEY \
--breadth-50dma [VALUE] --breadth-50dma-date [YYYY-MM-DD] \
--put-call [VALUE] --put-call-date [YYYY-MM-DD] \
--vix-term [steep_contango|contango|flat|backwardation] \
--margin-debt-yoy [VALUE] --margin-debt-date [YYYY-MM-DD] \
--output-dir reports/ \
--context "Consumer Confidence=[VALUE]" "Gold Price=[VALUE]"
# 200DMA breadth is auto-fetched from TraderMonty CSV.
# Override with --breadth-200dma [VALUE] if needed.
# Disable with --no-auto-breadth to skip auto-fetch.
The script will:
Present the generated Markdown report to the user, highlighting:
---|---|---|---|---
1 | Distribution Day Count | 25% | FMP API | Institutional selling in last 25 trading days
2 | Leading Stock Health | 20% | FMP API | Growth ETF basket deterioration
3 | Defensive Sector Rotation | 15% | FMP API | Defensive vs Growth relative performance
4 | Market Breadth Divergence | 15% | Auto (CSV) + WebSearch | 200DMA (auto) / 50DMA (WebSearch) breadth vs index level
5 | Index Technical Condition | 15% | FMP API | MA structure, failed rallies, lower highs
6 | Sentiment & Speculation | 10% | FMP + WebSearch | VIX, Put/Call, term structure
| Score | Zone | Risk Budget | Action |
|---|---|---|---|
| 0-20 | Green (Normal) | 100% | Normal operations |
| 21-40 | Yellow (Early Warning) | 80-90% | Tighten stops, reduce new entries |
| 41-60 | Orange (Elevated Risk) | 60-75% | Profit-taking on weak positions |
| 61-80 | Red (High Probability Top) | 40-55% | Aggressive profit-taking |
| 81-100 | Critical (Top Formation) | 20-35% | Maximum defense, hedging |
Required: FMP API key (free tier sufficient: ~33 calls per execution) Optional: WebSearch data for breadth and sentiment (improves accuracy)
market_top_YYYY-MM-DD_HHMMSS.jsonmarket_top_YYYY-MM-DD_HHMMSS.mdreferences/market_top_methodology.mdreferences/distribution_day_guide.mdreferences/historical_tops.mdmarket_top_methodology.md for full framework understandingdistribution_day_guide.mdhistorical_tops.mdWeekly Installs
89
Repository
GitHub Stars
398
First Seen
Feb 16, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
cursor85
gemini-cli85
github-copilot84
amp84
codex84
kimi-cli84
Excel财务建模规范与xlsx文件处理指南:专业格式、零错误公式与数据分析
46,700 周安装