How to Send TradingView Alerts to Discord or Telegram (Webhook Setup) and a NinjaTrader Alternative
TradingView alerts can pop up on your screen and phone, but many traders want them in a Discord channel or a Telegram chat, alone or with their group. TradingView does it through webhooks. Here is what you need, how to set it up and what usually goes wrong.
What you need
- A paid TradingView plan: webhook alerts aren't available on the free plan.
- Two-factor authentication turned on in your TradingView account: TradingView only allows webhook alerts with 2FA enabled.
- A destination: a Discord channel webhook URL, or a small service (bot or automation tool) that receives the webhook and forwards it to Telegram.
Sending alerts to Discord
- In your Discord server, go to Server Settings → Integrations → Webhooks, create a webhook, pick the channel and copy its URL.
- In TradingView, create the alert, open the Notifications section, turn on Webhook URL and paste the Discord URL.
- In the alert Message, write JSON with a
contentfield, which is what Discord shows as the message text. For example:{"content": "NQ crossed {{close}} on {{interval}}"}.
TradingView sends whatever you write in the message box as the request body, so the format has to match what Discord expects. Plain text without the content field is rejected.
Sending alerts to Telegram
Telegram doesn't accept TradingView's webhook directly: it expects requests in its own Bot API format. The usual options are a small relay (a serverless function or an automation tool) that receives the webhook and calls the Telegram bot, or a third-party service built for this. You'll need a bot token from @BotFather and your chat id.
Common mistakes
- 2FA turned off: the webhook field stays unavailable.
- Invalid JSON: a missing quote or comma and Discord drops the message. Test with a simple message first.
- Expired alerts: depending on the plan, alerts can expire; check the expiration date when you create them.
- Sharing the webhook URL: anyone with it can post to your channel. Keep it private.
Alternative: alerts from your NinjaTrader data
If you trade futures through NinjaTrader and use TradingView only for charts and alerts, you may be paying twice for the same CME data (see TradingView CME data cost). TQ Charts reads prices from your NinjaTrader and sends its own alerts to Telegram, Discord or your own webhook without a relay: paste the bot token and chat id or the Discord webhook URL, press Send test, and you're done. Alerts can watch price levels, zones, trend lines, indicators like VWAP or an EMA, or a fast move. The full setup is in NinjaTrader alerts to Telegram or Discord.
FAQ
Can I send TradingView alerts to Discord for free?
No. Webhook alerts need a paid TradingView plan, plus two-factor authentication on your account.
What message format does Discord need?
JSON with a content field, for example {"content": "your alert text"}. TradingView placeholders like {{close}} work inside it.
Can TradingView send alerts straight to Telegram?
Not with its webhook alone, because Telegram's bot API expects a different request. You need a relay or a third-party service in between.