Communitygithub.com

tradermonty/uptrend-analyzer

使用 Monty 的上升趨勢比率儀表板資料分析市場廣度,判斷當前市場環境。從 5 個組成部分(廣度、板塊參與度、輪動、動能、歷史背景)產生 0-100 的綜合評分。當使用者詢問市場廣度、上升趨勢比率或市場環境是否支持股票曝險時使用。無需 API 金鑰。

uptrend-analyzer 是什麼?

Uptrend Analyzer 技能利用 Monty 的上升趨勢比率儀表板(追蹤約 2,800 檔美國股票,涵蓋 11 個板塊)來診斷市場廣度健康狀況。它會產生一個 0-100 的綜合評分(分數越高越健康),並提供曝險指引。此技能不同於 Market Top Detector(一個基於 API 的風險評分工具),它使用免費的 CSV 資料來評估「參與廣度」——也就是市場漲勢是廣泛還是狹窄。它不需要任何 API 金鑰。該技能包含一個五部分的評分系統:市場廣度(30%)、板塊參與度(25%)、板塊輪動(15%)、動能(20%)和歷史背景(10%)。輸出包含一個 JSON 檔案和一個 Markdown 報告,其中包含綜合評分、區間分類、板塊熱圖以及關鍵的動能和輪動訊號。它還包含一個基於板塊間差異和週期性/防禦性平衡的警告系統。此技能適用於 Claude Code、Cursor 或 Codex 等 AI 代理平台,並支援繁體中文 (zh-TW)。

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

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

上升趨勢分析技能

目的

使用 Monty 的上升趨勢比率儀表板(追蹤約 2,800 檔美國股票,涵蓋 11 個板塊)來診斷市場廣度健康狀況。產生一個 0-100 的綜合評分(分數越高越健康),並提供曝險指引。

與 Market Top Detector(基於 API 的風險評分工具)不同,此技能使用免費的 CSV 資料來評估「參與廣度」——即市場漲勢是廣泛還是狹窄。

何時使用此技能

繁體中文:

  • 使用者詢問「市場廣度健康嗎?」或「這波漲勢的覆蓋面有多廣?」
  • 使用者想要評估各板塊的上升趨勢比率
  • 使用者詢問市場參與度或廣度狀況
  • 使用者需要基於廣度分析的曝險指引
  • 使用者提及 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 上升趨勢比率O'Neil/Minervini/Monty

執行工作流程

第一階段:執行 Python 腳本

執行分析腳本(無需 API 金鑰):

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

腳本將會:

  1. 從 Monty 的 GitHub 儲存庫下載 CSV 資料
  2. 計算 5 個組成部分的分數
  3. 產生綜合評分和報告

第二階段:呈現結果

向使用者呈現產生的 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 需求

所需: 無(使用免費的 GitHub CSV 資料)

輸出檔案

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

參考文件

references/uptrend_methodology.md

  • 上升趨勢比率定義和閾值
  • 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).

相關技能