TradingView webhook alerts explained
What a webhook alert is, what TradingView requires before you can use one, and the alert settings that matter when the alert places real trades.
A normal TradingView alert tells you something happened: a pop-up, a sound, an app notification. A webhook alert tells a program. When the alert fires, TradingView sends the alert's message to a web address you choose. That is what lets PipRoute turn an alert into a trade without anyone touching a button.
How a webhook alert works
When your condition is met, TradingView sends an HTTP POST request to your webhook address, with the text from the alert's Message box as the body. Each MT5 account has its own PipRoute address, https://piproute.com/hook/ followed by its licence. PipRoute reads the message, checks the licence, and queues the trade for that MT5 account.
What TradingView requires
- A paid plan. Webhook alerts are not available on the free plan.
- Two-factor authentication. TradingView asks you to turn it on in your account's security settings before webhooks can be used.
- Ports 80 or 443 only. Webhooks go to standard web ports. PipRoute uses 443, the normal HTTPS port.
- A quick answer. TradingView cancels a webhook request if the receiving server takes longer than about 3 seconds. PipRoute answers straight away and does the trade work afterwards, so this is never the bottleneck.
Alert settings that matter for automation
Once per bar close
For indicator signals, choose Once per bar close. A signal that appears in the middle of a candle can disappear before the candle closes. An alert that fires on the close only sends signals that are final.
The expiry date
TradingView alerts have an expiration time unless you are on a plan that allows open-ended alerts (Premium and Ultimate). When an alert expires, it simply stops. Put the date in your calendar, or extend the alert.
Settings are frozen at creation
An alert keeps the indicator inputs it was created with. Change the indicator's length, source or any other input later and the alert does not follow. Delete it and create it again.
One message per action
With an indicator, make one alert for buys and one for sells, each with its own message. With a strategy, one alert can follow everything. See indicator alerts vs strategy alerts.

Placeholders
TradingView fills placeholders in double curly brackets when the alert fires. The most useful one is {{ticker}}, the chart's symbol, so the same message works on every chart:
4F9A2C7B1D0E,sell,{{ticker}},vol_pct_bal_loss=1,sl_pips=25,tp_pips=50
Strategies have more, such as {{strategy.order.action}} and {{strategy.market_position}}, which PipRoute uses to mirror a whole strategy with one alert.
Check it worked
In TradingView, each alert has a log showing when it fired. In PipRoute, Activity shows every message that arrived, what it did on each account and, if it was refused, why in plain words. If TradingView's log shows the alert fired but Activity shows nothing, the webhook box was not ticked or the address has a typo.