# Trend-Following Ensemble Strategy AI Agent Connect

> Generates high-conviction trade signals using an ensemble of MA, MACD, and ADX indicators.

## Overview
- **Category:** finance
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_WTZQRph7Vo1AsuGiAfrrqK4bpJ0ulIS3uTtbxqR4/ai-agent-connect
- **Tags:** trading, indicators, macd, moving-average, adx, ensemble

## Description

This MCP server provides a deterministic technical analysis engine that aggregates multiple trend signals into a unified ensemble score. By requiring unanimous agreement between Moving Average crossovers, MACD momentum, and ADX trend strength, it filters out market noise and identifies high-conviction entries. Use `analyze_trend_ensemble` to generate complete trade signals including entry prices, stop-loss, and take-profit levels. You can also use `calculate_momentum_health` to assess trend acceleration and `evaluate_risk_parameters` to manage exits based on volatility.

## Tools

### calculate_momentum_health
Evaluates the specific momentum components to determine if a trend is accelerating or decelerating

### evaluate_risk_parameters
Determines the price levels for exiting a trade based on current volatility and price action

### analyze_trend_ensemble
Executes the core logic to generate trade signals and ensemble metrics based on price data

## Prompt Examples

**Prompt:** 
```
Analyze the trend for these closing prices: [150.2, 152.5, 155.0, 154.8, 158.2, 160.5, 162.0]
```

**Response:** 
```
The current ensemble score is 3, indicating a strong BUY signal with an entry price of 162.0, a stop-loss of 158.2, and a take-profit of 173.4.
```

**Prompt:** 
```
Check the momentum health for these MACD and signal values: MACD=[0.5, 0.6, 0.7], Signal=[0.1, 0.2, 0.3], Zero=0
```

**Response:** 
```
The momentum is bullish with a strength of 0.7.
```

**Prompt:** 
```
Calculate risk parameters for a BUY trade at 100 with a swing low of 95, ATR of 2, and a multiplier of 2.
```

**Response:** 
```
The stop-loss is 95.0 and the take-profit is 111.0.
```

## Frequently Asked Questions

**What is an ensemble score?**
The ensemble score is a count of how many independent technical signals (MA, MACD, and ADX) align. A score of 3 indicates unanimous agreement, which triggers a high-conviction trade signal.

**How are stop-loss and take-profit levels determined?**
Exit levels are calculated using `evaluate_risk_parameters`, which uses recent price swings and the Average True Range (ATR) to set protective stops and target a 3:1 reward-to-risk ratio.

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