Reviews

TradingView Webhook: Requirements, JSON Message and Limits

What it sends, what your account and your server must provide, and why it places no order by itself.

· Founder of PatternsWizard
Checked 6 min read
5 plans, 4 criteria. Every value published.
On this page
  1. TradingView webhook requirements
  2. How to configure a webhook alert
  3. Message format and placeholders
  4. Auto-stop, duplicates and lost messages
  5. Webhook not working: what to check
  6. Can a webhook automate trading?
  7. Which plan for webhooks
  8. Frequently asked questions

Every pattern's results on one sheet

The only pattern cheat sheet with tested stats: 153 patterns, what the textbook says and what really happened on 6 markets. Free PDF, sent to your inbox.

The PDF by email, plus our newsletter: new tests and results that change. Unsubscribe anytime. Privacy.

A TradingView webhook sends an alert to an app of your choice: when the alert is triggered, an HTTP POST request goes to a URL you provide, with the alert message in the body. It needs a paid plan and 2-factor authentication (2FA), and it only notifies: no order is placed. Rules from the official help center, December 6, 2026.

TradingView webhooks by plan

PlanPriceWebhook notificationsAlert limitsDurationChecked
BasicFor: Notifications by app, email or sound onlyFreeNot included3 on price, no technical1 monthSource: tradingview.com
EssentialFor: A first connection on a few setups$14.95 a month, or $12.95 a month billed annuallyYes20 on price and 20 technical2 monthsSource: tradingview.com
PlusFor: Many setups sent to one app$34.95 a month, or $29.95 a month billed annuallyYes100 on price and 100 technical2 monthsSource: tradingview.com
PremiumFor: Connections that should not expire$69.95 a month, or $59.95 a month billed annuallyYes400 on price and 400 technicalNo expiry (open-ended)Source: tradingview.com
UltimateFor: Professional users and very large lists$239.95 a month, or $199.95 a month billed annuallyYes1,000 on price and 1,000 technicalNo expiry (open-ended)Source: tradingview.com
Values as published on the official pages, on the date shown in each row. From the plan comparison of the pricing page, December 6, 2026. Regular prices in US dollars, before any sales tax.

It is one of the notification channels, next to email and sound. The address comes from the service that will receive the call (a chat app, a spreadsheet connector, your own code): you only paste it, and what happens next is decided on that side alone.

TradingView webhook requirements

RequirementRule (December 6, 2026)
PlansEssential, Plus, Premium and Ultimate; not on Basic
AccountWebhook alerts are only allowed when 2-factor authentication is enabled
Content typeapplication/json if the alert message is valid JSON, text/plain otherwise
Ports80 and 443 only; any other port number is rejected
TimeoutCancelled if your server takes longer than three seconds to process it
NetworkIPv6 is not supported; a local or private IP is refused
Sending IP addresses52.89.214.238, 34.212.75.30, 54.218.53.128, 52.32.178.7
RetriesOn a 500 to 599 response (except 504), sent again after 5 seconds, up to 3 times
Size4,000 characters in the Message field; 40,960 when it is built by a script

How to configure a webhook alert

  1. Turn on 2FA for your account: the option is not allowed without it.
  2. Create or edit an alert (the basics are in how to use TradingView).
  3. In the Notifications tab, enter the address given by the receiving app in the Webhook URL field.
  4. Write what should be sent, then save.
  5. After the first trigger, open the log and monitor delivery in its Webhook status column.

Message format and placeholders

Many services expect JSON instead of plain text, the default format, so see what the one you connect expects: the help center gives the example of Slack, which expects a key named text. Placeholders, written between double curly brackets, are replaced by live values at the trigger:

  • {{ticker}}, {{exchange}}: the symbol.
  • {{open}}, {{high}}, {{low}}, {{close}}, {{volume}}: the candle that triggered.
  • {{time}}, {{timenow}}, {{interval}}: candle date, trigger date (UTC) and interval.
  • {{plot_0}} to {{plot_19}}: output series of the indicator.
  • {{strategy.order.action}}, {{strategy.order.contracts}}, {{strategy.order.price}}: strategies only.

