Przejdź do treści
Biblioteka skilli
Finanse i księgowość · Analiza

market-breadth-analyzer

/market-breadth-analyzer

Mierzy kondycję szerokości rynku na publicznych danych CSV TraderMonty i generuje wynik złożony 0-100 z sześciu składników, bez klucza API, aby ocenić, czy wzrost jest szeroki.

Licencja
MIT
Ostatnia zmiana repozytorium
26.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
25
Skrypty
23
Komentarze HTML
0
Adresy URL w SKILL.md
2
Przestarzałość

Brak sygnałów. Repozytorium zmienione 26.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co sprawdzić przed instalacją
  • 23 skrypty w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.

Skrypty: scripts/calculators/__init__.py, scripts/calculators/bearish_signal_calculator.py, scripts/calculators/cycle_calculator.py, scripts/calculators/divergence_calculator.py, scripts/calculators/historical_context_calculator.py, scripts/calculators/ma_crossover_calculator.py, scripts/calculators/trend_level_calculator.py, scripts/csv_client.py

Co robi i kiedy

Mierzy kondycję szerokości rynku na publicznych danych CSV TraderMonty i generuje wynik złożony 0-100 z sześciu składników, bez klucza API, aby ocenić, czy wzrost jest szeroki.

Oryginalny opis (EN)

Quantifies market breadth health using TraderMonty's public CSV data. Generates a 0-100 composite score across 6 components (100 = healthy). No API key required. Use when user asks about market breadth, participation rate, advance-decline health, whether the rally is broad-based, or general market health assessment.

Jak działa

  1. Purpose
  2. When to Use This Skill
  3. Prerequisites
  4. Difference from Breadth Chart Analyst
  5. Execution Workflow
  6. 6-Component Scoring System
  7. Health Zone Mapping (100 = Healthy)
  8. Data Sources
  9. Output Files
  10. Reference Documents
Sekcje z nagłówków SKILL.md, w oryginale · 134 linii, 812 słów
Podgląd SKILL.md
---
name: market-breadth-analyzer
description: Quantifies market breadth health using TraderMonty's public CSV data. Generates a 0-100 composite score across 6 components (100 = healthy). No API key required. Use when user asks about market breadth, participation rate, advance-decline health, whether the rally is broad-based, or general market health assessment.
---

# Market Breadth Analyzer Skill

## Purpose

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.

## When to Use This Skill

**English:**
- User asks "Is the market rally broad-based?" or "How healthy is market breadth?"
- User wants to assess market participation rate
- User asks about advance-decline indicators or breadth thrust
- User wants to know if the market is narrowing (fewer stocks participating)
- User asks about equity exposure levels based on breadth conditions

**Japanese:**
- 「マーケットブレッドスはどうですか?」「市場の参加率は?」
- 「上昇は広がっている?」「一部の銘柄だけの上昇?」
- ブレッドス指標に基づくエクスポージャー判断
- 市場の健康度をデータで確認したい

## Prerequisites

- **Python 3.9+** with `requests` library (for fetching CSV data)
- **Internet access** to reach GitHub Pages URLs
- **No API keys required** - uses freely available public CSV data

## Difference from Breadth Chart Analyst

| 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 |

---

## Execution Workflow

### Phase 1: Execute Python Script

Run the analysis script. If using a nested or date-stamped `--output-dir` in cron runs, create it first; the history writer expects the directory to already exist.

```bash
mkdir -p reports/<routine-or-date>
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" \
  --output-dir reports/<routine-or-date>
```

For a simple ad-hoc run, omit `--output-dir` or use an existing directory. In scheduled cron runs from the repository root, prefer a repo-relative output directory such as `reports/after-close-YYYY-MM-DD` rather than an absolute path. If an absolute nested `--output-dir` unexpectedly fails at the history-writing step despite the directory existing, rerun once with the equivalent repo-relative path before treating the breadth analysis as unavailable.

The script will:
1. Fetch detail CSV (~2,500 rows, 2016-present) and summary CSV (8 metrics)
2. Validate data freshness (warn if > 5 days old)
3. Calculate all 6 component scores (with automatic weight redistribution if any component lacks data)
4. Generate composite score with zone classification
5. Track score history and compute trend (improving/deteriorating/stable)
6. Output JSON and Markdown reports

### Phase 2: Present Results

Present the generated Markdown report to the user, highlighting:
- Composite score and health zone
- Strongest and weakest components
- Recommended equity exposure level
- Key breadth levels to watch
- Any data freshness warnings

---

## 6-Component Scoring System

