# Harmonic Pattern Detector AI Agent Connect

> Identify Gartley, Butterfly, Bat, and Crab patterns using Fibonacci ratios.

## Overview
- **Category:** finance
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_gjqXSx80yd1p8VBoNwvFsv9p9lMDp914PYcX1Elh/ai-agent-connect
- **Tags:** harmonic-patterns, fibonacci, trading-tools, chart-patterns, market-analysis

## Description

This MCP server provides deterministic detection of harmonic price patterns. It uses precise Fibonacci retracement and extension ratios to identify Gartley, Butterfly, Bat, and Crab structures. Use `detect_patterns` to scan price pivots for completed patterns, `get_pattern_details` to retrieve specific Potential Reversal Zone (PRZ) boundaries and target levels, or `validate_pivot_sequence` to extract candidate points from raw price data.

## Tools

### detect_patterns
Scan a sequence of price pivots to identify any completed harmonic patterns

### get_pattern_details
Retrieve deep technical specifications for a specific detected pattern

### validate_pivot_sequence
Verify if a raw sequence of price points can form the basis of a harmonic pattern

## Prompt Examples

**Prompt:** 
```
Can you detect any harmonic patterns in these pivots: [{"price": 100, "timestamp": 1}, {"price": 150, "timestamp": 2}, {"price": 125, "timestamp": 3}, {"price": 140, "timestamp": 4}, {"price": 110, "timestamp": 5}]?
```

**Response:** 
```
A Gartley pattern has been detected with a valid ratio within the 2% tolerance.
```

**Prompt:** 
```
What are the target levels for this detected Bat pattern?
```

**Response:** 
```
The target levels for the Bat pattern are $115.50 (TP1) and $122.00 (TP2).
```

**Prompt:** 
```
Check if this price series has enough points for pattern detection: [10, 12, 11, 13, 12, 14, 13]
```

**Response:** 
```
The sequence is valid and contains 4 potential pivot points.
```

## Frequently Asked Questions

**How do I detect a pattern?**
You can use the `detect_patterns` tool by providing a JSON string of pivot objects containing price and timestamp.

**What patterns are supported?**
The server supports Gartley, Butterfly, Bat, and Crab patterns.

**How is the Potential Reversal Zone (PRZ) calculated?**
The PRZ is calculated based on the convergence of the D point extension and the final leg's retracement, which you can retrieve using `get_pattern_details`.
