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) acts
Everything 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
Right-click the indicator → Add alert on ....
Pick the condition.
Set the trigger to Once Per Bar Close — mid-candle triggers on a wick will place trades you did not want.
Open the Notifications tab and tick Webhook URL.
Paste your endpoint URL (must be HTTPS).
Put structured JSON in the message body.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.
Include a shared secret in the payload and reject anything without it.
Validate the symbol and action against an allowlist.
Rate-limit the endpoint.
Log every request you receive.
Start with a paper-trading account. Always.What automation is genuinely good for
Full auto-execution is the least reliable use. These are more robust:
Notifications with context — routing signals to a Discord or Slack channel.
Journalling — appending every signal to a spreadsheet or database automatically.
Screening — collecting signals across dozens of symbols and ranking them.
Semi-automation — the webhook stages an order that you confirm on your phone.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.