How to Automate TradingView Indicators with Alerts and Webhooks
Turn indicator conditions into automated actions using TradingView alerts and webhooks — what is possible, what is not, and the safe way to set it up.
How to Automate TradingView Indicators with Alerts and Webhooks
TradingView cannot place trades by itself. What it can do is send a message the instant an indicator condition is met — and that message can drive almost anything.
The architecture
Indicator condition met
↓
TradingView alert fires
↓
Webhook POST to your endpoint
↓
Your service (or a broker bridge) actsEverything downstream of the alert is your responsibility. TradingView's job ends at delivering the message.
Step 1: expose a condition
Automation needs a specific, machine-readable trigger. Use an indicator that exposes named alert conditions, or write one in Pine Script with alertcondition() or alert().
Step 2: create the alert with a webhook
Webhooks require a paid TradingView plan.
Step 3: write a message your service can parse
{
"symbol": "{{ticker}}",
"action": "buy",
"price": "{{close}}",
"time": "{{timenow}}",
"secret": "your-shared-secret"
}Useful placeholders include {{ticker}}, {{close}}, {{open}}, {{high}}, {{low}}, {{volume}}, {{interval}}, {{timenow}}, {{strategy.order.action}} and {{plot("name")}}.
Step 4: secure the endpoint
Webhook URLs are effectively public once created. Anyone who learns the URL can post to it.
What automation is genuinely good for
Full auto-execution is the least reliable use. These are more robust:
Frequently Asked Questions
Can TradingView place trades automatically?
Not on its own. TradingView sends alerts and webhooks; an external service or broker integration has to receive that message and place the order.
Do I need a paid plan for webhooks?
Yes. Webhook notifications are only available on TradingView's paid tiers.
Is Pine Script required to automate an indicator?
Not always. If the indicator already exposes alert conditions, you can automate it without writing any code. Pine Script is only needed for custom conditions.
How do I stop false triggers in automated alerts?
Use Once Per Bar Close rather than Once Per Bar, and require a trend filter as part of the condition so signals against the higher-timeframe trend never fire.
Before you automate
Automating a strategy that does not work simply loses money faster. Confirm the setup manually for a few weeks first. SimpleAlgo's signals expose named alert conditions specifically so they can drive webhooks once you trust them, and every plan carries a 7-day money-back guarantee. See the indicator suite.

Written by
Nikolas MetreveliFounder of SimpleAlgo
Nikolas wrote his first real code at 12 and freelanced software tools and websites for small businesses before finding the markets at 15. He builds and maintains every SimpleAlgo indicator and writes these guides from hands-on use of the tools.
More about Nikolas and SimpleAlgoRelated Articles
How to Set Up TradingView Alerts That Actually Fire
Price alerts, indicator alerts, and alert conditions explained — plus the settings that stop your alerts firing late, twice, or not at all.
How to Get Buy and Sell Signals on TradingView
How buy/sell signal indicators work on TradingView, how to add one, how to tell a legitimate script from a repainting one, and how to alert on signals.
How to Send TradingView Alerts to Discord or Telegram
TradingView webhooks can push your alerts straight into a Discord channel. Here's the exact setup, the message format, and what to check when nothing arrives.
Related tools and guides
Next steps on this topic from the rest of the SimpleAlgo library.