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

uptrend-analyzer

/uptrend-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.

Licencja
MIT
Ostatnia zmiana repozytorium
24.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
28
Skrypty
25
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 24.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ą
  • 25 skryptów w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.

Skrypty: scripts/calculators/__init__.py, scripts/calculators/historical_context_calculator.py, scripts/calculators/market_breadth_calculator.py, scripts/calculators/momentum_calculator.py, scripts/calculators/sector_participation_calculator.py, scripts/calculators/sector_rotation_calculator.py, scripts/data_fetcher.py, scripts/provenance_contract.py

Co robi i kiedy

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.

Oryginalny opis (EN)

Analyzes market breadth using Monty's Uptrend Ratio Dashboard data to diagnose the current market environment. Generates a 0-100 composite score from 5 components (breadth, sector participation, rotation, momentum, historical context). Use when asking about market breadth, uptrend ratios, or whether the market environment supports equity exposure. No API key required.

Jak działa

  1. Purpose
  2. When to Use This Skill
  3. Prerequisites
  4. Difference from Market Top Detector
  5. Execution Workflow
  6. 5-Component Scoring System
  7. Scoring Zones
  8. API Requirements
  9. Output Files
  10. Reference Documents
Sekcje z nagłówków SKILL.md, w oryginale · 164 linii, 875 słów
Podgląd SKILL.md
---
name: uptrend-analyzer
description: Analyzes market breadth using Monty's Uptrend Ratio Dashboard data to diagnose the current market environment. Generates a 0-100 composite score from 5 components (breadth, sector participation, rotation, momentum, historical context). Use when asking about market breadth, uptrend ratios, or whether the market environment supports equity exposure. No API key required.
---

# Uptrend Analyzer Skill

## Purpose

Diagnose market breadth health using Monty's Uptrend Ratio Dashboard, which tracks ~2,800 US stocks across 11 sectors. Generates a 0-100 composite score (higher = healthier) with exposure guidance.

Unlike the Market Top Detector (API-based risk scorer), this skill uses free CSV data to assess "participation breadth" - whether the market's advance is broad or narrow.

## When to Use This Skill

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

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

## Prerequisites

- **Python 3.9+** with the `requests` library (CSV parsing uses the stdlib `csv`/`io` modules)
- **Internet connection** to fetch CSV data from GitHub (no API key required)
- No paid API subscriptions needed

## Difference from Market Top Detector

| Aspect | Uptrend Analyzer | Market Top Detector |
|--------|-----------------|-------------------|
| Score Direction | Higher = healthier | Higher = riskier |
| Data Source | Free GitHub CSV | FMP API (paid) |
| Focus | Breadth participation | Top formation risk |
| API Key | Not required | Required (FMP) |
| Methodology | Monty Uptrend Ratios | O'Neil/Minervini/Monty |

---

## Execution Workflow

### Phase 1: Execute Python Script

Run the analysis script (no API key needed):

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

The script will:
1. Download CSV data from Monty's GitHub repository
2. Calculate 5 component scores
3. Generate composite score and reports

### Phase 2: Present Results

Present the generated Markdown report to the user, highlighting:
- Composite score and zone classification
- Exposure guidance (Full/Normal/Reduced/Defensive/Preservation)
- Sector heatmap showing strongest and weakest sectors
- Key momentum and rotation signals

---

## 5-Component Scoring System

| # | Component | Weight | Key Signal |
|---|-----------|--------|------------|
| 1 | Market Breadth (Overall) | **30%** | Ratio level + trend direction |
| 2 | Sector Participation | **25%** | Uptrend sector count + ratio spread |
| 3 | Sector Rotation | **15%** | Cyclical vs Defensive balance |
| 4 | Momentum | **20%** | Slope direction + acceleration |
| 5 | Historical Context | **10%** | Percentile rank in history |

## Scoring Zones

| Score | Zone | Exposure Guidance |
|-------|------|-------------------|
| 80-100 | Strong Bull | Full Exposure (100%) |
| 60-79 | Bull | Normal Exposure (80-100%) |
| 40-59 | Neutral | Reduced Exposure (60-80%) |
| 20-39 | Cautious | Defensive (30-60%) |
| 0-19 | Bear | Capital Preservation (0-30%) |

### 7-Level Zone Detail

Each scoring zone is further divided into sub-zones for finer-grained assessment:

| Score | Zone Detail | Color |
|-------|-------------|-------|
| 80-100 | Strong Bull | Green |
| 70-79 | Bull-Upper | Light Green |
| 60-69 | Bull-Lower | Light Green |
| 40-59 | Neutral | Yellow |
| 30-39 | Cautious-Upper | Orange |
| 20-29 | Cautious-Lower | Orange |
| 0-19 | Bear | Red |

### Warning System

Active warnings trigger exposure penalties that tighten guidance even when the composite score is high:

