# Relative Strength Strategy AI Agent Connect

> A deterministic momentum strategy identifying assets outperforming a benchmark.

## Overview
- **Category:** finance
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_WfCh0HGzSxgrPYCEzCm4RJizu3VizKbT3XwablX1/ai-agent-connect
- **Tags:** momentum, relative-strength, trading-strategy, finance, quantitative

## Description

This MCP server provides tools to execute a deterministic momentum strategy. It identifies high-momentum assets by comparing their performance against a benchmark like SPY. Using `calculate_rs_metrics`, you can derive RS values, slope, and percentile rank. The `evaluate_strategy_signals` tool determines BUY, SELL, or HOLD actions based on RS moving average crossovers and trend filters. Finally, `perform_monthly_rebalance` allows for periodic portfolio rotation into the top 3 assets by RS strength.

## Tools

### evaluate_strategy_signals
Determines trade actions (BUY, SELL, HOLD) and risk parameters

### calculate_rs_metrics
Calculates core relative strength indicators and momentum characteristics

### perform_monthly_rebalance
Identifies top assets for the next monthly period

## Prompt Examples

**Prompt:** 
```
Calculate the relative strength metrics for these asset prices and benchmark prices.
```

**Response:** 
```
The current RS value is 1.25 with a positive slope and a percentile rank of 85%.
```

**Prompt:** 
```
Should I buy this asset based on the current signals?
```

**Response:** 
```
BUY signal triggered: RS is above the moving average, slope is positive, and the asset is in an uptrend.
```

**Prompt:** 
```
What are the top 3 assets to hold for the next month?
```

**Response:** 
```
The top 3 assets for the next period are AAPL, MSFT, and NVDA.
```

## Frequently Asked Questions

**What is the core logic of the strategy?**
The strategy triggers a BUY when the RS is above its moving average, the RS slope is positive, and both the asset and the benchmark are in an uptrend.

**How are stop-losses handled?**
A stop-loss is triggered if the price falls below the 200-day moving average or drops 10% below the entry price.

**How often does the portfolio rebalance?**
The strategy performs a monthly rebalance, rotating the portfolio into the top 3 assets based on their RS percentile rank.
