Premium Feature

TradingView Webhook Integration

Send supported TradingView alert fields into TradeInsights as draft records, then review the data before it enters your analytics history.

Instant Draft Trades

A valid webhook request can create a draft record for review. Delivery and processing timing are not guaranteed.

Secure Tokens

SHA-256 hashed tokens with per-token rate limiting. Revoke tokens instantly.

Auto-Close

Send a "close" action to automatically close the matching open trade with P&L calculation.

Setup Guide

1

Generate a Webhook Token

Go to the Developer Portal and create a webhook token. You'll get a unique URL to use in TradingView.

2

Create a TradingView Alert

Open any chart on TradingView. Click 'Alert' to create a new alert with your preferred conditions (indicators, price levels, etc.).

3

Configure the Webhook

In the alert settings, enable 'Webhook URL' and paste your unique webhook URL from Step 1.

4

Set the Alert Message

In the 'Message' field, paste the JSON payload format. Use TradingView's built-in variables for dynamic data.

Alert Message Format

Copy this JSON template into your TradingView alert message field

Buy / Sell Alert

{
  "symbol": "{{ticker}}",
  "action": "buy",
  "price": {{close}},
  "timestamp": "{{timenow}}"
}

Change "buy" to "sell" for short positions.

Close Alert

{
  "symbol": "{{ticker}}",
  "action": "close",
  "price": {{close}},
  "timestamp": "{{timenow}}"
}

This closes the most recent open trade for the symbol and calculates P&L.

Available Fields

FieldRequiredDescription
symbolTrading symbol (e.g., BTCUSDT, EURUSD)
actionbuy, sell, or close
priceOptionalAlert trigger price (defaults to 0)
timestampOptionalISO timestamp (defaults to now)
quantityOptionalPosition size (defaults to 1)

Rate Limits & Security

Tokens are SHA-256 hashed before storage. We never store the raw token.

Default rate limit: 60 requests per minute per token. Exceeding this returns a 429 status.

Up to 5 active webhook tokens per account. Revoke unused tokens for security.

Add TradingView alerts to the analytics workflow

Available for Premium and Pro subscribers.

Frequently Asked Questions

Does my TradingView plan support webhooks?

TradingView controls webhook availability and can change plan requirements. Confirm that webhook URLs are enabled for your current TradingView plan before configuring the integration.

Does the webhook create the full trade, or do I still need to confirm it?

The webhook creates a draft trade pre-filled with the symbol, direction, and entry price from the alert. You review and submit it in TradeInsights — so you always stay in control before anything is logged.

Which TradingView variables can I use in the alert message?

Use variables that map to the payload fields currently documented in the Developer Portal, such as supported symbol, action, price, size, and timestamp values. Unsupported or malformed fields may be rejected or omitted.

Is the webhook connection secure?

Yes. Each webhook token is unique to your account and is SHA-256 hashed before storage — we never store the raw token. Tokens can be revoked at any time from the Developer Portal.

Which TradeInsights plan includes TradingView webhook integration?

Webhook integration is available on Premium ($24/month) and Pro ($49/month) plans. It is not available on the free plan.

Ask me anything

AI Assistant

Hi! How can I help you today?
Powered by AssistLayer