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.
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
Every 5 minutes ClickRuntime checks your Gmail for new emails from TradingView.
It reads the ticker, the buy or sell signal and the price from each one.
Alerts it has already sent are skipped.
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
Build your own
Need it to work differently?
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
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?
Can I send alerts to a group instead of myself?
What if an alert email has a different format?
What permissions does it need?
Does it need AI?
How many runs does it use?
Can I change how it works?
Related
You might also like
Sort your inbox with AI and get urgent emails on Telegram
New emails are labelled and newsletters archived for you, and only the urgent ones reach your phone as a Telegram message.
See how it worksAnswer support emails from your FAQ and escalate the rest to Telegram
Routine support questions get a reply from your FAQ within minutes, and anything the AI is unsure about is sent to you on Telegram instead.
See how it worksReply to new lead emails fast and get a Telegram ping
Each new lead email gets a personal first reply within minutes, and you get a Telegram message with the lead and how promising it looks.
See how it worksKeep exploring
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.