| # | Component | Weight | Key Signal |
|---|-----------|--------|------------|
| 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.

## Health Zone Mapping (100 = Healthy)

| 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 |

---

## Data Sources

**Detail CSV:** `market_breadth_data.csv`
- ~2,500 rows from 2016-02 to present
- Columns: Date, S&P500_Price, Breadth_Index_Raw, Breadth_Index_200MA, Breadth_Index_8MA, Breadth_200MA_Trend, Bearish_Signal, Is_Peak, Is_Trough, Is_Trough_8MA_Below_04

**Summary CSV:** `market_breadth_summary.csv`
- 8 aggregate metrics (average peaks, average troughs, counts, analysis period)

Both are publicly hosted on GitHub Pages - no authentication required.

## Output Files

- JSON: `market_breadth_YYYY-MM-DD_HHMMSS.json`
- Markdown: `market_breadth_YYYY-MM-DD_HHMMSS.md`
- History: `market_breadth_history.json` (persists across runs, max 20 entries)

## Reference Documents

### `references/breadth_analysis_methodology.md`
- Full methodology with component scoring details
- Threshold explanations and zone definitions
- Historical context and interpretation guide

### When to Load References
- **First use:** Load methodology reference for framework understanding
- **Regular execution:** References not needed - script handles scoring
Pliki w paczce (25)
  • SKILL.md 6 KB
  • references/breadth_analysis_methodology.md 14 KB
  • scripts/csv_client.py 8 KB
  • scripts/history_tracker.py 3 KB
  • scripts/market_breadth_analyzer.py 11 KB
  • scripts/report_generator.py 15 KB
  • scripts/scorer.py 9 KB
  • scripts/calculators/__init__.py 1 KB
  • scripts/calculators/bearish_signal_calculator.py 5 KB
  • scripts/calculators/cycle_calculator.py 5 KB
  • scripts/calculators/divergence_calculator.py 5 KB
  • scripts/calculators/historical_context_calculator.py 3 KB
  • scripts/calculators/ma_crossover_calculator.py 3 KB
  • scripts/calculators/trend_level_calculator.py 4 KB
  • scripts/tests/conftest.py 2 KB
  • scripts/tests/test_bearish_signal_calculator.py 5 KB
  • scripts/tests/test_csv_client.py 7 KB
  • scripts/tests/test_cycle_calculator.py 2 KB
  • scripts/tests/test_divergence_calculator.py 5 KB
  • scripts/tests/test_historical_context_calculator.py 4 KB
  • scripts/tests/test_history_tracker.py 4 KB
  • scripts/tests/test_ma_crossover_calculator.py 4 KB
  • scripts/tests/test_report_generator.py 15 KB
  • scripts/tests/test_scorer.py 4 KB
  • scripts/tests/test_trend_level_calculator.py 5 KB

Wersje

RepozytoriumWynikLicencja
Ta strona · Serennity007/awesome-stock-quant-skills100MIT
tradermonty/claude-trading-skills100MIT
mphinance/alpha-skills100MIT

Identyczna treść występuje jeszcze w 1 innych folderach na GitHubie. Tu pokazujemy jedną, najlepiej ocenioną kopię.

Migawka bazy z 28.10.2026 · wersja paczki d889460445eb (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100uptrend-analyzer
    Analizuje szerokość rynku na danych Monty's Uptrend Ratio Dashboard i liczy wynik złożony 0-100 z pięciu komponentów, bez klucza API.
  • 100uptrend-analyzer
    Analizuje szerokość rynku na danych Monty's Uptrend Ratio Dashboard i wylicza wynik 0 do 100 z pięciu składników, by ocenić, czy otoczenie rynkowe sprzyja ekspozycji na akcje.
  • 100uptrend-analyzer
    Ocenia szerokość rynku akcji na podstawie danych Monty's Uptrend Ratio Dashboard i wystawia wynik od 0 do 100 z pięciu składników.
  • 100crypto-regime-analyzer
    Ocenia kondycję reżimu rynku krypto na darmowych danych publicznych (CoinGecko, finansowanie Binance): wynik 0 do 100 z sześciu składników i rekomendacja postawy.
  • 100market-breadth
    Ocenia wewnętrzną kondycję wzrostu lub spadku rynku: linie advance-decline, nowe szczyty i dołki, odsetek spółek powyżej średnich i rozbieżność indeksu ze składnikami.
  • 95breadth-chart-analyst
    Analizuje wykresy szerokości rynku S&P 500 i udziału rosnących spółek, wskazując perspektywy rynku w ujęciu taktycznym i strategicznym.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.