Breadth chart analyst

From nicepkg/ai-workflow · View interactive version

Breadth chart analyst is an AI agent skill from the GitHub repository nicepkg/ai-workflow. This 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 strat

How to use this skill

Skill file

Breadth Chart Analyst

Overview

This skill enables specialized analysis of two complementary market breadth charts that provide strategic (medium to long-term) and tactical (short-term) market perspectives. Analyze breadth chart images to assess market health, identify trading signals based on backtested strategies, and develop positioning recommendations. All thinking and output are conducted exclusively in English.

Core Principles

  1. Dual-Timeframe Analysis: Combine strategic (Chart 1: 200MA Breadth) and tactical (Chart 2: Uptrend Ratio) perspectives
  2. Backtested Strategy Focus: Apply proven systematic strategies based on historical patterns
  3. Objective Signal Identification: Focus on clearly defined thresholds, transitions, and markers
  4. English Communication: Conduct all analysis and generate all reports in English
  5. Actionable Recommendations: Provide specific positioning guidance for different investor types

Chart Types and Purposes

Chart 1: S&P 500 Breadth Index (200-Day MA Based)

Purpose: Medium to long-term strategic market positioning

Key Elements:

Backtested Strategy:

Chart 2: US Stock Market - Uptrend Stock Ratio

Purpose: Short-term tactical timing and swing trading

Key Elements:

Swing Trading Strategy:

Analysis Workflow

Step 1: Receive Chart Images and Prepare Analysis

When the user provides breadth chart images for analysis:

  1. Confirm receipt of chart image(s)
  2. Identify which chart(s) are provided:
  1. Note any specific focus areas or questions from the user
  2. Proceed with systematic analysis

Language Note: All subsequent thinking, analysis, and output will be in English.

Step 2: Load Breadth Chart Methodology

Before beginning analysis, read the comprehensive breadth chart methodology:

Read: references/breadth_chart_methodology.md

This reference contains detailed guidance on:

Step 3: Examine Sample Charts (First Time or for Reference)

To understand the chart format and visual elements, review the sample charts included in this skill:

View: assets/SP500_Breadth_Index_200MA_8MA.jpeg
View: assets/US_Stock_Market_Uptrend_Ratio.jpeg

These samples demonstrate:

Step 4: Analyze Chart 1 (200MA-Based Breadth Index)

If Chart 1 is provided, conduct systematic analysis:

4.1 Extract Current Readings

From the chart image, identify:

4.1.5 CRITICAL: Latest Data Point Detailed Trend Analysis

This step is MANDATORY to avoid misreading recent trend changes.

CRITICAL WARNING: Charts can be deceptive. The MAJORITY of analysis errors occur because the analyst:

  1. Confuses the 8MA (orange) with the 200MA (green)
  2. Reads historical trends instead of the CURRENT rightmost data points
  3. Misidentifies which line is rising vs falling

BEFORE analyzing trend direction, FIRST confirm line colors:

Focus intensively on the rightmost 3-5 data points of the chart (most recent weeks):

For 8MA (Orange Line) - Analyze the very latest trajectory:

  1. Identify the absolute latest position: Where is the 8MA at the rightmost edge of the chart?
  2. Trace back 3-5 data points (approximately 3-5 weeks):
  1. Calculate the directional change:
  1. Determine the CURRENT slope (not historical slope):

Critical Questions to Answer:

For 200MA (Green Line) - Analyze the very latest trajectory:

  1. Identify the absolute latest position: Where is the 200MA at the rightmost edge?
  2. Trace back 4-6 weeks:
  1. Determine the CURRENT slope:

Failed Reversal Detection (CRITICAL):

If an 8MA trough (purple ▼) was recently identified:

Example Analysis Format:

Latest 8MA Data Points (rightmost to left):
- Current (Week 0): 48%
- 1 week ago: 52%
- 2 weeks ago: 55%
- 3 weeks ago: 50%

Analysis: 8MA is FALLING. It rose from 50% to 55% (weeks 3-2), but has since declined to 48%.
This shows a failed reversal pattern - bounce was temporary, downtrend has resumed.
SLOPE: Falling (not rising!)

MANDATORY CROSS-CHECK (to catch misreadings):

After determining the trend, ask yourself:

4.2 Identify Signal Markers

Look for and document:

4.3 Assess Market Regime

Based on readings and patterns, classify the current market as:

Support the classification with specific evidence from the chart.

4.4 Determine Strategy Position

Apply the backtested strategy rules with STRICT confirmation requirements:

Check for BUY signal (ALL criteria must be met):

  1. ✓ Trough Formation: Has 8MA formed a clear trough (purple ▼)?
  2. ✓ Reversal Initiated: Has 8MA begun to move upward from the trough?
  3. ✓ Confirmation Achieved: Has 8MA risen for 2-3 CONSECUTIVE periods after the trough?
  4. ✓ No Recent Reversal: Based on Step 4.1.5 analysis, is 8MA CURRENTLY rising (not falling)?
  5. ✓ Sustained Move: Has 8MA maintained the upward trajectory without rolling over?
  6. ⭐ Optional but Strong: Is 8MA below or near 23% (extreme oversold) at trough?

