Connect Autotrade Pro to TradingView with Webhooks

Written by, Development Team on November 25, 2025

trading viewdocumentationtutorial

If you are a quant, algorithmic trader, or developer who lives in TradingView, you probably have the same problem:

Your trading ideas run in TradingView, but your execution happens somewhere else.

This guide shows you how to connect Autotrade Pro with TradingView using webhooks, so your TradingView alerts trigger fully automated trades — without writing code.

The focus here is clear, non‑technical explanations for:


What Is a Webhook?

Skip the technical jargon and think of a webhook like this:

A webhook is an automatic message TradingView sends to Autotrade Pro the moment your alert fires.

Key points:

You don’t need to program the webhook yourself. In practice you only:

  1. Paste a Webhook URL into TradingView.
  2. Define the alert message in TradingView (a template Autotrade Pro will read).

That’s all the “webhook coding” you ever have to do.


Who Is This Integration For?

Connecting Autotrade Pro and TradingView via webhooks is ideal if you:

Typical use cases:

  • Turn Pine indicators into live orders automatically.
  • Mirror TradingView signals into multiple accounts.
  • Automate entries and exits.

Prerequisites

Before wiring anything together, make sure you have:

1. TradingView

2. Webhook provider

3. Autotrade Pro

4. Environment for Testing


Big Picture: How TradingView and Autotrade Pro Talk

TradingView to Autotrade Flow Diagram

Let’s zoom out and describe the end‑to‑end flow.

  1. Signal on TradingView: Your alert condition is met (for example: “Close crosses above 200 EMA on BTCUSDT, 1‑hour chart”).
  2. TradingView Sends a Webhook: TradingView automatically sends a small data packet (the webhook) to your Webhook URL.
  3. Autotrade Pro Receives It: Autotrade Pro reads the message and matches it to one of your robots.
  4. Order Execution at Your Broker/Exchange: Autotrade Pro executes your automation.

Once it’s set up, this pipeline runs automatically!


Step 1 – Get Your Webhook URL from Autotrade Pro

Log in to Autotrade Pro and look for Settings → Webhook. You should find:

AutoTrade webhook configuration page

Step 2 – Create a Webhook Alert in TradingView

Now move to TradingView:

  1. Open the chart for the asset and timeframe you want to automate.Make sure your indicator or strategy is added and visually working.
  2. Click the Alert button (clock icon with a “+”) or right‑click on the chart and choose “Add alert…”.
TradingView add alert button

Set up the alert:

TradingView alert creation TradingView alert created TradingView webhook notification setup

The final — and most important — part is the alert message.


Step 3 – Design the Alert Message for Autotrade Pro

TradingView has strict rules for outgoing messages. You usually want a simple payload with your robot name, as in this Pine Script example:

buildPayload(name) =>
    '{"action":"run_robot", "kwargs":{"name":"' + name + '"}}'

sendRobot(nameSuffix) =>
    robotName = prefix + "-" + nameSuffix
    payload = buildPayload(robotName)
    alert(payload, alert.freq_once_per_bar_close)

if long_condition
    strategy.entry("BUY", strategy.long)
    sendRobot("BUY")

if short_condition
    strategy.entry("SELL", strategy.short)
    sendRobot("SELL")

In this example, “BUY” and “SELL” are the robot names in your local instance. The "action":"run_robot" flag tells Autotrade Pro to run the robot whose "name" is “SELL” or “BUY.” Replace those strings with your actual robot names.

Autotrade dashboard example

Step 4 – Map Webhook Messages to Execution in Autotrade Pro

Go back to Autotrade Pro and create the execution logic that says, in plain language: “When I receive a webhook for robot = ‘BUY’, execute a long position on BTCUSDT.”

Create or edit the robot, then record the buy action for execution. Remember, the robot stores the x/y coordinates of your mouse. Keep the main window in exactly the same position to ensure the playback works as recorded.

We strongly recommend separating entry and exit signals (and robots). For systematic trading and algo portfolios, clean entry/exit separation is crucial.

Whatever you choose, keep your logic explicit and easy to audit later.


Step 5 – Test the Integration Safely

Never go straight to full size on a new automation. Test first.

  1. Use Paper Trading or Tiny Size. Use demo accounts or paper trading setups when available. If not, trade minimum size that keeps risk negligible.
  2. Fire a Controlled Test Alert. Create a very simple alert (e.g., price crossing a close level). Move the level so the alert triggers quickly. Check that TradingView shows the alert trigger in the alerts log.
  3. Check Autotrade Pro Logs Verify that Autotrade Pro received the webhook and executes the robot successfully.

Test behavior when:


Common Pitfalls and How to Avoid Them

Here are frequent issues when connecting Autotrade Pro and TradingView, plus fixes:

  1. Duplicate or noisy alerts
    • Problem: multiple triggers in the same bar or flickering conditions.
    • Fix:
      • Prefer “Once per bar close” instead of “Once per bar.”
      • Add simple filters to your strategy logic to avoid micro‑signals.
  2. Silent failures
    • Problem: you assume orders are being sent, but the webhook format is wrong.
    • Fix:
      • Check Autotrade Pro logs whenever you add or change a strategy.
      • Fire a test alert after any important change to your alert message.

FAQ: Autotrade Pro + TradingView Webhooks

Do I need to know how to code to use webhooks? No. You don’t need to write code. You just:

  • Configure your Webhook URL.
  • Paste a template into the alert message, following Autotrade Pro’s examples.
  • That’s all the “coding” involved.

Can I use multiple strategies and accounts? Yes. This is where the setup shines for quants and multi‑strategy traders.

Is the webhook connection secure? Webhook URLs are typically long, unique, and use HTTPS. Many platforms also require a token or secret in the message. Don’t share your > URL or token publicly, and rotate them if needed.

What happens if my internet goes down? AutoTrade is a local instance. You have all the control. If no internet, no webhook connection available and no alert/execution received.

How do I stop the automation quickly? You can:

  • Disable or delete the TradingView alerts.
  • Disable the strategy rules inside Autotrade Pro.
  • Disconnect the broker/exchange from Autotrade Pro if needed.

For production setups, decide in advance which emergency action you want to use.


Summary: From Charts to Automated Execution

By connecting Autotrade Pro and TradingView with webhooks, you turn your TradingView strategies into a fully automated trading pipeline:


If you’re a quant, algo trader, or developer, this setup gives you:


Once it’s live and tested, your strategies run end‑to‑end: TradingView generates the signal, Autotrade Pro executes the trade, and you focus on research, risk, and portfolio design — not clicking buttons.