einstein-research-breadth
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.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/clawdiri-ai/einstein-research-breadth-dvMarket Breadth Analyzer
Overview
This skill quantifies the health of market breadth using public data from TraderMonty's GitHub repository. It generates a composite score from 0-100 (100 = healthy) across six key components, providing a quick, data-driven assessment of market participation.
Key Features:
- Composite Score (0-100): Single, easy-to-understand metric for breadth health.
- 6-Component Analysis:
- % Stocks > 50-day MA
- % Stocks > 200-day MA
- 1-Month New Highs - New Lows
- Advance-Decline Line (ADL) Momentum
- % Bullish (AAII Sentiment)
- S&P 500 distance from 200-day MA
- No API Key Required: Uses a publicly available CSV, making it free and reliable.
- Historical Context: Compares the current score to its 3-month and 6-month moving averages.
When to Use This Skill
Explicit Triggers:
- "What's the current market breadth?"
- "Is this rally broad-based?"
- "Analyze market participation."
- "Show me the advance-decline health."
- User asks about "market breadth," "A-D line," "% stocks above moving average."
Implicit Triggers:
- User is concerned about a narrow, top-heavy market rally (e.g., led by only a few mega-cap stocks).
- User is assessing the risk of a market downturn, as poor breadth is often a leading indicator.
When NOT to Use:
- For real-time, intraday breadth data (this is end-of-day).
- For individual stock analysis.
- For deep technical analysis of a single indicator (this skill provides a composite view).
Workflow
Step 1: Execute the Analysis Script
The entire process is handled by a single Python script.
# Run the breadth analysis
python3 skills/market-breadth/scripts/breadth_analyzer.py
The script performs the following actions:
- Downloads Data: Fetches the latest
Market-Breadth-Data.csvfrom TraderMonty's public GitHub repo. - Calculates Components: For each of the 6 components, it calculates a normalized score (0-100) based on its current value relative to its 1-year range.
- Computes Composite Score: A weighted average of the 6 component scores.
% > 50d MA: 25%% > 200d MA: 25%NH-NL: 20%ADL Momentum: 15%AAII Bullish: 10% (inverse scoring)SPX distance from 200d MA: 5%
- Generates Report: Outputs a JSON file and a human-readable Markdown summary.
Step 2: Analyze the Output
The script produces two files:
breadth_report_YYYY-MM-DD.jsonbreadth_report_YYYY-MM-DD.md
JSON Output:
{
"composite_score": 78.5,
"assessment": "Healthy",
"trend": "Improving",
"components": {
"stocks_above_50d_ma": 85,
"stocks_above_200d_ma": 90,
"new_highs_lows": 75,
"ad_line_momentum": 60,
"aaii_bullish_inverse": 70,
"spx_distance_from_200d_ma": 95
},
"moving_averages": {
"3_month": 65.2,
"6_month": 58.9
}
}
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-clawdiri-ai-einstein-research-breadth-dv": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
Follow-Through Day (FTD) Detector
Detects Follow-Through Day (FTD) signals for market bottom confirmation using William O'Neil's methodology. Dual-index tracking (S&P 500 + NASDAQ) with state machine for rally attempt, FTD qualification, and post-FTD health monitoring. Use when user asks about market bottom signals, follow-through days, rally attempts, re-entry timing after corrections, or whether it's safe to increase equity exposure. Complementary to market-top-detector (defensive) - this skill is offensive (bottom confirmation).
Gumroad Page Generator
Generates Gumroad product page content from a simple spec.
Analytics Tracking
Track events and user behavior using Segment.
AutoSignals - Autonomous Trading Signal Optimization
Monitors and controls the AutoSignals autonomous research loop.
first-principles
Deep first-principles analysis of any topic, decision, strategy, or assumption. Strips inherited thinking, identifies what is provably true, and rebuilds from ground truth. Use when user asks for first principles analysis, wants to challenge assumptions, says "analyze this from scratch", "break this down", "what's really true here", or triggers with /firstprinciples. Also useful for strategic decisions, investment theses, product strategy, career moves, or any situation where conventional wisdom may be wrong.