TradingView Alerts and Webhooks: Rules, Timeouts and Limits for Automated Orders
A TradingView webhook sends an HTTP POST to your URL each time an alert fires. TradingView accepts only ports 80 and 443, cancels the request if your server takes longer than three seconds, requires two-factor authentication, and does not support IPv6. We did not measure latency, and the plan needed for webhooks is not stated on the pages we read.
What is a TradingView webhook and what are the hard limits?
An alert tells TradingView to notify you when a condition is met. One of the notification actions is a Webhook URL, which TradingView's alert guide says sends a POST request to that URL each time the alert triggers. A service listening at the URL can then act, for example by sending an order to a broker.
TradingView's webhook page sets these limits. Webhook alerts are only allowed when two-factor authentication is enabled on the account. Only ports 80 and 443 are accepted. If the remote server takes longer than three seconds to process a request, the request is cancelled. IPv6 is not supported. Requests come from four IP addresses (52.89.214.238, 34.212.75.30, 54.218.53.128 and 52.32.178.7) that you can allowlist on your server. Valid JSON messages are sent with an application/json header; anything else is sent as text/plain. TradingView also says webhooks can fail, and to check the Webhook status column in the alert log.
| Rule | What TradingView says |
|---|---|
| Two-factor authentication | Webhook alerts allowed only when 2FA is enabled |
| Ports | Only 80 and 443; other ports are rejected |
| Timeout | Request cancelled if the server takes longer than 3 seconds |
| IPv6 | Not supported |
| Source IPs | 52.89.214.238, 34.212.75.30, 54.218.53.128, 52.32.178.7 |
| Content type | application/json for valid JSON, otherwise text/plain |
| Failure | Check the Webhook status column in the alert log |
Which TradingView plan do you need?
We could not confirm this. TradingView's webhook support page does not state a plan requirement, and the alerts help article says alert values can be used with webhooks without naming a plan. TradingView's pricing page, read on 23 November 2026, had a webhook row that came back blank for the four plans we could read (Basic, Essential, Plus and Premium). We read that as unclear, not as proof that webhooks are not included. Check the Notifications tab when you create an alert on your own plan: if the Webhook URL box is offered, it is available to you.
What the pricing page does state is the number of active alerts by plan, and alerts are what a webhook rides on.
| Plan | Price per month, billed annually | Active price alerts | Active technical alerts |
|---|---|---|---|
| Basic | C$0 | 3 | None listed |
| Essential | C$19.95 | 20 | 20 |
| Plus | C$41.95 | 100 | 100 |
| Premium | C$82.95 | 400 | 400 |
How do you create an alert that sends a webhook?
TradingView's alert guide lists six ways to open the alert dialog, including the toolbar button, the alert manager, the right-click menu, and the keyboard shortcut ALT + A on Windows. In the dialog you set the trigger condition, the frequency (once or multiple times), an optional expiry timer, a name and a message. Under notification actions, tick Webhook URL and paste your address.
The message is what your server receives. You can fill it with placeholders that TradingView replaces when the alert fires. The help centre lists these, among others: {{ticker}} and {{exchange}} for the symbol; {{open}}, {{high}}, {{low}}, {{close}} and {{volume}} for the bar; {{time}} (bar time in UTC) and {{timenow}} (the time the alert fired); {{interval}} for the chart timeframe; and, for strategy alerts only, {{strategy.order.action}}, {{strategy.order.contracts}}, {{strategy.order.price}}, {{strategy.position_size}} and {{strategy.market_position}}. Many receiving services expect JSON, so write the message as JSON and check the target's documentation.
| Placeholder | Meaning | Alert type |
|---|---|---|
| {{ticker}} | Symbol | Any |
| {{close}} | Close of the bar at trigger | Any |
| {{timenow}} | Time the alert fired, to the second | Any |
| {{strategy.order.action}} | Order action | Strategy only |
| {{strategy.order.contracts}} | Order size | Strategy only |
| {{strategy.position_size}} | Position size | Strategy only |
Worked example: a payload and the three-second budget
This is a hypothetical example, not a tested configuration. A strategy alert message written as JSON could read: {"symbol":"{{ticker}}","action":"{{strategy.order.action}}","qty":{{strategy.order.contracts}},"price":{{close}}}. When a strategy buys 2 contracts of MES at 5,000.25, your server would receive a JSON body with symbol MES1!, action buy, qty 2 and price 5000.25. The exact ticker string depends on the symbol on your chart.
Now the timing. TradingView cancels the request at three seconds, which is 3,000 ms. Suppose your server needs 150 ms to check the payload, 600 ms to call a broker API and 100 ms for its own overhead. That is 850 ms, leaving 2,150 ms of margin before the cancel. If the broker API takes 2.5 seconds on a bad day, the total is 2,750 ms, which still fits but leaves only 250 ms. We did not measure real latency from TradingView to any broker bridge, and TradingView publishes no latency guarantee on the page we read, so build in your own measurements.
| Step | Hypothetical time (ms) | Running total (ms) |
|---|---|---|
| Check payload | 150 | 150 |
| Broker API call, normal day | 600 | 750 |
| Server overhead | 100 | 850 |
| Margin to 3,000 ms | 2,150 | Not applicable |
| Broker API call, bad day (2,500 instead of 600) | 2,500 | 2,750 |
What can go wrong?
A webhook that times out is cancelled, and TradingView says webhooks can fail. If your alert is an entry and the exit alert is missed, you can be left with a position and no exit order. Build the receiving service to be idempotent, so a repeated message does not double an order, and keep stops at the broker rather than only in an alert.
Alerts also expire. TradingView's pricing page showed expiry durations of one month on Basic and two months on Essential and Plus in its comparison table, while the same page also listed alerts that do not expire for paid plans; the two statements conflict, so check your plan before you rely on a long-running alert.
Check the rules of the account you trade. Topstep's help centre says TopstepX API access is a separate paid product, and some firms limit automation or remote hosting; see our automated trading page and our trading VPS page. We did not confirm each firm's stance on TradingView webhooks.
Who should not use webhooks for orders
Skip webhooks if you cannot monitor the system when it runs, if your prop firm prohibits automation, or if you cannot accept missed or late signals. Skip them if a single mistake could breach a daily loss limit faster than you could react. A semi-automatic approach, where the alert only notifies you and you place the order, avoids the timeout problem altogether and works on any plan that gives you the alerts you need.
Frequently asked questions
What is the TradingView webhook timeout?
TradingView cancels a webhook request if the receiving server takes longer than three seconds to process it.
Do TradingView webhooks need two-factor authentication?
Yes. TradingView says webhook alerts are only allowed when two-factor authentication is enabled.
Which ports can a TradingView webhook use?
Only ports 80 and 443. Requests to other ports are rejected, and IPv6 is not supported.
Which TradingView plan includes webhooks?
Not confirmed. The support pages we read do not name a plan; check the Notifications tab in the alert dialog on your plan.
How do I send the order details in the alert?
Write the alert message as JSON using placeholders such as {{ticker}}, {{close}} and, for strategy alerts, {{strategy.order.action}} and {{strategy.order.contracts}}.
Sources
Provider documents behind this page, checked November 23, 2026.