backtest-expert
Expert guidance for systematic backtesting of trading strategies. Use when developing, testing, stress-testing, or validating…
Assesses heuristic market top risk using O'Neil Distribution Days, Minervini Leading Stock Deterioration, and Monty Defensive Sector Rotation. Generates a 0-100 composite score with risk zone classification. Use when user asks about market top risk, distribution days, defensive
Claude Code
$ npx -y skills add tradermonty/claude-trading-skills --skill market-top-detector --agent claude-code
Codex
$ npx skills add tradermonty/claude-trading-skills --skill market-top-detector -a codex -y
Cursor
$ npx skills add tradermonty/claude-trading-skills --skill market-top-detector -a cursor -y
Gemini CLI
$ npx skills add tradermonty/claude-trading-skills --skill market-top-detector -a gemini-cli -y
GitHub Copilot
$ npx skills add tradermonty/claude-trading-skills --skill market-top-detector -a github-copilot -y
OpenCode
$ npx skills add tradermonty/claude-trading-skills --skill market-top-detector -a opencode -y
Windsurf
$ npx skills add tradermonty/claude-trading-skills --skill market-top-detector -a windsurf -y
name: market-top-detector description: Assesses heuristic market top risk using O'Neil Distribution Days, Minervini Leading Stock Deterioration, and Monty Defensive Sector Rotation. Generates a 0-100 composite score with risk zone classification. Use when user asks about market top risk, distribution days, defensive rotation, leadership breakdown, or whether to reduce equity exposure. Focuses on 2-8 week tactical timing signals for 10-20% corrections.
Assess heuristic market top risk using a 6-component scoring system (0-100). Integrates three market risk methodologies:
1. **O'Neil** - Distribution Day accumulation (institutional selling) 2. **Minervini** - Leading stock deterioration pattern 3. **Monty** - Defensive sector rotation signal
Unlike the Bubble Detector (macro/multi-month evaluation), this skill focuses on **tactical 2-8 week timing signals** that precede 10-20% market corrections.
Treat the 0-100 composite as a **heuristic risk score**, not an estimated event probability. A score of 70 does not mean a 70% chance of a top. Risk-budget percentages are policy heuristics, not measured outcome frequencies. Historical patterns are retrospective estimates, not point-in-time evidence. Report **no comparable episode** when any component is unavailable/invalid or nearest-pattern weighted RMS exceeds 15 points. This tolerance is a predeclared heuristic, not an empirically validated similarity threshold. Follow [the point-in-time evaluation protocol](references/point_in_time_evaluation.md) before making calibration claims. No measured calibration results are supplied.
**English:**
**Japanese:**
**Required:**
**Optional:**
**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" Direct fallback when search snippets are poor: fetch `https://www.barchart.com/stocks/quotes/$S5FI/overview` and extract the embedded `lastPrice` / `tradeTime` for “S&P 500 Stocks Above 50-Day Average”. 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" Direct fallback when Cboe CSV endpoints are stale: fetch `https://ycharts.com/indicators/cboe_equity_put_call_ratio` and parse the “Last Value” / “Latest Period” table fields. Treat this as a secondary source and cite it in freshness notes. 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: 1. Fetch S&P 500, QQQ, VIX quotes and history from FMP API 2. Fe
Data handling: Privacy policy · Security policy Claude Trading Skills started as a personal project to use AI to improve my own trading process. Claude Trading Skills is a Claude Skills-based trading workflow toolkit for time-constrained individual investors.
Expert guidance for systematic backtesting of trading strategies. Use when developing, testing, stress-testing, or validating…
This skill should be used when analyzing market breadth charts, specifically the S&P 500 Breadth Index (200-Day MA based) and the…
Generate Minervini-style breakout trade plans from VCP screener output with worst-case risk calculation, portfolio heat…
Screen US stocks using William O'Neil's CANSLIM growth stock methodology. Use when user requests CANSLIM stock screening, growth…
Synthesize the three Jason Shapiro contrarian-pipeline verdicts (COT crowding, news-reaction failure, weekly price-action…
Detect crowded speculative positioning in CFTC futures markets (COT report analysis) to find contrarian setups using Jason…
Complete, populate and fill out 3-statement financial model templates (Income Statement, Balance Sheet, Cash Flow Statement) .…
Complete, populate and fill out 3-statement financial model templates (Income Statement, Balance Sheet, Cash Flow Statement) .…