Detect market top probability (0-100 score) via distribution days, leading stock deterioration, defensive rotation. For correction timing, reducing exposure decisions.
Ships in trading-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
6-dimension quantitative scoring (0-100) for 2-8 week tactical correction signals. Requires FMP API key (~33 calls per run).
Collect these values before running the script:
| Search Query | CLI Flag | Example |
|---|---|---|
| "S&P 500 stocks above 200 day moving average percent" | --breadth-200dma | 62.26 |
| "S&P 500 stocks above 50 day moving average percent" | --breadth-50dma | 55.0 |
| "CBOE equity put call ratio current" | --put-call | 0.67 |
| "VIX term structure contango backwardation" | --vix-term | contango |
| (optional) "FINRA margin debt latest year over year" | --margin-debt-yoy | 36.0 |
python3 .claude/skills/market-top-detector/scripts/market_top_detector.py \
--api-key $FMP_API_KEY \
--breadth-200dma [VALUE] --breadth-50dma [VALUE] \
--put-call [VALUE] --vix-term [steep_contango|contango|flat|backwardation]
The script fetches index/ETF data from FMP API, calculates all 6 dimensions, and outputs JSON + Markdown reports.
Show the markdown report. Highlight composite score, risk zone, strongest warning, and recommended actions.
references/market_top_methodology.md — O'Neil/Minervini/Monty framework detailsreferences/distribution_day_guide.md — Distribution day counting rulesreferences/historical_tops.md — 2000/2007/2018/2022 case studiesreferences/distribution_day_guide.md (opens in a new tab)references/historical_tops.md (opens in a new tab)references/market_top_methodology.md (opens in a new tab)scripts/calculators/__init__.py (opens in a new tab)scripts/calculators/breadth_calculator.py (opens in a new tab)scripts/calculators/defensive_rotation_calculator.py (opens in a new tab)scripts/calculators/distribution_day_calculator.py (opens in a new tab)scripts/calculators/index_technical_calculator.py (opens in a new tab)scripts/calculators/leading_stock_calculator.py (opens in a new tab)scripts/calculators/sentiment_calculator.py (opens in a new tab)scripts/fmp_client.py (opens in a new tab)scripts/market_top_detector.py (opens in a new tab)scripts/report_generator.py (opens in a new tab)scripts/scorer.py (opens in a new tab)scripts/tests/conftest.py (opens in a new tab)scripts/tests/helpers.py (opens in a new tab)scripts/tests/test_breadth.py (opens in a new tab)scripts/tests/test_defensive_rotation.py (opens in a new tab)scripts/tests/test_distribution_day.py (opens in a new tab)scripts/tests/test_index_technical.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
/trading-skills:market-top-detectorfrom trading-skills
npx claudepluginhub quantumiodb/quantwise --plugin trading-skills29 skills in this plugin
/backtest-expertExpert 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./breadth-chart-analystThis skill should be used when analyzing market breadth charts, specifically the S&P 500 Breadth Index (200-Day MA based) and the US Stock Market Uptrend Stock Ratio charts. Use this skill when the user provides breadth chart images for analysis, requests market breadth assessment, positioning strategy recommendations, or wants to understand medium-term strategic and short-term tactical market outlook based on breadth indicators. All analysis and output are conducted in English./canslim-screenerScreen US stocks using William O'Neil's CANSLIM growth stock methodology. Use when user requests CANSLIM stock screening, growth stock analysis, momentum stock identification, or wants to find stocks with strong earnings and price momentum following O'Neil's investment system.Other plugins' skills for the same job