# RSI Divergence Strategy AI Agent Connect

> Identify bullish and bearish RSI divergence signals for mean-reversion trading.

## Overview
- **Category:** finance
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_VQgtcEKKVnllQRcKMDDK3BnEvf3clV8pC3PZWNuU/ai-agent-connect
- **Tags:** rsi, divergence, mean-reversion, momentum, trading-signals

## Description

This MCP server provides deterministic tools to detect RSI divergences in price series. Use `calculate_rsi_divergence` to find BUY and SELL signals based on price extremes and RSI momentum shifts. You can also use `get_signal_summary` to analyze performance metrics or `identify_swing_points` to locate local price highs and lows. It is designed for traders looking to capture mean-reversion opportunities when momentum diverges from price action.

## Tools

### calculate_rsi_divergence


### identify_swing_points


### get_signal_summary


## Prompt Examples

**Prompt:** 
```
Find all divergence signals in this price data: [45.2, 44.8, 46.1, 43.5, 43.2, 44.5, 45.0]
```

**Response:** 
```
The strategy identified a BUY signal at bar index 5 with an entry price of 43.2 and a stop-loss at 43.0.
```

**Prompt:** 
```
What was the average divergence strength for these signals?
```

**Response:** 
```
The average divergence strength for the provided signals is 12.5.
```

**Prompt:** 
```
Identify the swing points for these prices: [10, 12, 11, 13, 12, 14, 13]
```

**Response:** 
```
The swing highs are at indices 1, 3, and 5, while the swing lows are at indices 0, 2, 4, and 6.
```

## Frequently Asked Questions

**How are BUY signals generated?**
A BUY signal is triggered when a bullish divergence is confirmed: the price makes a lower low, but the RSI makes a higher low while below 30, followed by the RSI crossing back above 30.

**What is the purpose of `get_signal_summary`?**
The `get_signal_summary` tool provides statistical insights including total signal counts, buy/sell ratios, and divergence strength metrics.

**Can I customize the RSI period?**
Yes, the `calculate_rsi_divergence` tool allows you to specify a custom `rsiPeriod`, which defaults to 14.