| Warning | Condition | Penalty |
|---------|-----------|---------|
| **Late Cycle** | Commodity avg > both Cyclical and Defensive | -5 |
| **High Spread** | Max-min sector ratio spread > 40pp | -3 |
| **Divergence** | Intra-group std > 8pp, spread > 20pp, or trend dissenters | -3 |

Penalties stack (max -10) + multi-warning discount (+1 when ≥2 active). Applied after composite scoring.

### Momentum Smoothing

Slope values are smoothed using EMA(3) (Exponential Moving Average, span=3) before scoring. Acceleration is calculated by comparing the recent 10-point average vs prior 10-point average of smoothed slopes (10v10 window), with fallback to 5v5 when fewer than 20 data points are available.

### Historical Confidence Indicator

The Historical Context component includes a confidence assessment based on:
- **Sample size:** Number of historical data points available
- **Regime coverage:** Proportion of distinct market regimes (bull/bear/neutral) observed
- **Recency:** How recent the latest data point is

Confidence levels: High, Medium, Low.

---

## API Requirements

**Required:** None (uses free GitHub CSV data)

## Output Files

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

## Reference Documents

### `references/uptrend_methodology.md`
- Uptrend Ratio definition and thresholds
- 5-component scoring methodology
- Sector classification (Cyclical/Defensive/Commodity)
- Historical calibration notes

### When to Load References
- **First use:** Load `uptrend_methodology.md` for full framework understanding
- **Regular execution:** References not needed - script handles scoring

## Same-run provenance

Pass `--run-id daily-20261017-unique` to both required market-regime-daily
producers. Without it each producer generates its own unique ID. JSON includes
schema 1.0 `data_provenance` with actual primary timeseries business date,
UTC retrieval time, source and run ID. Unknown adjustment, point-in-time,
survivorship and corporate-action flags are false. Auxiliary summary dates
are unverified; this does not certify the freshness of every composite input.
Missing or malformed primary dates stop report generation.

Pass the exact JSON paths printed by these invocations to Exposure Coach's
`--require-provenance --run-id … --as-of …` mode. Run IDs are caller-provided
consistency markers, not authenticity or point-in-time proof.
Pliki w paczce (28)
  • SKILL.md 6 KB
  • requirements.txt 1 KB
  • references/uptrend_methodology.md 13 KB
  • scripts/data_fetcher.py 8 KB
  • scripts/provenance_contract.py 7 KB
  • scripts/report_generator.py 19 KB
  • scripts/scorer.py 14 KB
  • scripts/uptrend_analyzer.py 9 KB
  • scripts/calculators/__init__.py 1 KB
  • scripts/calculators/historical_context_calculator.py 7 KB
  • scripts/calculators/market_breadth_calculator.py 5 KB
  • scripts/calculators/momentum_calculator.py 7 KB
  • scripts/calculators/sector_participation_calculator.py 6 KB
  • scripts/calculators/sector_rotation_calculator.py 11 KB
  • scripts/tests/conftest.py 1 KB
  • scripts/tests/helpers.py 3 KB
  • scripts/tests/test_data_fetcher.py 7 KB
  • scripts/tests/test_historical_context_calculator.py 5 KB
  • scripts/tests/test_main_provenance.py 2 KB
  • scripts/tests/test_market_breadth_calculator.py 6 KB
  • scripts/tests/test_momentum_calculator.py 6 KB
  • scripts/tests/test_new_features.py 19 KB
  • scripts/tests/test_provenance_contract.py 6 KB
  • scripts/tests/test_report_generator.py 9 KB
  • scripts/tests/test_scorer.py 6 KB
  • scripts/tests/test_sector_participation_calculator.py 5 KB
  • scripts/tests/test_sector_rotation_calculator.py 7 KB
  • scripts/tests/test_uptrend_analyzer.py 6 KB

Wersje

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

Migawka bazy z 28.10.2026 · wersja paczki 861d9b52da3d (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

  • 100market-breadth-analyzer
    Ocenia szerokość rynku akcji na publicznych danych CSV TraderMonty i liczy wynik złożony od 0 do 100 z sześciu składników, bez klucza API.
  • 100market-breadth-analyzer
    Mierzy szerokość rynku na publicznych danych CSV TraderMonty i generuje wynik 0 do 100 z 6 składników, bez klucza API.
  • 100market-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.
  • 95breadth-chart-analyst
    Ocenia szerokość rynku akcji na wykresach S&P 500 Breadth Index i US Stock Market Uptrend Stock Ratio oraz proponuje pozycjonowanie i perspektywy strategiczne i taktyczne.
  • 95breadth-chart-analyst
    Analizuje wykresy szerokości rynku, S&P 500 Breadth Index (oparty na 200-dniowej średniej) i US Stock Market Uptrend Stock Ratio, i wyznacza strategię pozycjonowania oraz perspektywy średnio- i krótkoterminowe.
  • 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.