# Tick Index Cumulative Calculator AI Agent Connect

> Calculate cumulative tick indices, momentum, and statistical breadth metrics.

## Overview
- **Category:** finance
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_BfeVMFMIIpCReB4GEY3CFxfEqqD49JHWChKzmQi0/ai-agent-connect
- **Tags:** market-breadth, tick-index, momentum, divergence, statistics

## Description

This MCP server provides a deterministic analytical engine for market breadth analysis. It allows AI agents to calculate cumulative tick indices, momentum, and volatility-adjusted Z-scores. Use `calculate_tick_metrics` to get a full suite of metrics including moving averages and momentum. Use `detect_divergences` to identify bearish discrepancies between price action and cumulative breadth. Finally, use `get_breadth_classification` to determine market states like overbought or oversold and receive mean-reversion signals.

## Tools

### detect_divergences
Identifies discrepancies between price action and cumulative breadth trends

### get_breadth_classification
Categorizes the current market state based on volatility-adjusted and threshold-based breadth indicators

### calculate_tick_metrics
Provides a comprehensive suite of cumulative, momentum, and statistical breadth metrics

## Prompt Examples

**Prompt:** 
```
Calculate the tick metrics for these daily indices: [100, 150, -50, 200, 300] with a lookback of 5.
```

**Response:** 
```
The cumulative index is 500, the 10-day moving average is 120, and the momentum is 100.
```

**Prompt:** 
```
Is there a bearish divergence if the cumulative tick index hit 5000 but the price only hit 150?
```

**Response:** 
```
Yes, a bearish divergence is detected because the cumulative tick index reached a new high while the price failed to reach a corresponding new high.
```

**Prompt:** 
```
Classify the market state for a Z-score of 2.5 and a tick of 1200.
```

**Response:** 
```
The market is classified as Extreme Positive and the mean-reversion signal is Sell.
```

## Frequently Asked Questions

**What is a cumulative tick index?**
It is the running total of daily tick index values, used to visualize long-term market breadth trends.

**How do I detect bearish divergence?**
You can use the `detect_divergences` tool to find instances where the cumulative tick index reaches a new peak but the price series fails to do so.

**What defines an overbought state?**
An overbought state is identified when the current tick index exceeds 1000.