BUY Signal Status:

Check for SELL signal:

Current position determination:

4.5 Develop Scenarios

Create 2-3 scenarios with probability estimates:

Step 5: Analyze Chart 2 (Uptrend Stock Ratio)

If Chart 2 is provided, conduct systematic analysis:

5.1 Extract Current Readings

From the chart image, identify:

5.2 Identify Trend Transitions

Look for and document:

5.3 Assess Market Condition

Based on current ratio and color, classify as:

Support the classification with specific evidence from the chart.

5.4 Determine Trading Position

Apply the swing trading strategy rules:

Check for ENTER LONG signal:

Check for EXIT LONG signal:

Current position: Long, Flat, Preparing to Enter, or Preparing to Exit

5.5 Develop Scenarios

Create 2-3 scenarios with probability estimates:

Step 6: Combined Analysis (When Both Charts Provided)

If both charts are provided, integrate the strategic and tactical perspectives:

6.1 Alignment Assessment

Create a positioning matrix:

6.2 Scenario Classification

Determine which of the four scenarios applies:

Scenario 1: Both Bullish

Scenario 2: Strategic Bullish, Tactical Bearish

Scenario 3: Strategic Bearish, Tactical Bullish

Scenario 4: Both Bearish

6.3 Unified Recommendation

Provide integrated positioning guidance for:

Address any conflicts between charts and explain resolution.

Step 7: Generate Analysis Report in English

Create a comprehensive markdown report using the template structure:

Read and use as template: assets/breadth_analysis_template.md

IMPORTANT: All analysis and output must be in English.

The report structure varies based on which chart(s) are analyzed:

If Chart 1 only:

If Chart 2 only:

If Both Charts:

File Naming Convention: Save each analysis as:

Step 8: Quality Assurance

Before finalizing the report, verify:

  1. ✓ Language: All content is in English (thinking and output)
  2. ✓ Line Color Verification: Explicitly confirmed 8MA = ORANGE, 200MA = GREEN before trend analysis
  3. ✓ Latest Data Trend Analysis: Step 4.1.5 was thoroughly completed - the most recent 3-5 data points were analyzed to determine CURRENT trend direction
  4. ✓ Trend Direction Accuracy: The stated 8MA slope (Rising/Falling/Flat) accurately reflects the RIGHTMOST data points, not historical movement
  5. ✓ Cross-Check Completed: MANDATORY CROSS-CHECK questions were answered to confirm trend direction matches visual slope
  6. ✓ Death/Golden Cross Check: If 8MA and 200MA are converging, explicitly identified whether death cross or golden cross is forming
  7. ✓ Failed Reversal Check: If a trough was identified, explicitly verified whether the reversal sustained or failed by analyzing latest trajectory
  8. ✓ Specific Values: All readings include specific percentages/levels, not vague descriptions
  9. ✓ Signal Status: Clear identification of active signals (CONFIRMED BUY / DEVELOPING / FAILED / SELL / WAIT)
  10. ✓ Strategy Alignment: Recommendations align with backtested strategies and confirmation requirements
  11. ✓ Probabilities: Scenario probabilities sum to 100%
  12. ✓ Actionable: Clear positioning recommendations for different trader types
  13. ✓ Context: Historical comparison and reference to similar past situations
  14. ✓ Risk Management: Invalidation levels and risk factors clearly stated

FINAL SANITY CHECK:

Quality Standards

Objectivity Requirements

Completeness Requirements

Clarity Requirements

Strategy Adherence Requirements

Example Usage Scenarios

Example 1: Strategic Breadth Analysis (Chart 1 Only)

User: "Please analyze this S&P 500 breadth chart and tell me where we are in the market cycle."
[Provides Chart 1 image: 200MA Breadth Index]

Breadth Analyst (thinking in English):
1. Confirms receipt of Chart 1 (200MA-based breadth index)
2. Reads breadth_chart_methodology.md for Chart 1 guidance
3. Views sample chart for format reference
4. Extracts current readings:
   - 8MA: 68%
   - 200MA: 75%
   - 8MA slope: Flat to slightly declining
   - 200MA slope: Rising but may be forming peak
   - Distance from 73% threshold: +2% (above threshold = overheated)
5. Identifies signals:
   - Most recent 8MA trough: 3 months ago at 25%
   - Most recent 200MA peak: None visible yet, but 200MA at 75% suggests potential peak forming