An example for a neckline (ours, built only from documented placeholders):

{
  "symbol": "{{exchange}}:{{ticker}}",
  "price": "{{close}}",
  "fired_at": "{{timenow}}",
  "note": "neckline crossed"
}

To test your endpoint before you rely on it, send it the same call by hand, in the form the help center documents:

curl -H 'Content-Type: application/json; charset=utf-8' -d '{"text": "BTCUSD Greater Than 9000"}' -X POST https://YOUR-ENDPOINT

In Pine Script, alertcondition() takes a fixed string that can include placeholders, while alert() can include calculated values.

Auto-stop, duplicates and lost messages

An alert triggered more than 15 times in 3 minutes is stopped automatically, so a condition that flickers around a level can silence itself. After a retry, the same call can arrive up to 4 times for one trigger: your app should ignore duplicates. And delivery is not guaranteed, since webhooks "may occasionally fail to reach the specified URL".

Webhook not working: what to check

What you seePossible causes
The option cannot be usedBasic plan, or 2FA is off
3xx error (redirection)The domain or path has changed, or a redirect leads to an authorization screen
4xx error (client error)The endpoint does not exist, authorization failed, invalid content in the body, or too many requests
5xx errorThe receiving side is temporarily unavailable or timed out
Timeout exceededNo response in time: overload or network issues
URL unavailable or invalidTypo in the address, localhost, domain not configured
Secure connection issuesIncorrect TLS settings
IP is not allowedThe address resolves to a private or internal one
Nothing arrives anymoreIt was stopped (15 times in 3 minutes) or has expired

Most of these errors come from the receiving side, so the support of that service is the first place to ask.

Can a webhook automate trading?

Not by itself. It only carries a notification to an address: a separate program has to receive it, decide and place the order with a broker, through that broker's own interface. The help center is explicit: "Our alerts are not designed for automated trading", and it warns against putting login credentials or passwords in the URL or in what you send. To place orders by hand from the chart instead, see the TradingView brokers.

Which plan for webhooks

Essential ($14.95 a month, or $12.95 a month billed annually) is the first plan that includes them: see the paid plans. The limits of each plan are in our guide to TradingView alerts, and everything else in the comparison of TradingView plans, among our trading reviews.

From our own tests: do chart patterns work? · chart patterns cheat sheet · candlestick patterns cheat sheet

Frequently asked questions

Where do I find my webhook URL?

In the app that receives the call, not on TradingView: a chat app or an integration service gives you the address, and you enter it in the Webhook URL field.

Does TradingView have an API?

Not for market data. Its help center states: "We don't have an API that gives access to data as of now", and adds that its REST API is meant for brokers. An AI assistant can get data through the official TradingView MCP, but it cannot create webhook alerts.

Can I automate trading in TradingView?

Not on its own. A strategy can send each order fill to a webhook, but that only delivers a notification: a separate program has to place the trade with a broker. A call can be missed or sent twice, so any automation carries real risk.

Are TradingView webhooks free?

No. They are not included in the free Basic plan and start with Essential, at $14.95 a month or $12.95 a month billed annually.

Sources

  1. Pricing and plan comparison
  2. How to configure webhook alerts
  3. I cannot send webhook to a URL with a port number
  4. Webhook resubmission
  5. What do errors mean when sending webhooks?
  6. Webhook authentication
  7. Using credentials for webhooks
  8. How to use a variable value in alert
  9. Introduction to alerts
  10. Strategy alerts
  11. Alert was triggered too often and stopped
  12. Alert name and message size limits
  13. Alert presets
  14. I need access to your API
  15. How to place an order on TradingView
  16. MCP Server documentation
  17. Pine Script documentation: FAQ
, Founder of PatternsWizard

Passionate about finance, quantitative trading and data analysis. Amaury built the PatternsWizard test bench, which detects each pattern on full price history and measures what happened next against random entries.

PatternsWizard tests chart and candlestick patterns on full market history, against random entries. How we test patterns.

179 patterns testedRandom-walk self-test passed

All reviews articles