Back to Blog
    Trading Education
    #tradingview
    #alerts
    #webhooks

    How to Send TradingView Alerts to Discord or Telegram

    NickTradesNickTrades
    September 16, 20263 min read
    Share:
    How to Send TradingView Alerts to Discord or Telegram


    How to Send TradingView Alerts to Discord or Telegram

    Email alerts get buried. A message that lands in a channel you already have open is far more likely to be read. TradingView supports this through webhooks — a URL it posts your alert message to the moment the alert fires.

    Plan requirement

    webhook URLs on alerts are a paid TradingView feature. On the free plan you're limited to app, email and popup notifications.


    Step 1: get a Discord webhook URL

  1. In Discord, open Server Settings → Integrations → Webhooks.

  2. Click New Webhook, choose the channel it should post to, and name it.

  3. Click Copy Webhook URL. Treat this URL like a password — anyone with it can post to that channel.
  4. Step 2: attach it to the alert

  5. Create your alert as normal (right-click the chart → Add alert, or the clock icon in the right toolbar).

  6. Open the Notifications tab of the alert dialog.

  7. Tick Webhook URL and paste the Discord URL.

  8. Set the trigger to Once Per Bar Close so you aren't notified about conditions that vanish before the candle ends.
  9. Step 3: write a message Discord can display

    Discord expects JSON with a content field. Put this in the alert's Message box:

    {"content": "{{ticker}} {{interval}} alert fired at {{close}} ({{timenow}})"}

    The double-brace items are TradingView placeholders, replaced at send time. The useful ones:

    PlaceholderValue
    `{{ticker}}`Symbol, e.g. BTCUSDT
    `{{exchange}}`Exchange name
    `{{interval}}`Chart timeframe
    `{{close}}` `{{open}}` `{{high}}` `{{low}}`Candle values
    `{{volume}}`Candle volume
    `{{time}}` `{{timenow}}`Bar time and fire time, UTC
    `{{plot("name")}}`A named plot from the indicator

    If the message isn't valid JSON, Discord silently rejects it and nothing appears — that's the most common failure.

    Telegram needs a relay

    Telegram's bot API doesn't accept TradingView's payload shape directly, so you need something in between: a small serverless function, or one of the automation services that offer a TradingView-to-Telegram bridge. The TradingView side is identical — you just point the webhook at the relay's URL instead.

    When nothing arrives

    Work through these in order:

  10. Test the URL independently. Send it a test post from any HTTP client with the same JSON body. If Discord doesn't show it, the URL or JSON is wrong, not TradingView.

  11. Check the alert log. The alerts panel shows fired alerts. If nothing fired, it's an alert-condition problem — see alerts not working.

  12. Check "Once" vs "Once per bar". An alert set to "Only Once" deletes itself after the first fire.

  13. Check quotes. Smart quotes pasted from a document break the JSON. Retype them in the alert box.

  14. Rate limits. Discord throttles a webhook posting many times per minute. Alert on closed bars, not every tick.
  15. Don't wire it to live orders casually

    A webhook that reaches a broker or an exchange API is an order-placing machine that runs whether or not you're at the desk. If you go that route, test it on a paper account first and keep a hard position-size cap on the receiving side. See paper trading on TradingView.

    Educational content only. Nothing here is financial advice, and trading carries a substantial risk of loss.

    NickTrades

    NickTrades

    Founder of SimpleAlgo and professional trader sharing insights on trading strategies, market analysis, and product updates.

    Related Articles

    Next steps on this topic from the rest of the SimpleAlgo library.