Skip to content

Every 5 minutes

Send TradingView alert emails to Telegram

New TradingView alert emails reach your phone on Telegram within minutes, with the ticker, signal and price.

Runs
Every 5 minutes
Apps
Gmail, Telegram
AI
Not needed
Access
Gmail gmail.readonly; Telegram bot token

Send this to your assistant

Create a ClickRuntime automation: every 5 minutes, check for new TradingView alert emails and send the ticker, action and price to my Telegram.

Paste it into your assistant. It tells you what it will send or change before it runs live.

First time? Adding ClickRuntime to your assistant takes about two minutes.

Why use it

Why teams use this automation

A trader has alerts set up for a watchlist, but email notifications are easy to miss among newsletters and receipts, and by the time the alert is seen the move has happened.

This automation picks up each alert email and sends a short Telegram message with the essentials, so the signal reaches the app you actually watch.

What you get out of it

  • Signals where you will see them

    Telegram messages stand out on a phone in a way a busy inbox does not, so alerts get noticed while they are still useful.

  • Just the essentials

    The message carries the ticker, signal and price, readable from the lock screen without opening the email.

  • Each alert once

    Every alert is sent a single time, so your chat stays a clean list of signals.

  • Your inbox stays as it is

    The original emails are left untouched, so they remain a full record if you need the details later.

How it works

What happens, step by step

  1. Every 5 minutes ClickRuntime checks your Gmail for new emails from TradingView.

  2. It reads the ticker, the buy or sell signal and the price from each one.

  3. Alerts it has already sent are skipped.

  4. A short message is sent to your Telegram chat for each new alert.

Before it runs live

  • Connect Google through your own Google app (a one-time, 10-minute setup), so it works with your own Gmail
  • Connect Telegram

What you get

RunsEvery 5 minutes
Send TradingView alert emails to Telegramtoday, 9:00Succeeded
Telegram · Alerts📈 TSLA BUY at 248.10

Build your own

Need it to work differently?

This template is a starting point. Copy the prompt and change it, or describe a different automation from scratch, with your own conditions, more apps or an AI step. Your assistant writes it, tests it and runs it on ClickRuntime.
  • Your own rules

    Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.

  • Any number of apps

    One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.

  • AI where it helps

    Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.

  • On a schedule or on each event

    Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.

Changes you can ask for

  • Act only on the items that match your own rules, and skip the rest
  • Add an AI step, for example to summarize, sort or draft a reply
  • Add another app, for example also send it to Slack
  • Combine it with other Gmail and Telegram steps into one automation

Under the hood

The code that runs this automation

This is the Python script that runs each time the automation starts. Your AI assistant writes it for you when you send the prompt, and you allow each step in your assistant. To change how the automation works, describe the change to your assistant and it updates the script for you. For every function it can use, see the script reference.
forward_alert_emails_to_telegram.pyexample
import re
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
from clickruntime import on_trigger, credentials, http, state, report_fetched

CHAT_ID = "your-telegram-chat-id"
PATTERN = re.compile(r"\b([A-Z]{1,6})\b.*?\b(buy|sell)\b.*?([0-9]+(?:\.[0-9]+)?)", re.I | re.S)

@on_trigger
def run(event):
    gmail = build("gmail", "v1", credentials=Credentials(credentials.connection("google", "work")), cache_discovery=False)
    sent = set(state.get("sent") or [])
    ids = [m["id"] for m in gmail.users().messages().list(userId="me", q="from:noreply@tradingview.com newer_than:1d")
           .execute().get("messages", []) if m["id"] not in sent]
    report_fetched(len(ids))
    if not ids:
        return {"sent": 0}
    token = credentials.secret("TELEGRAM_BOT_TOKEN")
    for mid in reversed(ids):
        snippet = gmail.users().messages().get(userId="me", id=mid, format="metadata").execute()["snippet"]
        hit = PATTERN.search(snippet)
        text = f"📈 {hit.group(1).upper()} {hit.group(2).upper()} at {hit.group(3)}" if hit else snippet[:200]
        http.post(f"https://api.telegram.org/bot{token}/sendMessage", json={"chat_id": CHAT_ID, "text": text})
        sent.add(mid)
    state.set("sent", list(sent)[-500:])
    return {"sent": len(ids)}

FAQ

Common questions

How quickly do alerts arrive?
Within about 5 minutes of the email reaching your inbox, since Gmail is checked every 5 minutes.
Can I send alerts to a group instead of myself?
Yes. Add your bot to a Telegram group and use the group's chat ID, and everyone in it receives the alerts.
What if an alert email has a different format?
If the ticker, signal and price cannot be read, the email subject is sent instead, so nothing is dropped.
What permissions does it need?
Gmail gmail.readonly; Telegram bot token. Nothing else in your accounts is used.
Does it need AI?
No. It runs without AI, so it doesn't use your plan's AI allowance.
How many runs does it use?
One run each time it checks. Checks that find nothing new and stop right away aren't counted.
Can I change how it works?
Yes. Describe the change to your AI assistant, for example a different schedule, channel or filter. It updates the automation, tests it and tells you what changed.

Set up “Send TradingView alert emails to Telegram” from your assistant

Copy the prompt above, or connect your assistant first. Free plan, no credit card.