How to automate TradingView alerts with webhooks

By Apurv Kaushal, founder of Wicko · · updated

Say your alert is gold (XAUUSD) closing above 4,000 on the 1-hour chart. On its own, TradingView pops up a notice on your screen and phone. With a webhook, the same alert can do one of three jobs while you’re away:

  1. post a message to your Telegram or Discord
  2. add a row to a spreadsheet, so you have a record of every signal
  3. send an order to your broker, on paper or for real

People usually automate for the reason one trader gave on r/Forex: “automating the execution so the decision was made before the market opened not in the moment.” Below is how a webhook works, what TradingView needs from you, and which tool fits each of those three jobs. Every rule here comes from TradingView’s own help pages, and every price was checked on the vendor’s page on 5 November 2026.

What is a TradingView webhook, in plain words?

A webhook is TradingView ringing a web address you give it, with a message you write, the moment your alert fires.

Think of it as a doorbell. You give TradingView the address of another app. When the alert triggers, TradingView goes to that address and hands over your message. What happens next is up to the app on the other side.

In steps:

  • The alert fires on your chart.
  • TradingView sends your message to the web address as a POST request (a standard way for one app to send data to another).
  • The receiving app reads the message and acts: it posts to Telegram, writes a row, or places an order.

TradingView only ever sends. It doesn’t wait around for a reply, and it gives up if the other side takes longer than three seconds to answer.

What do you need before you can use webhooks?

Here are TradingView’s rules in one list, from its About webhooks page and its pricing page, both checked 5 November 2026:

  • A paid plan. Webhook notifications come with every paid tier. The free Basic plan can’t send them (see the table below).
  • Two-factor login. TradingView only allows webhook alerts once two-factor authentication is on.
  • The right port. If the address includes a port number, only 80 and 443 are accepted.
  • An IPv4 address. IPv6 isn’t supported for webhooks yet.
  • A fast receiver. If the other side takes more than three seconds, TradingView cancels the request.
  • The sending addresses, if you run a firewall. Webhooks come from 52.89.214.238, 34.212.75.30, 54.218.53.128 and 52.32.178.7.

TradingView also warns that webhooks “may occasionally fail to reach the specified URL”. You can see what happened to each one in the alert log, in the Webhook status column.

Is the TradingView webhook free?

No. You need a paid plan, and the cheapest one is enough. This is what TradingView’s own plan table showed on 5 November 2026:

TradingView planWebhook notifications
Basic (free)No
EssentialYes
PlusYes
PremiumYes
Ultimate (and Expert, where offered)Yes

Some bridge vendors’ blogs say you need Plus or higher. TradingView’s table says otherwise, so you can skip Plus if webhooks are the only reason you’d upgrade. If you’re weighing whether to pay at all, our guide to TradingView alerts for free lists what each plan allows and the no-cost ways around the limits. Plans and offers change often, so check the pricing page before you buy.

How do you set up a webhook alert in TradingView?

Start with the address from the app that will receive the alert, because TradingView has none of its own to offer. Then:

  1. Turn on two-factor login in your TradingView account settings, if it isn’t on already.
  2. Create the alert. Pick the condition, for example gold crossing a level or an indicator signal.
  3. Write the message in the Message box (see the example below).
  4. Open the Notifications tab and tick Webhook URL.
  5. Paste the address from your receiving app.
  6. Save the alert, then give it a dry run.
  7. Run a test. Make a copy of the alert with a condition that will trigger within a minute or two, let it fire once, then check the Webhook status column in the alert log and the receiving app’s own log. A free request-catcher site works well for a first test, because it shows you exactly what TradingView sent.

What should the alert message say?

Whatever the receiving app expects. Most apps want JSON, a simple format of names and values in braces. TradingView fills in placeholders in double braces when the alert fires. An example message for a strategy alert:

{
  "ticker": "{{ticker}}",
  "action": "{{strategy.order.action}}",
  "price": "{{close}}",
  "timeframe": "{{interval}}",
  "secret": "change-me-to-something-long"
}

