# Market Breadth Analyzer AI Agent Connect

> Calculate NH/NL ratios, breadth thrust signals, and market sentiment.

## Overview
- **Category:** finance
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_nn2l63QhxBSe5uI8LUvI1TVbdFFcAz0qbbaVAc9o/ai-agent-connect
- **Tags:** market-breadth, finance, trading, stock-market, indicators

## Description

This MCP server provides deterministic market breadth analysis. It allows AI agents to calculate the ratio between new highs and new lows, identify bullish breadth thrust signals, and classify market sentiment. Use `calculate_breadth_metrics` for immediate counts, `analyze_breadth_trends` to detect moving averages and breakout signals, or `get_market_classification` to determine if the market is bullish, neutral, or bearish.

## Tools

### analyze_breadth_trends
Analyzes historical breadth data to identify moving averages and specific breakout signals

### get_market_classification
Returns a simplified descriptive status of the market based on the current ratio

### calculate_breadth_metrics
Provides the core mathematical breakdown of the current market breadth based on immediate counts

## Prompt Examples

**Prompt:** 
```
Calculate the breadth metrics for 150 new highs, 50 new lows, and 1000 total stocks.
```

**Response:** 
```
The NH/NL ratio is 3.0, the difference is 100, and the percentage is 10.0%. The sentiment is bullish.
```

**Prompt:** 
```
What is the market sentiment if the current NH/NL ratio is 1.5?
```

**Response:** 
```
The market sentiment is neutral.
```

**Prompt:** 
```
Is there a breadth thrust signal in this history?
```

**Response:** 
```
No breadth thrust signal has been detected in the provided history.
```

## Frequently Asked Questions

**What is a breadth thrust?**
A breadth thrust is a strong bullish signal triggered when the difference between new highs and new lows exceeds 620 after a 50-day period of absence.

**How is market sentiment classified?**
Sentiment is classified by the NH/NL ratio: bullish if > 2, neutral if between 1 and 2, and bearish if < 1.

**Can I calculate moving averages?**
Yes, you can use `analyze_breadth_trends` to calculate the 10-day moving average of the NH/NL ratio.
