Communitygithub.com

tradermonty/uptrend-analyzer

利用 Monty 的 Uptrend Ratio Dashboard 数据分析市场广度,诊断当前市场环境。生成 0-100 综合评分,包含 5 个组成部分(广度、行业参与度、轮动、动量、历史背景)。适合在市场广度、上涨比率或是否应支持权益敞口等问题时使用。无需 API 密钥。

uptrend-analyzer 是什么?

Uptrend Analyzer 是一个基于 Monty 的 Uptrend Ratio Dashboard 数据的市场广度分析工具,覆盖约 2800 只美国股票和 11 个行业板块。它通过免费的 GitHub CSV 数据(无需 API 密钥)计算五个维度的评分:整体市场广度(30%)、行业参与度(25%)、周期性/防御性行业轮动(15%)、动量斜率与加速度(20%)、历史百分位排名(10%),最终生成 0-100 的综合评分。工具将评分划分为强牛市(80-100)到熊市(0-19)五个区间,并提供相应的权益敞口建议(满仓、正常、减仓、防御、保本)。此外还包含高级警告系统(例如滞后周期、高行业差异、背离),可根据条件对建议进行惩罚性调整。动量平滑使用 EMA(3),加速计算基于 10v10 窗口(数据不足时降级为 5v5)。历史背景部分提供基于样本量、市场制度覆盖率和数据近因的置信度指示器。该技能适用于大多数 AI Agent 平台(如 Claude Code、Cursor、Codex 等),只需 Python 3.9+ 和 requests 库即可运行。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/tradermonty/claude-trading-skills/tree/main/skills/uptrend-analyzer

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Uptrend Analyzer 技能

用途

使用 Monty 的 Uptrend Ratio Dashboard 诊断市场广度健康状况,该仪表盘追踪约 2800 只美国股票,覆盖 11 个行业板块。生成 0-100 综合评分(越高越健康),并附有敞口建议。

与 Market Top Detector(基于 API 的风险评分工具)不同,本技能使用免费的 CSV 数据评估“参与广度”——即市场上涨是广泛还是狭窄。

何时使用该技能

中文:

  • 用户询问“市场广度健康吗?”或“上涨的广度如何?”
  • 用户希望评估各板块的上涨比率
  • 用户询问市场参与度或广度状况
  • 用户需要基于广度分析的敞口建议
  • 用户提及 Monty 的 Uptrend Dashboard 或上涨比率

English(原始):

  • User asks "Is the market breadth healthy?" or "How broad is the rally?"
  • User wants to assess uptrend ratios across sectors
  • User asks about market participation or breadth conditions
  • User needs exposure guidance based on breadth analysis
  • User references Monty's Uptrend Dashboard or uptrend ratios

日本語(参考):

  • 「市場のブレドスは健全?」「上昇の裾野は広い?」
  • セクター別のアップトレンド比率を確認したい
  • 相場参加率・ブレドス状況を診断したい
  • ブレドス分析に基づくエクスポージャーガイダンスが欲しい
  • Montyのアップトレンドダッシュボードについて質問

前提条件

  • Python 3.9+ 并安装 requests 库(CSV 解析使用标准库 csv / io 模块)
  • 网络连接 以从 GitHub 获取 CSV 数据(无需 API 密钥)
  • 不需要付费 API 订阅

与 Market Top Detector 的区别

方面Uptrend AnalyzerMarket Top Detector
分数方向越高越健康越高风险越大
数据源免费 GitHub CSVFMP API(付费)
关注点广度参与度顶部形成风险
API 密钥不需要需要(FMP)
方法论Monty Uptrend RatiosO'Neil / Minervini / Monty

执行工作流

阶段 1:执行 Python 脚本

运行分析脚本(无需 API 密钥):

python3 skills/uptrend-analyzer/scripts/uptrend_analyzer.py

脚本将:

  1. 从 Monty 的 GitHub 仓库下载 CSV 数据
  2. 计算 5 个组成部分的分数
  3. 生成综合评分和报告

阶段 2:呈现结果

