market-breadth-analyzer by tradermonty/claude-trading-skills
npx skills add https://github.com/tradermonty/claude-trading-skills --skill market-breadth-analyzer使用数据驱动的6分量评分系统(0-100分)量化市场广度的健康状况。利用 TraderMonty 公开的 CSV 数据来衡量市场在上涨或下跌中的参与广度。
分数方向: 100 = 健康状况最佳(广泛参与),0 = 极度疲弱。
无需 API 密钥 - 使用来自 GitHub Pages 的免费 CSV 数据。
英文:
日文:
requests 库(用于获取 CSV 数据)| 方面 | 市场广度分析器 | 广度图表分析师 |
|---|
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 数据源 | CSV(自动) | 图表图像(手动) |
| 需要 API | 无 | 无 |
| 输出 | 定量 0-100 分数 | 定性图表分析 |
| 组件 | 6 个评分维度 | 视觉模式识别 |
| 可重复性 | 完全可重现 | 依赖分析师 |
运行分析脚本:
python3 skills/market-breadth-analyzer/scripts/market_breadth_analyzer.py \
--detail-url "https://tradermonty.github.io/market-breadth-analysis/market_breadth_data.csv" \
--summary-url "https://tradermonty.github.io/market-breadth-analysis/market_breadth_summary.csv"
脚本将:
向用户呈现生成的 Markdown 报告,重点突出:
---|---|---|---
1 | 广度水平与趋势 | 25% | 当前 8MA 水平 + 200MA 趋势方向 + 8MA 方向修正
2 | 8MA 与 200MA 交叉 | 20% | 通过 MA 缺口和方向的动量
3 | 峰值/谷值周期 | 20% | 在广度周期中的位置
4 | 看跌信号 | 15% | 经过回测的看跌信号标志
5 | 历史百分位 | 10% | 当前与完整历史分布的对比
6 | 标普 500 背离 | 10% | 多窗口(20日 + 60日)价格与广度背离
权重重新分配: 如果任何分量数据不足(例如,未检测到峰值/谷值标记),则将其排除,并将其权重按比例重新分配给剩余分量。报告会显示原始权重和实际生效的权重。
分数历史: 综合分数会在多次运行间持久化保存(以数据日期为键)。当有多个观察值时,报告会包含趋势摘要(改善/恶化/稳定)。
| 分数 | 区域 | 股票敞口 | 行动 |
|---|---|---|---|
| 80-100 | 强劲 | 90-100% | 满仓,偏好增长/动量 |
| 60-79 | 健康 | 75-90% | 正常操作 |
| 40-59 | 中性 | 60-75% | 选择性建仓,收紧止损 |
| 20-39 | 疲弱 | 40-60% | 获利了结,增加现金 |
| 0-19 | 危急 | 25-40% | 资本保全,关注谷值 |
详细 CSV: market_breadth_data.csv
摘要 CSV: market_breadth_summary.csv
两者均公开托管在 GitHub Pages 上 - 无需身份验证。
market_breadth_YYYY-MM-DD_HHMMSS.jsonmarket_breadth_YYYY-MM-DD_HHMMSS.mdmarket_breadth_history.json(在多次运行间持久化,最多 20 条记录)references/breadth_analysis_methodology.md每周安装次数
97
代码仓库
GitHub 星标数
398
首次出现
2026年2月16日
安全审计
安装于
cursor93
gemini-cli93
github-copilot92
amp92
codex92
kimi-cli92
Quantify market breadth health using a data-driven 6-component scoring system (0-100). Uses TraderMonty's publicly available CSV data to measure how broadly the market is participating in a rally or decline.
Score direction: 100 = Maximum health (broad participation), 0 = Critical weakness.
No API key required - uses freely available CSV data from GitHub Pages.
English:
Japanese:
requests library (for fetching CSV data)| Aspect | Market Breadth Analyzer | Breadth Chart Analyst |
|---|---|---|
| Data Source | CSV (automated) | Chart images (manual) |
| API Required | None | None |
| Output | Quantitative 0-100 score | Qualitative chart analysis |
| Components | 6 scored dimensions | Visual pattern recognition |
| Repeatability | Fully reproducible | Analyst-dependent |
Run the analysis script:
python3 skills/market-breadth-analyzer/scripts/market_breadth_analyzer.py \
--detail-url "https://tradermonty.github.io/market-breadth-analysis/market_breadth_data.csv" \
--summary-url "https://tradermonty.github.io/market-breadth-analysis/market_breadth_summary.csv"
The script will:
Present the generated Markdown report to the user, highlighting:
---|---|---|---
1 | Breadth Level & Trend | 25% | Current 8MA level + 200MA trend direction + 8MA direction modifier
2 | 8MA vs 200MA Crossover | 20% | Momentum via MA gap and direction
3 | Peak/Trough Cycle | 20% | Position in breadth cycle
4 | Bearish Signal | 15% | Backtested bearish signal flag
5 | Historical Percentile | 10% | Current vs full history distribution
6 | S&P 500 Divergence | 10% | Multi-window (20d + 60d) price vs breadth divergence
Weight Redistribution: If any component lacks sufficient data (e.g., no peak/trough markers detected), it is excluded and its weight is proportionally redistributed among the remaining components. The report shows both original and effective weights.
Score History: Composite scores are persisted across runs (keyed by data date). The report includes a trend summary (improving/deteriorating/stable) when multiple observations are available.
| Score | Zone | Equity Exposure | Action |
|---|---|---|---|
| 80-100 | Strong | 90-100% | Full position, growth/momentum favored |
| 60-79 | Healthy | 75-90% | Normal operations |
| 40-59 | Neutral | 60-75% | Selective positioning, tighten stops |
| 20-39 | Weakening | 40-60% | Profit-taking, raise cash |
| 0-19 | Critical | 25-40% | Capital preservation, watch for trough |
Detail CSV: market_breadth_data.csv
Summary CSV: market_breadth_summary.csv
Both are publicly hosted on GitHub Pages - no authentication required.
market_breadth_YYYY-MM-DD_HHMMSS.jsonmarket_breadth_YYYY-MM-DD_HHMMSS.mdmarket_breadth_history.json (persists across runs, max 20 entries)references/breadth_analysis_methodology.mdWeekly Installs
97
Repository
GitHub Stars
398
First Seen
Feb 16, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
cursor93
gemini-cli93
github-copilot92
amp92
codex92
kimi-cli92
Python PDF处理教程:合并拆分、提取文本表格、创建PDF文件
62,800 周安装