TradingView Alerts and Webhooks: From Chart Signal to Executed Order

Smartphone alert connected by a gold line to a laptop running a trading platform

Quick answer: a well-built alert turns your chart into a watchman that works while you do not. The trick is firing it on bar close rather than on every tick, so you stop receiving warnings that vanish seconds later. A webhook is simply the message TradingView sends to another service when the alert triggers — that message is the bridge between a signal and a real order in your account.

Key takeaways

  • “Once per bar close” removes about 90% of false alerts.
  • The alert message should carry instrument, direction, price and signal type — not generic text.
  • A webhook does not execute; it hands the notice to a service that can.
  • There is always latency between alert and order. Measure it before trusting the chain.

The three alert types you will actually use

Type Fires when Used for
Price alert Price touches a level Watching supports, resistances and zones
Indicator alert The indicator meets a condition Flagging an entry or exit signal
Strategy alert The strategy opens or closes Sending orders to an external executor

How to configure an alert that does not lie to you

  1. Condition: pick the indicator and the specific signal, not “any change”.
  2. Frequency: once per bar on close. Firing on every tick produces alerts that later disappear.
  3. Expiry: match it to your trading horizon; an alert left open for months is noise.
  4. Message: include instrument, direction, timeframe and price. “Signal” tells you nothing afterwards.
  5. Channel: app notification if you trade manually, webhook if you want automatic execution.

What a webhook really is

When the alert fires, TradingView sends a message to a web address you provide. That service receives the notice and decides what to do: log the signal, forward it, or open an order at your broker. TradingView never trades your account; it only notifies.

Three basic safety rules:

  • Never put sensitive data in the alert text.
  • Use a service that lets you cap risk, instruments and schedule.
  • Always test on demo before connecting a live account.

The full chain: signal → alert → order

Step What happens Where time is lost
1. Signal Indicator confirms on bar close Waiting for confirmation (necessary)
2. Alert TradingView sends the notice Seconds
3. Executor The service turns the notice into an order Seconds
4. Broker The order reaches the market Slippage in volatile moments

Compare that with the manual route: you see the notification, unlock the phone, open the platform, calculate the lot and enter. That is minutes, not seconds.

Common mistakes when automating with alerts

  • Leaving the alert on “every tick” and executing signals that later vanish.
  • Omitting the instrument from the message and trading the wrong symbol.
  • Ignoring the clock: the alert fires overnight and the order fills on a wide spread.
  • Automating a system that was never measured on demo.

The full no-code logic is covered in the free ebooks No-Code Automation and Intelligent Automation.

The version with nothing to build

If you would rather not maintain the technical chain, Cortex Automation executes Cortex signals directly in your MetaTrader 5 account, 24/7, from our servers: no VPS, no computer left on, and with the risk, instruments and schedule you define. You can try it for five days with the Automation Test.

Frequently asked questions

Are TradingView alerts free?

The free plan allows a limited number of active alerts; paid plans raise the limit and add features such as webhooks.

Do alerts work if I close my browser?

Yes. Alerts run on TradingView's servers, so they fire even with your computer off.

What is the difference between an alert and a signal?

The signal is the trading condition; the alert is the notice telling you about it. A good signal with a bad alert arrives late.

Can a webhook trade on its own?

Not by itself. It needs a service that receives the message and has permission to send orders to your broker.

How much latency is acceptable?

For intraday indices and Gold, a few seconds. The smaller your average target, the more each second costs.

From alert to order, hands off. Try the Automation Test for five days, or start with signals through the Cortex Signal Kit.

Disclaimer: educational content. Cortex Next is not a financial service and guarantees no results. Automation executes a process you control in your own account. Trading involves risk of loss.