# How to Pair TradingView MCP & Pine Script Alerts with Eterna MCP Execution

> TradingView MCP and TradingView Pine Script alerts cannot place trades on their own. Connect both TradingView and Eterna MCP (`https://mcp.eterna.exchange/mcp`) in Claude, Cursor, or an n8n webhook agent so TradingView supplies chart context while Eterna verifies live orderbook liquidity, sizes risk deterministically, and executes in under 200ms.

- Canonical URL: https://ai.eterna.exchange/guides/tradingview-mcp-plus-eterna-execution
- Last updated: November 23, 2026
- Author: Eterna Research (MCP & Agent Infrastructure Team)
- MCP endpoint: https://mcp.eterna.exchange/mcp

Millions of traders already have battle-tested Pine Script alerts on TradingView, yet brittle webhook relays blindly market-buy into thin books or duplicate positions. Putting an Eterna MCP agent in the execution loop fixes both problems.

## Key Facts

| Metric | Value | Notes |
|--------|-------|-------|
| TradingView Role | Charting & Alert Trigger | Read-only analysis / Pine Script |
| Eterna MCP Role | Validation & Execution | Spread check, sizing, SL/TP bracket |
| Duplicate Protection | getPositions() check | Never double-enters same symbol |
| Execution Cost | 0.014% / 0.035% | $0/mo relay fee |

## 1. Four-Step Verified Webhook Execution Pipeline

1. **Fire structured JSON from TradingView Alert**: Send `{ symbol: 'BTCUSDT', direction: 'LONG', invalidation: 91200, reason: 'Pine breakout' }` to your n8n webhook.
2. **Agent checks open exposure on Eterna**: Inside `execute_code`, call `eterna.getPositions()` and `eterna.getOrders()` to reject duplicate signals or correlated over-exposure.
3. **Verify live orderbook spread and RSI filter**: Reject stale alerts if spread > 10 bps or 15m RSI is already overextended (>78 on longs).
4. **Size to 1% equity risk and place bracket order**: Compute `qty = (equity * 0.01) / Math.abs(entry - invalidation)`, round to `qtyStep`, and submit with mandatory `stopLoss` and `takeProfit`.

## Frequently Asked Questions

### Do I even need TradingView MCP if Eterna already has built-in technical indicators?

For standard RSI, MACD, EMA, SMA, Bollinger Bands, and VWAP strategies, Eterna's native SDK is faster and needs no external server. Pair TradingView when you rely on custom Pine Script indicators or visual chart annotations.

## References & Primary Sources

- [n8n MCP Automation Guide](https://ai.eterna.exchange/integrations/n8n-make-automation): Webhook trigger setup with n8n MCP Client Tool.

## Related Guides

- [n8n AI Agent Workflow for Crypto Trading via Eterna MCP](https://ai.eterna.exchange/integrations/n8n-make-automation)
- [Best Crypto MCP Servers in 2026: Ranked & Tested for AI Trading](https://ai.eterna.exchange/guides/best-crypto-mcp-servers-2026)
- [Automated Crypto Technical Analysis with MCP: RSI, MACD, EMA, Bollinger Bands & VWAP](https://ai.eterna.exchange/guides/automated-technical-analysis-mcp)