When the message is valid JSON, TradingView labels it as JSON (application/json). Anything else goes as plain text (text/plain), and many apps will reject it. Two catches from TradingView’s placeholder help page:

  • {{strategy.order.action}} returns “buy” or “sell”, and only makes sense in a strategy alert.
  • {{interval}} returns “1” for price alerts, because TradingView works those out on 1-minute data. It shows the chart’s timeframe for alerts on indicators and drawings.

Paste your message into any JSON checker before you save. One missing quote mark turns the whole thing into plain text.

What is a webhook secret?

A webhook secret is a password your receiving app checks before it acts. It sits inside the message (like the secret line above) or inside the address. Anyone who learns your webhook address could send fake alerts to it, so the receiver should ignore any message without the right secret. Bridges such as TradersPost and PineConnector give you a key or ID to paste in. Treat the whole address and message like a password, and don’t post screenshots of them.

What can you automate, and which tool does each job?

Decide the job first, then pick the tool. Each step down this table costs more and has more parts that can break.

JobExample toolsCode?Cost (checked 5 Nov 2026)What usually breaks
Get told on Telegram or DiscordTelegram Bot API or a Discord webhook, directNoNothing beyond your TradingView planBroken JSON, wrong chat ID
Keep a record or reformatZapier, Pipedream, MakeNoCheck each relay’s pricing page; free tiers have run limitsThe relay’s plan limits, an extra service that can go down
Place a trade on MetaTrader 5PineConnectorNoCore $59/month; $7 for a 7-day Core trialThe MT5 terminal goes offline, broker symbol names
Place a trade at US brokers and futures platformsTradersPost, PickMyTradeNoTradersPost $49 to $299/month, 7-day trial; PickMyTrade $50/month or $500/year per broker login, 7-day trialThe broker link, order size set wrong in the message
Anything, your own wayYour own Python or Node serverYesServer cost plus your timeThe 3-second limit, uptime, security
No webhook at allWicko alerts (beta)NoFree during early access, no TradingView planIt’s a beta product

Prices come from each vendor’s own page on 5 November 2026: PineConnector, TradersPost and PickMyTrade. PineConnector’s Plus ($129) and Pro ($199) plans add more accounts. We make the last tool in the table, so judge that row knowing who wrote it.

If you send a lot of alerts into one Telegram chat, Telegram’s own limits apply too. Its Bots FAQ (checked 18 November 2026) says to avoid sending more than one message per second in a single chat, and a bot can’t send more than 20 messages a minute in a group. Ten alerts on one candle can hit that.

For the first job, our guide on sending TradingView alerts to Telegram has the exact steps and message. For a wider look at no-code automation tools, see Capitalise.ai alternatives.

Do you even need a webhook?

Maybe not. If all you want is to hear about a setup somewhere better than a pop-up, the webhook adds a paid plan, two-factor login and some JSON to look after. Traders feel that weight. One wrote on r/Daytrading that they want “just a stable VPS for the terminal, EAs, maybe TradingView webhooks, decent uptime, and without feeling like I have to pay hedge fund prices for it”. Another’s advice was blunter: “you may want to spend some time with ChatGPT to figure out ways to eventually NOT use webhooks at all”.

Can you trade automatically from TradingView alerts?

Yes, through a bridge. TradingView sends the message, and the bridge turns it into an order at your broker, using the size, side and order type you put in the message. TradingView’s own broker panel lets you place trades from the chart, but by hand.

Start on paper, every time. Point the bridge at a demo or paper account and let it run for at least a few weeks. Check each fill against what the alert said. You’re looking for wrong sizes, doubled orders, missed exits and symbols your broker names differently. Only then move to real money, at a small size. An automated order can lose money just as fast as a manual one, and a bug can repeat a mistake on every alert. Take US trading firm Knight Capital: on 1 August 2012, a faulty order router sent more than 4 million orders while trying to fill 212 customer orders, and the firm lost more than $460 million in about 45 minutes, according to the US SEC’s 2013 settlement notice. The SEC’s Daniel Hawke put it plainly: “Knight Capital’s failure to ask these questions had catastrophic consequences.”

When Europe’s markets regulator ESMA restricted CFDs in March 2018, it said 74–89% of retail CFD accounts typically lose money.

