# SuperTrend Strategy Engine AI Agent Connect

> Deterministic trend-following strategy with volatility and trend-strength filters.

## Overview
- **Category:** finance
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_bs1oKrHmWpUtAaNH6YWJUWfZyJh22oznUUNs8l3b/ai-agent-connect
- **Tags:** supertrend, atr, adx, trend-following, volatility

## Description

This MCP server provides a deterministic engine for executing the SuperTrend trend-following strategy. It uses volatility-based indicators to identify market direction and provides precise entry and exit signals. The engine includes built-in filters to ensure high-quality trades: it requires a minimum trend strength via ADX and avoids low-volatility environments by comparing current ATR against recent historical lows. Use `get_trend_signals` to identify BUY and SELL entries, `get_trend_metrics` for real-time trend statistics like slope and duration, and `get_volatility_status` to assess market movement requirements.

## Tools

### get_trend_metrics
Provides detailed statistical context regarding the current trend

### get_trend_signals
Calculates SuperTrend signals and filters

### get_volatility_status
Analyzes recent volatility

## Prompt Examples

**Prompt:** 
```
Identify the latest trend signals for these prices.
```

**Response:** 
```
The latest signal is a BUY at price 150.25 with a stop-loss at 148.50.
```

**Prompt:** 
```
Is the current market volatility too low to trade?
```

**Response:** 
```
No, the current ATR is 15.4, which is above the 10-day low of 12.1.
```

**Prompt:** 
```
What are the current trend metrics?
```

**Response:** 
```
The current trend is bullish with a duration of 12 bars and a positive slope.
```

## Frequently Asked Questions

**How are BUY signals generated?**
A BUY signal is triggered when the price closes above the SuperTrend line and the ADX value is greater than 20, ensuring the trend is strong enough to trade.

**What is the purpose of the volatility filter?**
The volatility filter prevents trading in 'choppy' or sideways markets by checking if the current ATR is lower than the minimum ATR observed over the last 10 days.

**How does the stop-loss work?**
The SuperTrend line itself acts as a dynamic trailing stop-loss, automatically adjusting as the trend evolves.