将生成的 Markdown 报告呈现给用户,重点突出:

  • 综合评分及区间分类
  • 敞口建议(满仓 / 正常 / 减仓 / 防御 / 保本)
  • 行业热力图,展示最强和最弱的行业
  • 关键的动量和轮动信号

5 部分评分系统

#组成部分权重关键信号
1市场广度(整体)30%比率水平 + 趋势方向
2行业参与度25%上涨行业数量 + 比率离散度
3行业轮动15%周期性 vs 防御性平衡
4动量20%斜率方向 + 加速度
5历史背景10%历史百分位排名

评分区间

分数区间敞口建议
80-100强牛市满仓(100%)
60-79牛市正常(80-100%)
40-59中性减仓(60-80%)
20-39谨慎防御(30-60%)
0-19熊市保本(0-30%)

7 级区间细分

每个评分区间进一步细分为子区间,以进行更精细的评估:

分数区间细项颜色
80-100强牛市绿色
70-79牛市-上段浅绿色
60-69牛市-下段浅绿色
40-59中性黄色
30-39谨慎-上段橙色
20-29谨慎-下段橙色
0-19熊市红色

警告系统

活跃的警告会触发敞口惩罚,即使综合评分较高,也会收紧建议:

警告条件惩罚
滞后周期大宗商品均值 > 周期性和防御性两者-5
高离散度最大-最小行业比率差值 > 40 个百分点-3
背离组内标准差 > 8 个百分点,差值 > 20 个百分点,或趋势异议者-3

惩罚可叠加(最大 -10)+ 多警告折扣(当活跃警告 ≥2 时 +1)。在综合评分后应用。

动量平滑

斜率值在进行评分前使用 EMA(3)(指数移动平均,跨度=3)进行平滑。加速度通过比较平滑斜率近期 10 个点均值与先前 10 个点均值(10v10 窗口)计算,当数据点少于 20 个时回退为 5v5。

历史置信度指标

历史背景部分包含基于以下因素的置信度评估:

  • 样本量: 可用的历史数据点数量
  • 制度覆盖: 观察到的不同市场制度(牛市 / 熊市 / 中性)的比例
  • 近因性: 最新数据点距当前的时间

置信度级别:高、中、低。


API 要求

必需的 API: 无(使用免费的 GitHub CSV 数据)

输出文件

  • JSON:uptrend_analysis_YYYY-MM-DD_HHMMSS.json
  • Markdown:uptrend_analysis_YYYY-MM-DD_HHMMSS.md

参考文档

references/uptrend_methodology.md

  • Uptrend Ratio 定义与阈值
  • 5 部分评分方法论
  • 行业分类(周期性 / 防御性 / 大宗商品)
  • 历史校准注释

何时加载参考文档

  • 首次使用: 加载 uptrend_methodology.md 以全面理解框架
  • 常规执行: 不需要参考文档——脚本自行处理评分

Individual skills in this repo

This repo contains 14 individual skills — each has its own dedicated page.

tradermonty/backtest-expert

Expert guidance for systematic backtesting of trading strategies. Use when developing, testing, stress-testing, or validating quantitative trading strategies. Covers "beating ideas to death" methodology, parameter robustness testing, slippage modeling, bias prevention, and interpreting backtest results. Applicable when user asks about backtesting, strategy validation, robustness testing, avoiding overfitting, or systematic trading development.

tradermonty/market-environment-analysis

Comprehensive market environment analysis and reporting tool. Analyzes global markets including US, European, Asian markets, forex, commodities, and economic indicators. Provides risk-on/risk-off assessment, sector analysis, and technical indicator interpretation. Triggers on keywords like market analysis, market environment, global markets, trading environment, market conditions, investment climate, market sentiment, forex analysis, stock market analysis, 相場環境, 市場分析, マーケット状況, 投資環境.

tradermonty/market-news-analyst

This skill should be used when analyzing recent market-moving news events and their impact on equity markets and commodities. Use this skill when the user requests analysis of major financial news from the past 10 days, wants to understand market reactions to monetary policy decisions (FOMC, ECB, BOJ), needs assessment of geopolitical events' impact on commodities, or requires comprehensive review of earnings announcements from mega-cap stocks. The skill automatically collects news using WebSearch/WebFetch tools and produces impact-ranked analysis reports. All analysis thinking and output are conducted in English.