Why does my TradingView webhook say “delivery failed”?

Check these, in order:

  • The receiver was too slow. Over three seconds and TradingView cancels. Slow free-tier relays and home servers are the usual cause.
  • Wrong port or IPv6. Only ports 80 and 443 work, and only on IPv4.
  • Two-factor login is off. It may have been switched off after you made the alert.
  • The receiver blocked TradingView. A 401 or 403 error often means a firewall or a missing secret. Allow the four sending addresses above.
  • A typo in the address, or an expired link from the receiving app.

“Failed” doesn’t always mean nothing happened. A receiver can act on the message and still answer too late. Before you send a trade again by hand, check the receiver’s own log or your broker’s order list. For alerts that don’t fire at all, see TradingView alerts not working?.

Are webhooks reliable enough to trade on?

Mostly, with a plan for the bad days. TradingView says plainly that webhooks can fail to arrive, and our guide to delayed TradingView alerts shows how to tell whether a late trade came from the alert or the delivery. It doesn’t say whether it retries, and some developers report seeing the same alert twice. So build your setup to cope with a missed message and with a doubled one:

  • Send a second copy to yourself, such as a phone notification, so you notice when the bridge goes quiet.
  • Guard against repeats. If your bridge can skip a second identical signal within a short window, turn that on. If it can’t, cap your position size so a doubled order stays small.
  • Set limits at the broker, such as a maximum position size and a daily loss limit, so a broken message can’t run away.
  • Know where the off switch is. Find out how to pause your bridge and cancel open orders before the first live trade.

Where this is going

Wicko (wicko.ai) is the AI-native brokerage for chart traders, launching soon. Its first piece, alerts, is live in beta and skips the webhook entirely. Describe your setup in a sentence or send a chart screenshot, and your alert goes live within 24 hours. Wicko then watches the market itself and sends you the chart on Telegram when it forms, with Take, Skip and Why buttons. There’s no TradingView plan, no Pine Script and no JSON to maintain, and alerts are free during early access.

Today you place every trade yourself. When Wicko Brokerage launches, agents will place a trade only after you confirm it, and they can never withdraw money. That keeps you deciding on every trade, somewhere between a plain alert and a bot running on its own. Join the waitlist to try alerts now.

Wicko is the AI-native brokerage for chart traders, launching soon. This article is educational and not financial advice. Trading carries a significant risk of loss, and past performance does not guarantee future results.

Questions

Is the TradingView webhook free?

No. Webhook notifications come with every paid TradingView plan, starting with the cheapest, and the free Basic plan doesn't include them (TradingView pricing page, checked 5 November 2026). You also need two-factor login switched on before the Webhook URL box will work.

Which TradingView plan do I need for webhooks?

The cheapest paid plan is enough. TradingView's own plan comparison lists webhook notifications on every paid tier and not on the free Basic plan, as of 5 November 2026. Some third-party pages say Plus or higher, but TradingView's page is the one to trust.

Where do I find my TradingView webhook URL?

The app that receives the alert supplies the address, for example a Telegram Bot API link, a Zapier or Pipedream trigger URL, or the URL in your TradersPost or PineConnector account. You paste it into the alert's Notifications tab.

How do I test a TradingView webhook?

Point the alert at a free request-catcher site or your bridge's test mode, set a condition that will trigger within a minute, and let it fire. Then open the alert log in TradingView and read the Webhook status column, and check what the receiver got.

Can TradingView alerts place trades automatically?

Yes, but only through something in the middle: a bridge such as TradersPost, PickMyTrade or PineConnector, or your own server. TradingView sends the message and the bridge places the order at your broker. Run it on a paper or demo account first.

Can I automate TradingView alerts without a webhook?

Partly. Some people forward TradingView's alert emails into a relay, which is slower and less reliable. The other route is an alert tool that watches the chart itself and sends the message, such as Wicko alerts, which are in beta and need no TradingView plan.

Skip the webhook.

Get your setup as an alert on Telegram, free during early access, with the chart attached. No TradingView plan needed, live within 24 hours.

Get my first alert