6. Assesses regime: Overheated Bull Market approaching Distribution Phase
7. Determines strategy position: Long position should prepare to exit; watch for 200MA peak confirmation
8. Develops scenarios:
   - Base Case (55%): 200MA forms peak in next 1-2 weeks, sell signal activates
   - Alternative (35%): Further consolidation at elevated levels before eventual peak
   - Bear Case (10%): Immediate rollover without clear peak formation
9. Generates comprehensive report in English: breadth_200ma_analysis_2025-11-02.md

Example 2: Tactical Uptrend Ratio Analysis (Chart 2 Only)

User: "Should I be buying or selling here? Analyze this uptrend ratio chart."
[Provides Chart 2 image: Uptrend Stock Ratio]

Breadth Analyst (thinking in English):
1. Confirms receipt of Chart 2 (Uptrend stock ratio)
2. Reads breadth_chart_methodology.md for Chart 2 guidance
3. Views sample chart for format reference
4. Extracts current readings:
   - Current ratio: 12%
   - Current color: Green (uptrend)
   - Ratio slope: Rising sharply
   - Just transitioned from red to green 3 days ago at 11%
5. Identifies transitions:
   - Most recent red-to-green: 3 days ago at 11% (from extreme oversold)
   - Prior green-to-red: 2 weeks ago at 28%
6. Assesses condition: Early in new uptrend from extreme oversold
7. Determines trading position: ENTER LONG signal active, excellent risk/reward
8. Develops scenarios:
   - Base Case (65%): Ratio continues higher to 30-35% over next 2-3 weeks
   - Alternative (25%): Choppy advance, consolidates around 20% before next leg
   - Bear Case (10%): False breakout, returns to red quickly
9. Generates tactical report in English: uptrend_ratio_analysis_2025-11-02.md

Example 3: Combined Strategic + Tactical Analysis (Both Charts)

User: "Analyze both of these breadth charts and give me your overall market view."
[Provides both Chart 1 and Chart 2 images]

Breadth Analyst (thinking in English):
1. Confirms receipt of both charts
2. Reads full breadth_chart_methodology.md
3. Views both sample charts
4. Analyzes Chart 1:
   - 8MA: 55%, rising from trough 2 weeks ago at 30%
   - 200MA: 60%, still rising
   - Regime: Early Recovery to Healthy Bull Market
   - Strategy: Long position, hold
5. Analyzes Chart 2:
   - Ratio: 22%, green (uptrend)
   - Transitioned red-to-green 10 days ago from 14%
   - Condition: Moderate Bullish, building momentum
   - Trading: Hold long, entered on transition
6. Combined assessment:
   - Scenario 1: Both Bullish ✓
   - Strategic: Bullish (8MA reversal confirmed)
   - Tactical: Bullish (uptrend established from oversold)
   - Alignment: Strong alignment = Maximum conviction
7. Unified recommendation:
   - Long-term investors: Aggressive long positioning, core holdings
   - Swing traders: Hold longs entered on red-to-green, target 35%+
   - Active traders: Full position, favorable environment for longs
8. Develops integrated scenarios with probabilities
9. Generates comprehensive combined report in English: breadth_combined_analysis_2025-11-02.md

Common Analysis Errors and How to Avoid Them

Error 1: Confusing 8MA with 200MA

Symptom: Report claims 8MA is rising when it's actually the 200MA that's rising

Prevention:

Error 2: Reading Historical Trends Instead of Current Direction

Symptom: Report describes what happened 1-2 months ago, not what's happening NOW

Prevention:

Error 3: Missing Death Cross or Golden Cross Formation

Symptom: Report is bullish when 8MA and 200MA are about to death cross (bearish)

Prevention:

Error 4: Ignoring Pink Background Shading

Symptom: Report claims bullish setup when chart shows pink downtrend background

Prevention:

Error 5: Claiming Reversal Too Early

Symptom: Report says "BUY signal confirmed" after only 1 week of increase

Prevention:

Resources

This skill includes the following bundled resources:

references/breadth_chart_methodology.md

Comprehensive methodology covering:

Usage: Read this file before conducting any breadth chart analysis to ensure systematic, accurate interpretation.

assets/breadth_analysis_template.md

Structured template for breadth analysis reports in English:

Usage: Use this template structure for every analysis report. Adapt sections based on which chart(s) are being analyzed.

assets/SP500_Breadth_Index_200MA_8MA.jpeg

Sample Chart 1 image showing:

Usage: Reference this sample to understand Chart 1 visual format and identify similar patterns in user-provided charts.

assets/US_Stock_Market_Uptrend_Ratio.jpeg

Sample Chart 2 image showing:

Usage: Reference this sample to understand Chart 2 visual format and identify similar patterns in user-provided charts.

Special Notes

Language Requirement

CRITICAL: All analysis, thinking, and output MUST be in English. This includes:

Do not translate or use any other language. The user expects English output exclusively.

Strategy Focus

This skill emphasizes backtested, systematic strategies rather than discretionary interpretation. Always:

Practical Application

The goal is actionable intelligence. Every analysis should answer:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.