fastbot
Try it
Back to Blog
·5 min read

TradingView webhook to Binance — Auto-execute Pine signals via fastbot

Overview of TradingView webhooks and 3 popular ways to auto-execute alerts to Binance: self-hosted server, 3Commas DealsBot, or fastbot. Setup walkthrough.

TradingViewWebhookBinancePine Script

You just finished a Pine Script strategy with a strong backtest winrate. You don't want to stare at charts 24/7 to manually click Buy/Sell on every alert. You need a way for TradingView to send a signal → server → place Binance order automatically.

This mechanism is called a webhook. TradingView Pro+ supports a "Webhook URL" field in alerts — when the alert fires, TradingView sends a message to your URL, the receiving server processes it and places the order.

This post covers TradingView webhook basics, compares 3 popular ways to handle webhook → Binance, and walks through fastbot setup.

What is a TradingView webhook?

When you create an alert on TradingView Pro+ ($14.95/month and up), you have 2 delivery options:

  1. In-app / email notification — you see it and place orders manually
  2. Webhook URL — TradingView automatically sends the signal to a URL you specify, the receiving server places the order

Option #2 is what professional traders use to fully automate strategies — no lag, no missed signals, no emotion.

3 popular ways to handle webhooks in 2026

Option 1: Self-host on a VPS

For developers with time + wanting full control.

You need: your own VPS, code a webhook receiver, connect to Binance API, handle retries / security / monitoring.

Effort: ~20-40h initial dev, $5-10/month VPS + domain. After that, maintain yourself when TradingView or Binance updates.

Pros: free software, fully custom. Cons: time-intensive, you handle security + edge cases.

Option 2: 3Commas DealsBot

3Commas supports webhooks from TradingView to trigger trades inside their "Deal" framework.

For users already on 3Commas.

Pros: no code, same platform. Cons: $15/month Advanced; complex setup (must create a Deal first); limited order types.

Option 3: fastbot

fastbot supports TradingView webhook integration to automate trade execution. Each user receives their own unique webhook URL via the Telegram settings menu.

Pros:

  • Quick setup — config via Telegram menu, no code
  • Full order types: Market, Limit, Stop, Trailing
  • Multi-level take profit + smart stop loss
  • Telegram notifications when alert arrives + when order fills
  • Built-in duplicate signal protection
  • Unified with Binance + DNSE + eToro management

Cons: $15/month after 7-day free trial.

Quick comparison

CriteriaSelf-host3Commasfastbot
Setup time20-40h2-4hA few min
Cost$5-10/mo VPS$15/mo$15/mo
Order typesCustom-builtLimitedFull
Multi-level TP + smart SLCustom-builtBasic
Telegram notificationsCustom-builtBasic
Multi-exchangeCustom-built
Duplicate signal protectionCustom-built
MaintenanceYou3Commasfastbot

fastbot webhook setup — high-level flow

Step 1: Connect Binance API

You need a Binance API key with Read + Trade permission (Spot and/or Futures depending on strategy). NEVER enable Withdrawal — see Binance API key security (Vietnamese).

Step 2: Get webhook URL from fastbot

In Telegram bot menu: Settings → webhook section → bot provides your unique URL + secret token. Treat as password — DO NOT share.

Step 3: Create TradingView alert

  1. On TradingView chart → Alert (clock icon)
  2. Condition: pick your strategy / indicator
  3. Options:
    • Webhook URL: paste URL from Step 2
    • Message: copy the template fastbot provides, adjust only trade parameters (qty, leverage, TP/SL)
  4. Save alert

Step 4: Test before going live

  1. Create test alert with minimum size
  2. Manually fire from TradingView ("Trigger" button)
  3. Within seconds, fastbot receives → places order → sends Telegram confirmation

After confirming the flow works, scale to live size.

Automation best practices

Validate the secret carefully

NEVER leak your webhook URL. If an attacker has URL + secret, they can fire fake signals and place orders on your behalf.

Best practices:

  • Rotate the secret periodically (every 3 months) — fastbot lets you regenerate via menu
  • Restrict by IP if bot supports
  • Monitor: if unusual orders appear → disable webhook immediately

Correct position sizing

Common mistake: using fixed coin amount → when price doubles, you accidentally double risk.

Correct: use % balance or fixed USD amount to keep notional stable.

Be careful with Futures leverage

Binance leverage must be set on the Binance UI beforehand. Bots don't change leverage to avoid conflicts with open positions.

Test on minimum size first

Before letting a strategy trade live money:

  1. Test with minimum size for a week — confirm signal correctness
  2. Scale up gradually after gaining confidence

FAQ

Q: Does TradingView Free plan have webhooks? A: No. Webhooks are Pro+ only ($14.95/month). Pro $14.95, Pro+ $15.95, Premium $59.95.

Q: How much latency does the webhook have? A: TradingView fire → Binance order placed: a few seconds (depending on network). For daily timeframe strategies — doesn't matter. For 1-minute scalping — can cause 0.1-0.5% slippage.

Q: Can I place Spot orders from webhook? A: Yes. Specify Spot in the message. Spot has no leverage and no attached TP/SL — use action buy + let the bot manage SL/TP separately.

Q: If the webhook fails, does TradingView retry? A: TradingView retries a few times with backoff. After that, the alert is marked failed (visible in TradingView Alerts log). Reputable bots have healthcheck endpoints to monitor uptime.

Q: Can I send webhook to multiple bots at once? A: TradingView 1 alert only goes to 1 URL. Workaround: create duplicate alerts for each bot. Be careful about double-spend (both bots placing the same order).


Next steps

If you have a Pine Script strategy and want to auto-execute from TradingView → Binance without self-hosting:

👉 Open fastbot — 7-day free trial, webhook setup in a few minutes.

Next in the series: Automated crypto DCA — 3 long-term strategies for BTC/ETH in 2026.