# Elder Impulse Strategy AI Agent Connect

> Deterministic trading signals using EMA and MACD momentum.

## Overview
- **Category:** finance
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_H87XngpKGX6nAgJ7SbL15FzepKKv0s2hkczoxAKs/ai-agent-connect
- **Tags:** trading, ema, macd, momentum, technical-analysis

## Description

This MCP server implements the Elder Impulse System, a trend-following methodology that synchronizes Exponential Moving Average (EMA) trend direction with MACD histogram momentum. It generates color-coded signals: GREEN for bullish impulse, RED for bearish impulse, and BLUE for neutral transitions. Use `calculate_impulse_signals` to determine the current market color, `generate_trade_signals` to identify actionable entries with calculated stop-loss and take-profit levels, and `analyze_trend_strength` to evaluate trend duration and quality. This tool connects your AI agent to precise, deterministic momentum analysis.

## Tools

### generate_trade_signals
Evaluates impulse signals to generate actionable BUY/SELL trade entries

### analyze_trend_strength
Summarizes the current market trend based on the most recent impulse signals

### calculate_impulse_signals
Generates core color-coded impulse signals (Green, Red, Blue) for a price series

## Prompt Examples

**Prompt:** 
```
Calculate the impulse signals for these closing prices: [150.2, 151.5, 152.1, 151.8] and MACD histogram: [0.5, 0.8, 1.2, 0.9].
```

**Response:** 
```
The impulse signals for the provided data are: [{"color": "GREEN", "emaSlope": 0.4, "histogramSlope": 0.3, "persistence": 1}, {"color": "GREEN", "emaSlope": 0.5, "histogramSlope": 0.4, "persistence": 2}, {"color": "GREEN", "emaSlope": 0.3, "histogramSlope": -0.3, "persistence": 1}, {"color": "BLUE", "emaSlope": -0.1, "histogramSlope": -0.3, "persistence": 1}]
```

**Prompt:** 
```
Generate trade signals using the following impulse data: [{"color": "GREEN", "emaSlope": 0.5, "histogramSlope": 0.5, "persistence": 2}] with close prices [100, 102], ATR [1.5], and a reward ratio of 3.
```

**Response:** 
```
{"type": "BUY", "entryPrice": 102.0, "stopLoss": 99.0, "takeProfit": 108.0, "signalQuality": 1.0}
```

**Prompt:** 
```
What is the current trend strength for this impulse data: [{"color": "RED", "emaSlope": -0.5, "histogramSlope": -0.5, "persistence": 3}]?
```

**Response:** 
```
The current trend is RED with a duration of 3 bars and an average quality of -0.5.
```

## Frequently Asked Questions

**What are the different signal colors?**
GREEN indicates bullish momentum (rising EMA and MACD), RED indicates bearish momentum (falling EMA and MACD), and BLUE indicates a neutral transition phase.

**How is the stop-loss calculated?**
The stop-loss is determined using either a recent price swing or a multiple of the Average True Range (ATR) via the `generate_trade_signals` tool.

**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 through Vinkius Edge.
