# Trend Filter Strategy AI Agent Connect

> Deterministic trading strategy using ADX for trend detection and Moving Averages for execution.

## Overview
- **Category:** finance
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_EnHCXFbORjKS3IoyYY7u8Z8qcdY8e8dBZMweekMR/ai-agent-connect
- **Tags:** adx, moving-average, algorithmic-trading, trend-following, technical-indicators

## Description

This MCP server provides a deterministic framework for identifying market regimes and executing trades. By using `analyze_trend_regime`, agents can distinguish between Uptrend, Downtrend, and Sideways markets based on ADX strength and Moving Average positioning. Once a regime is identified, `calculate_trading_signals` generates precise entry, stop-loss, and take-profit instructions based on price pullbacks. Additionally, `get_trend_metrics` provides quantitative data on trend strength and momentum to assist in decision making.

## Tools

### analyze_trend_regime
Determines the current market state (Uptrend, Downtrend, or Sideways) based on ADX and Moving Average positioning

### calculate_trading_signals
Identifies specific Buy or Sell signals based on the current trend regime and price action

### get_trend_metrics
Provides quantitative data regarding the current strength and momentum of the trend

## Prompt Examples

**Prompt:** 
```
Analyze the current market regime for these closing prices: [150.2, 151.5, 152.0, 149.5, 148.0, 153.0, 155.0]
```

**Response:** 
```
The current market regime is UPTREND with an ADX value of 28.5 and a positive MA slope.
```

**Prompt:** 
```
Generate a trading signal for an uptrend where the price has just touched the 50 EMA.
```

**Response:** 
```
BUY signal generated: Entry Price 150.00, Stop-Loss 147.50, Take-Profit 157.50.
```

**Prompt:** 
```
What is the current trend strength and momentum?
```

**Response:** 
```
The current trend strength is 0.75 and the momentum score is 12.4.
```

## Frequently Asked Questions

**How does the strategy determine the market regime?**
The regime is determined by the ADX value and the price position relative to the Moving Average. An Uptrend is identified when ADX is above 25 and price is above the MA.

**What kind of signals does this MCP provide?**
It provides BUY and SELL signals based on pullbacks to the Moving Average during trending regimes, as calculated by `calculate_trading_signals`.

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