# Williams Fractals Strategy AI Agent Connect

> Identify price reversals and breakout signals using deterministic Williams Fractals.

## Overview
- **Category:** finance
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_g3a0UmCATv98Tk9TgeEQ2ztaYPqg2VXXga5T1HRu/ai-agent-connect
- **Tags:** fractals, breakout, trading-strategy, volatility, price-action

## Description

This MCP server provides tools to identify price extrema and execute breakout strategies using Williams Fractals. It allows AI agents to analyze price series for Up-Fractals and Down-Fractals, calculate fractal density and amplitude, and generate validated BUY, SELL, or HOLD signals. By using `analyze_fractal_patterns`, agents can detect structural metrics, while `evaluate_trading_signals` provides entry prices, stop-losses, and take-profit levels based on volatility-adjusted rules. The `get_market_regime_context` tool helps determine trend strength and volatility levels.

## Tools

### analyze_fractal_patterns
Identify confirmed Up and Down fractals and calculate structural metrics

### evaluate_trading_signals
Determine Buy, Sell, or Hold signals based on current price and fractal data

### get_market_regime_context
Provide a summary of recent fractal activity to understand market structure

## Prompt Examples

**Prompt:** 
```
Analyze these high and low prices for fractal patterns: [10, 12, 15, 13, 11, 10, 12, 14, 16, 14, 12]
```

**Response:** 
```
The analysis identified an Up-Fractal at index 2 with a price of 15 and a Down-Fractal at index 5 with a price of 10. The current fractal density is 2 in the last 20 bars.
```

**Prompt:** 
```
Should I buy if the current price is 16, the last fractal was an Up-Fractal at 15, and the ATR is 1?
```

**Response:** 
```
BUY signal: Entry Price: 16.0, Stop-Loss: 14.0, Take-Profit: 18.0.
```

**Prompt:** 
```
What is the current market regime based on this fractal data: {"density": 5, "trendStrength": "Bullish", "lastFractalType": "UP_FRACTAL"}?
```

**Response:** 
```
The market is in a High Volatility regime with Bullish trend strength.
```

## Frequently Asked Questions

**How are fractals confirmed?**
A fractal is confirmed two bars after the middle bar (the peak or trough) satisfies the extremum condition.

**What triggers a BUY signal?**
A BUY signal is triggered when the current price breaks above the most recent Up-Fractal, provided the last confirmed fractal was an Up-Fractal.

**How is risk managed in this strategy?**
Stop-loss levels are set using the opposite fractal price or a 2x ATR adjustment, while take-profit targets use the next fractal level or a 3:1 reward-to-risk ratio.
