# TradingView automation: custom webhook bot development

URL: https://fincodelabs.com/en/services/tradingview-automation · Publisher: Fincode (Fincode Yazılım ve Teknoloji A.Ş.), Istanbul, Turkey · Updated: 2026-10-13

Fincode builds a bridge that takes alerts from your own TradingView account and sends orders to your own exchange account, under limits you set. It checks each webhook, drops duplicates, applies risk limits, logs every step and runs on your own server by default.

## How it works

### TradingView alert

A condition you defined in your own strategy or indicator is met.

### Webhook message

The alert is sent as a message in JSON format.

### Bridge software

The message is checked and passed through your risk limits.

### Exchange API

The order goes to your own account; the result is logged and reported.

## What you receive

- Bridge software, running on your own server or cloud account by default
- TradingView alert message templates
- Risk rules set to your limits, plus an emergency stop
- An audit log with Telegram or email notifications
- A testnet and failure-case report
- Technical documentation

[How we work, stage by stage](https://fincodelabs.com/en/how-we-work)

### Security principles

- Every alert message is checked
- We do not ask for withdrawal rights
- Risk limits are checked before each order
- Orders and system events are logged

[Security and API key handling](https://fincodelabs.com/en/security)

## Built around TradingView's documented limits

TradingView's help pages, read in November 2026, set these limits. See the full design in the [example scenario](https://fincodelabs.com/en/projects/tradingview-order-bridge).

### Cancels a webhook if the server takes over three seconds

A thin receiver queues the request and replies at once.

### Resends after most 5xx responses, up to three times

Each alert ID is processed once.

### Delivers only to ports 80 and 443

HTTPS on port 443 only.

### Sends from published IP addresses

IP allowlist, shared secret and optional client certificate.

## TradingView strategy and alert automation

TradingView sends the alert. The bridge decides whether it becomes an order. Two kinds of alert are common.

### Strategy alerts

A Pine Script strategy you wrote fires an alert on each order event, and the bridge turns the message into an order. See [a TradingView webhook receiver in Python](https://fincodelabs.com/en/blog/tradingview-webhook-python).

### Indicator alerts

A condition on an indicator fires the alert, and your written rules set the quantity and limits. See [how a TradingView webhook bot works](https://fincodelabs.com/en/blog/tradingview-webhook-bot).

## What the bridge covers

Alerts must come from your own TradingView account. Paid signal feeds are not connected.

### Webhook receiver

Server software designed to run around the clock that receives alert messages from TradingView.

### Message checks

Every message is checked with a secret key and a source check; unrecognized requests are rejected.

### Message templates

Alert messages follow one standard format, with fields such as symbol, side, quantity and order type. If needed, we also change how your Pine Script sends the alert; the conditions stay yours. See [hiring a Pine Script developer](https://fincodelabs.com/en/blog/pine-script-developer).

### Risk checks

Rules such as maximum position size, daily number of trades and loss limit are checked before an order is sent; duplicate alerts are filtered out.

### Several of your own accounts

One alert can run on several of your own accounts, with position sizes you set. It cannot be used for other people's accounts.

### Logging and notifications

Every alert, order and result is logged and reported in real time via Telegram or mobile notifications.

## When a subscription tool is enough

If a subscription tool supports your exchange and you do not need custom checks, it is cheaper. A custom bridge fits when your platform is not supported, when you need your own risk rules, or when you want the code, keys and server under your own control.

Our guide to [crypto trading bot pricing](https://fincodelabs.com/en/blog/crypto-trading-bot-pricing) compares what subscription tools charge and include.

### Before you start

TradingView's webhook feature is available on paid subscription plans. Current plan features should be checked on TradingView's website. TradingView's Help Center also says [its alerts are not designed for automated trading](https://www.tradingview.com/support/solutions/43000722015-using-credentials-for-webhooks/), so the bridge has to handle late, repeated or missing alerts itself.

TradingView's [Terms of Use](https://www.tradingview.com/policies/), read on 5 November 2026, describe alerts and webhooks as licensed for display use and prohibit using them for automated trading, including through third-party products or services. Read those terms and take legal advice before relying on this route; it is your agreement with TradingView. If you would rather not depend on TradingView, [trading software built from your written rules](https://fincodelabs.com/en/services/algorithmic-trading) can work directly from exchange data.

A delay of a few seconds can occur between an alert and an order. For very short-term rules, [trading software](https://fincodelabs.com/en/services/algorithmic-trading) that works directly through the exchange API may be a better fit.

### What we do not do

Fincode is a software company and does not provide investment advice, portfolio management or crypto asset services. Ready-made strategies, signals or trade recommendations, copy trading, management of customer accounts and profit sharing are not offered.

## Questions about TradingView bridges

### Does it work when my computer is off?

Yes. TradingView alerts run on TradingView's servers, and the bridge software runs on a separate server. Your computer does not need to be on.

### Can it be used with existing indicators?

Alerts you set up in your own TradingView account, on a strategy or indicator, can be used with webhooks; the alert message only needs to follow the agreed template. Paid third-party signal feeds are not connected.

### What if the same alert arrives twice?

The bridge is designed not to open a second order. Because TradingView can resend a notification up to three times after a 5xx response, the bridge stores each alert ID and never processes the same ID twice.

### Can I put my exchange API key in the webhook message?

No. TradingView asks users not to send credentials in webhooks. The message carries only a separate secret known to the bridge; the exchange key stays on the server and has no withdrawal permission.

### Can the same alert place orders on several accounts?

One alert can run on several of your own accounts, with position sizes you set. It cannot be used for other people's accounts.

### How are timelines and costs determined?

They depend on the number of exchanges to be connected, the scope of the risk rules and the notification requirements. You get a written proposal before work starts. Fees depend on scope and effort, not on trading volume or results.

## More from Fincode

- [Crypto exchange API integration](https://fincodelabs.com/en/services/exchange-api-integration): Market data, orders and balances over REST and WebSocket, with tests, logs and documentation.
- [Custom trading bot development](https://fincodelabs.com/en/services/algorithmic-trading): Rules you have written, turned into software with risk limits, logs and alerts.
- [How we work](https://fincodelabs.com/en/how-we-work): The four stages, what you receive at each, and how acceptance testing works.

## Example scenarios

Example scenarios that show how this service is designed in typical projects. [All examples](https://fincodelabs.com/en/projects)

- [TradingView webhook order bridge: example scenario](https://fincodelabs.com/en/projects/tradingview-order-bridge): Example scenario for a bridge that turns TradingView alerts into exchange orders: webhook verification, duplicate protection, risk checks, testnet rollout.

## Related guides

Guides that explain the topics behind this service. [TradingView webhook guides](https://fincodelabs.com/en/blog/tradingview-webhooks)

- [Connect TradingView to an exchange](https://fincodelabs.com/en/blog/connect-tradingview-to-exchanges): Broker links, webhook alerts and what changes from one exchange to another.
- [TradingView webhook example in Python: a tested receiver](https://fincodelabs.com/en/blog/tradingview-webhook-python): TradingView webhook example in Python: a tested FastAPI server with secret check, schema validation, duplicate filter, quick reply, JSON logs and dry-run mode.
- [TradingView webhook bot: from alert to exchange order](https://fincodelabs.com/en/blog/tradingview-webhook-bot): How a TradingView webhook bot turns alerts into exchange orders: documented limits, bridge design, duplicate protection, bar-close alerts and testnet tests.
- [TradingView alert message JSON: placeholders and payloads](https://fincodelabs.com/en/blog/tradingview-alert-message-json): How to write TradingView alert message JSON: documented placeholders, alert_message in Pine strategies, payload design and a tested Python validator.
- [Pine Script developer: what to specify before hiring](https://fincodelabs.com/en/blog/pine-script-developer): Hiring a Pine Script developer? When Pine is enough, what to put in the brief, how to check repainting, strategy settings and version 6, and what to avoid.
- [TradingView alerts not working: causes and fixes](https://fincodelabs.com/en/blog/tradingview-alerts-not-working): TradingView alerts not working? Check the alert log, trigger frequency, script snapshots, plan limits, mobile push and webhook errors, with a test endpoint.

---

Published by Fincode (Fincode Yazılım ve Teknoloji A.Ş.), a software company in Istanbul, Turkey: https://fincodelabs.com/en/services/tradingview-automation
