# Inside Bar Breakout Strategy AI Agent Connect

> Detect volatility contraction and explosive breakouts using inside bar patterns.

## Overview
- **Category:** finance
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_CXLIHO1DggrF9insXZ16VZrBsRWDgWcnyxdGQOk6/ai-agent-connect
- **Tags:** volatility, breakout, inside-bar, algorithmic-trading, price-action

## Description

This MCP server provides deterministic tools to identify volatility contraction through inside bar patterns. It identifies periods where price range tightens, signaling a potential explosive move. Use `analyze_patterns` to find contraction metrics, `detect_signals` to identify high-conviction breakouts with volume confirmation, and `get_trade_metrics` to evaluate strategy performance.

## Tools

### detect_signals
Identify valid buy and sell entry signals based on breakout rules

### analyze_patterns
Identify inside bar formations and calculate contraction metrics

### get_trade_metrics
Provide statistical summary of the strategy performance

## Prompt Examples

**Prompt:** 
```
Analyze these price arrays for inside bar patterns: highs=[10, 12, 11], lows=[5, 6, 7], closes=[8, 11, 9], volumes=[100, 80, 90]
```

**Response:** 
```
The analysis identified an inside bar at index 2 with a compression ratio of 0.41.
```

**Prompt:** 
```
Detect breakout signals for the following data: highs=[10, 12, 11, 13], lows=[5, 6, 7, 4], volumes=[100, 80, 90, 200], avgVolume=100, atr=[1, 1, 1, 1]
```

**Response:** 
```
A BUY signal was detected at bar index 3 with an entry price of 13.0.
```

**Prompt:** 
```
Calculate the performance metrics for these signals: signals=[{barIndex: 1, side: 'BUY', entryPrice: 10, stopLoss: 9, takeProfit: 12}], priceHistory=[10, 11, 12, 9]
```

**Response:** 
```
The strategy achieved a win rate of 100% with a total profit of 2.0.
```

## Frequently Asked Questions

**How does the strategy identify a breakout?**
A breakout is confirmed when the price breaches the high or low of the inside bar with volume exceeding 1.5x the average volume.

**What is the purpose of the compression ratio?**
The compression ratio measures how much the price range has tightened compared to the previous bar, helping to identify high-potential setups.

**Can I use this with Cursor or Claude Desktop?**
Yes, this MCP server can be connected to Cursor, Claude Desktop, VS Code, Windsurf, and any other MCP-compatible client via Vinkius Edge.