tradermonty/options-strategy-advisor

Options trading strategy analysis and simulation tool. Provides theoretical pricing using Black-Scholes model, Greeks calculation, strategy P/L simulation, and risk management guidance. Use when user requests options strategy analysis, covered calls, protective puts, spreads, iron condors, earnings plays, or options risk management. Includes volatility analysis, position sizing, and earnings-based strategy recommendations. Educational focus with practical trade simulation.

tradermonty/portfolio-manager

Comprehensive portfolio analysis using Alpaca MCP Server integration to fetch holdings and positions, then analyze asset allocation, risk metrics, individual stock positions, diversification, and generate rebalancing recommendations. Use when user requests portfolio review, position analysis, risk assessment, performance evaluation, or rebalancing suggestions for their brokerage account.

tradermonty/scenario-analyzer

Skill that analyzes 18-month scenarios from a news headline. Runs the primary analysis with the scenario-analyst agent and obtains a second opinion with the strategy-reviewer agent. Generates a comprehensive English report covering 1st/2nd/3rd-order impacts, recommended stocks, and a critical review. Example: /scenario-analyzer "Fed raises rates by 50bp" Triggers: news analysis, scenario analysis, 18-month outlook, medium-to-long-term investment strategy

tradermonty/sector-analyst

This skill should be used when analyzing sector rotation patterns and market cycle positioning. It fetches sector uptrend data from CSV (no API key required) and optionally accepts chart images for supplementary analysis. Use this skill when the user requests sector rotation analysis, cyclical vs defensive assessment, overbought/oversold identification, or market cycle phase estimation. All analysis and output are conducted in English.

tradermonty/signal-postmortem

Record and analyze post-trade outcomes for signals generated by edge pipeline and other skills. Track false positives, missed opportunities, and regime mismatches. Feed results back to edge-signal-aggregator weights and skill improvement backlog.

tradermonty/skill-designer

Design new Claude skills from structured idea specifications. Use when the skill auto-generation pipeline needs to produce a Claude CLI prompt that creates a complete skill directory (SKILL.md, references, scripts, tests) following repository conventions.

tradermonty/skill-idea-miner

Mine Claude Code session logs for skill idea candidates. Use when running the weekly skill generation pipeline to extract, score, and backlog new skill ideas from recent coding sessions.

tradermonty/theme-detector

Detect and analyze trending market themes across sectors. Use when user asks about current market themes, trending sectors, sector rotation, thematic investing, what themes are hot or cold, or wants to identify bullish and bearish market narratives with lifecycle analysis.

tradermonty/us-stock-analysis

Comprehensive US stock analysis including fundamental analysis (financial metrics, business quality, valuation), technical analysis (indicators, chart patterns, support/resistance), stock comparisons, and investment report generation. Use when user requests analysis of US stock tickers (e.g., "analyze AAPL", "compare TSLA vs NVDA", "give me a report on Microsoft"), evaluation of financial metrics, technical chart analysis, or investment recommendations for American stocks.

tradermonty/value-dividend-screener

Screen US stocks for high-quality dividend opportunities combining value characteristics (P/E ratio under 20, P/B ratio under 2), attractive yields (3% or higher), and consistent growth (dividend/revenue/EPS trending up over 3 years). Supports two-stage screening using FINVIZ Elite API for efficient pre-filtering followed by FMP API for detailed analysis. Use when user requests dividend stock screening, income portfolio ideas, or quality value stocks with strong fundamentals.

tradermonty/vcp-screener

Screen S&P 500 stocks for Mark Minervini's Volatility Contraction Pattern (VCP) and detect historical VCPs in a single ticker's price path. Identifies Stage 2 uptrend stocks forming tight bases with contracting volatility near breakout pivot points; in historical single-ticker mode walks a multi-year history and emits every VCP that formed with forward-outcome stats (breakout / stop-hit / timeout). Use when user requests VCP screening, Minervini-style setups, tight base patterns, volatility contraction breakout candidates, Stage 2 momentum stock scanning, or historical VCP pattern study on a specific ticker (e.g. FIX, TSLA).

相关技能