I posted this as comment to help someone but if you want to setup AI scheduled task to tradingview MCP and generate alert watchlist list. This should get you started. You'll need to update some parts.
# TradingView Alerts to Watchlists — AI Starter Guide
Nov 24, 2026 · u/therichfuller
An AI assistant (Claude or ChatGPT) reads your TradingView alert log through TradingView's MCP connection, groups the tickers that fired by alert name, and rebuilds one watchlist with a section per alert. A run takes about 4–5 TradingView calls, and you only need to paste one prompt.
## What you need
You need a paid TradingView plan, the TradingView MCP connection added to your AI app, and alerts that already fire.
- **Connect the MCP:** follow TradingView's own setup instructions for the MCP server, then add it as a connector in Claude (Settings → Connectors) or as an app in ChatGPT. Ask the AI "list my TradingView watchlists" to check it works.
- **Daily call limit:** every request the AI makes to TradingView counts as one call. The limits from November 17, 2026 are below; they are shared by every chat and scheduled task on your account.
| TradingView plan | MCP calls per day |
| --- | --- |
| Essential and legacy plans | 10 |
| Plus | 20 |
| Premium | 50 |
| Ultimate | 150 |
| Any paid plan + AI subscription | 500 (and 50 a minute) |
This job takes about 4–5 calls a run, so it fits every plan, but leave room for anything else you use the connection for.
## Set up your alerts and the watchlist
The alert name becomes the watchlist section, so name every alert for what it means.
- **Name alerts by setup, not by ticker:** "RSI oversold", "MA cross up", "Volume spike". Alerts with the same name are grouped together.
- **Put the name in the alert message too,** for example `{{ticker}} — RSI oversold`. The alert log returns the message, so the AI can sort even when the log leaves the name out.
- **Prefer "Once per bar close"** for daily setups. Alerts that fire intrabar can trigger and then fail by the close.
- **Create the target watchlist once** in TradingView (for example "Alert Hits"), and get its id by asking the AI "list my TradingView watchlists". The run only ever changes that one list.
- **Pick the window:** the last session (daily review), or the last 5 days (weekly review).
## How a run works
The AI reads the alert log once, sorts it, and replaces the watchlist's contents in one write. Tool names can differ slightly between apps.
1. **Read the fires:** the alert log tool (`get-alerts-log`) with `days` = the window and `limit` 2000. It returns when each alert fired, the symbol and the message.
2. **Match fires to alert names:** if the log has no alert name, read the alert list once (`list-alerts`) and match by alert id or by the name in the message.
3. **Keep only the window:** drop fires outside it and fires of alerts you deleted.
4. **Group by ticker:** for each ticker, the set of alert names that fired on it.
5. **Build the sections:**
- Combos first: tickers hit by 2 or more alerts, one section per combination, named by those alerts (`###RSI oversold + Volume spike`), the largest combinations on top.
- Then one section per alert for the tickers only that alert hit (`###RSI oversold · 12 fired`).
- A ticker appears once, in the first section that has it.
6. **Rebuild the watchlist:** read it (`get-watchlist`) and check its name matches, remove every current entry in one call (`remove-from-watchlist`, section headers included), then add the new list in order in one call (`add-to-watchlist`). Entries starting with `###` become section headers.
7. **Report:** sections and counts, tickers with the most alerts, and anything that failed.
## The starter prompt
Paste this into Claude or ChatGPT with the TradingView connection on. Change the two lines in angle brackets first.
```text
Use my TradingView MCP connection to sort my alert hits into a watchlist.
Target watchlist: <watchlist name> (id <watchlist id>). Change no other watchlist.
Window: <the last trading session | the last 5 trading days>.
Steps:
1. Read my alert log once (days = the window, limit 2000). If the log does not give
the alert name, read my alert list once and match each fire to its alert name by
alert id or by the name in the message.
2. Keep fires inside the window only. Leave out fires of alerts I have deleted.
3. For each ticker, collect the set of alert names that fired on it.
4. Build the watchlist in this order:
- Tickers hit by 2 or more alerts: one section per combination, named by those
alerts joined with " + ", combinations with more alerts first.
- Then one section per alert for tickers only that alert hit, named
"<alert name> · <N> fired", most fires first.
- Each ticker once, in the first section that has it. Section headers are entries
that start with "###". Tickers in EXCHANGE:TICKER form.
5. Read the target watchlist and confirm its name. Remove every current entry in one
call, then add the new list, in order, in one call.
6. Tell me: each section with its tickers, the tickers with the most alerts, how many
TradingView calls you made, and anything that failed.
Rules: about 5 TradingView calls in total; no extra checks or re-reads; never retry a
call refused for the daily limit; never create, edit or delete alerts; if the
watchlist name does not match, stop and tell me.
```
## Run it every day
Once a manual run looks right, schedule the same prompt so the list is ready each morning.
- **Claude:** ask "make this a scheduled task every weekday at 6:30 pm ET" in the chat where the run worked, or create one from the scheduled tasks page.
- **ChatGPT:** ask it to turn the prompt into a scheduled task at the same time.
- **When:** after the close for daily alerts (fires decided at the bar close), or before the open if you want the list ready to scan with your coffee.
- **Add one line for unattended runs:** "Run end to end without asking questions; if something fails, stop and report it."
- Run it once by hand first and check the sections in TradingView before scheduling it.
## Call budget per run
A normal run is 4 calls, or 5 when the alert list is needed to match names.
| Step | Tool | Calls |
| --- | --- | --- |
| Read the alert log | `get-alerts-log` | 1 |
| Match alert names (only if the log lacks them) | `list-alerts` | 0–1 |
| Read the watchlist and confirm its name | `get-watchlist` | 1 |
| Clear the watchlist | `remove-from-watchlist` | 1 |
| Add the new list with sections | `add-to-watchlist` | 1 |
| **Total** | | **4–5** |
On the Essential plan (10 a day), one daily run leaves about 5 calls for everything else; on Premium (50) it leaves about 45.
## Troubleshooting
| What you see | Likely cause | Fix |
| --- | --- | --- |
| Every ticker lands in one section, or sections say "unknown" | The log carries no alert name | Put the alert name in each alert's message, or let the run read the alert list (step 2) |
| Tickers you never meant to buy keep appearing | Intrabar fires that failed by the close | Set the alerts to "Once per bar close" |
| Old entries stay in the list | The remove step missed section headers | Ask it to remove every entry, headers included, before adding |
| "Watchlist not found" | Wrong id, or the list was renamed or deleted | Ask "list my TradingView watchlists" and update the id in the prompt |
| A call refused for the daily limit | Other chats or tasks used the day's calls | Wait for the reset; keep other TradingView use light on run days |
| The AI asks questions in a scheduled run | No unattended rule | Add "run end to end without asking questions" |
## Make it yours
Each of these is one extra line in the prompt and costs no extra calls.
- **Only some alerts:** "Use only alerts whose names start with Daily."
- **Order inside a section:** "Within each section, most recent fire first."
- **Rename sections:** "Call the RSI oversold section Oversold bounce watch."
- **Skip noise:** "Leave out tickers that fired only once in the window" (for a 5-day window).
- **A second list:** run the prompt again with another watchlist and window, for example a weekly list; that adds about 4 calls.