# Automated Crypto Technical Analysis with MCP: RSI, MACD, EMA, Bollinger Bands & VWAP

> Never ask an LLM to calculate RSI, MACD, or Bollinger Bands from raw OHLCV candle arrays in its context window. Eterna MCP provides six native server-side indicator methods inside execute_code: getRsi, getMacd, getEma, getSma, getBollingerBands, and getVwap. Your agent queries exact indicator values across multiple timeframes in parallel and acts on deterministic numbers.

- Canonical URL: https://ai.eterna.exchange/guides/automated-technical-analysis-mcp
- Last updated: November 23, 2026
- Author: Eterna Engineering (MCP Infrastructure & Execution Team)
- MCP endpoint: https://mcp.eterna.exchange/mcp

LLMs routinely miscalculate exponential moving averages and RSI smoothing when fed raw candlestick arrays. Moving indicator math server-side into Eterna's SDK delivers fast, exact, zero-dependency signals.

## Key Facts

| Metric | Value | Notes |
|--------|-------|-------|
| Native TA Methods | 6 indicators | RSI, MACD, EMA, SMA, Bollinger, VWAP |
| External Libraries | Zero | No TA-Lib, pandas-ta, or npm installs |
| Parallel Scans | Promise.all | Multi-coin, multi-timeframe in 1 call |
| Markets Covered | 800+ perps | Crypto, DeFi, memes, and stock perps |

## All 6 built-in technical analysis methods in Eterna MCP

| SDK Method | Signal Category | Best Strategy Pattern |
| --- | --- | --- |
| eterna.getRsi | Momentum oscillator | Mean reversion (<30 / >70) and trend pullback filtering (35-45 in uptrends) |
| eterna.getMacd | Trend momentum | Histogram zero-line shifts and signal-line crossover confirmation |
| eterna.getEma | Trend direction | EMA 20 vs EMA 50 / EMA 200 regime detection and dynamic support |
| eterna.getSma | Baseline trend | Higher-timeframe structural filter (e.g. 4h / 1d SMA 50 or 200) |
| eterna.getBollingerBands | Volatility & bands | Volatility squeeze breakouts and band-touch reversion targets |
| eterna.getVwap | Volume-weighted value | Intraday mean reversion and institutional bias (long above VWAP, short below) |

## Runnable TypeScript: Multi-indicator confluence scanner

Score a watchlist across trend (EMA 20/50), momentum (RSI + MACD), volatility (Bollinger Bands), and intraday value (VWAP) in a single MCP round-trip.

### execute_code / confluence-scanner.ts

```typescript
const symbols = ["BTCUSDT", "ETHUSDT", "SOLUSDT", "LINKUSDT", "NVDAUSDT"];

const results = await Promise.all(
  symbols.map(async (symbol) => {
    const [ticker, rsi, macd, ema20, ema50, bb, vwap] = await Promise.all([
      eterna.getTickers({ symbol }),
      eterna.getRsi({ symbol, interval: "1h", period: 14 }),
      eterna.getMacd({ symbol, interval: "1h" }),
      eterna.getEma({ symbol, interval: "1h", period: 20 }),
      eterna.getEma({ symbol, interval: "1h", period: 50 }),
      eterna.getBollingerBands({ symbol, interval: "1h", period: 20 }),
      eterna.getVwap({ symbol, interval: "1h" }),
    ]);

    const price = Number(ticker[0]?.lastPrice ?? 0);
    const trendUp = Number(ema20.value ?? 0) > Number(ema50.value ?? 0);
    const aboveVwap = price > Number(vwap.value ?? price);

    return {
      symbol,
      price,
      rsi1h: Number(rsi.value ?? 0),
      macd,
      trendUp,
      aboveVwap,
      bb,
    };
  }),
);

return { scannedAt: new Date().toISOString(), count: results.length, results };
```

**Returns:** Returns a compact JSON array containing live price, 1h RSI, MACD, EMA trend state, VWAP alignment, and Bollinger Bands for all 5 symbols in one execute_code call.

## Frequently Asked Questions

### Why shouldn't an AI trading agent compute RSI or EMA directly from raw candles in the prompt?

Sending 200 raw OHLCV candles per symbol burns thousands of tokens and LLMs frequently make subtle arithmetic errors in Wilder's RSI smoothing or EMA weighting. Calling eterna.getRsi and eterna.getEma computes exact values server-side.

## References & Primary Sources

- [Eterna SDK Reference](https://ai.eterna.exchange/sdk): Complete catalog of all 30+ eterna.* SDK methods.

## Related Guides

- [Eterna MCP SDK Reference: All 30+ eterna.* Methods](https://ai.eterna.exchange/sdk)
- [How to Build an AI Crypto Trading Agent with MCP (Step-by-Step)](https://ai.eterna.exchange/ai-trading-agent)
- [Best MCP Server for Crypto Trading: Architecture, Fees, and Setup](https://ai.eterna.exchange/mcp-crypto-trading)
- [MCP execute_code vs Tool Calling: Why Code-Execution MCP Uses ~90% Fewer Tokens](https://ai.eterna.exchange/guides/execute-code-vs-tool-calling)
