Back to Blog
Guide

Getting Started with TradingView Webhooks

Learn how to connect TradingView alerts to AlsaTrade for automated trade execution across Binance, Bybit, and Alpaca.

AlsaTrade Team February 15, 2026 7 min read

TradingView’s alert system is powerful, but without a platform to receive and execute those alerts, you’re stuck manually placing trades every time a signal fires. AlsaTrade bridges that gap — connecting your TradingView alerts directly to your exchange accounts for fully automated execution.

How Webhooks Work

When you create an alert in TradingView, you can configure it to send a webhook — an HTTP POST request — to a URL you specify. AlsaTrade generates a unique webhook URL for each strategy you create.

Here’s the flow:

  1. Your TradingView indicator or strategy triggers an alert
  2. TradingView sends a webhook payload to your AlsaTrade strategy URL
  3. AlsaTrade validates the signal, checks risk limits, and executes the trade
  4. The order is placed directly on your connected exchange (Binance, Bybit, or Alpaca)

The entire process takes milliseconds from alert to execution.

Setting Up Your First Strategy

Step 1: Create a Strategy in AlsaTrade

Navigate to the TradingView Strategies section and create a new strategy. You’ll configure:

  • Name: A descriptive name (e.g., “BTC EMA Crossover”)
  • Exchange: Which exchange to execute on (Binance, Bybit, or Alpaca)
  • Trading pair: The symbol to trade (e.g., BTCUSDT)
  • Position sizing: How to calculate order quantity

AlsaTrade generates a unique webhook URL for your strategy.

Step 2: Configure Position Sizing

AlsaTrade supports three position sizing modes:

ModeDescriptionExample
Fixed USDTInvest a fixed dollar amount per trade$100 per signal
PercentageUse a percentage of your account balance10% of balance
QuantitySpecify the exact coin amount0.05 BTC

For most traders, Fixed USDT or Percentage modes are recommended since they automatically calculate the correct quantity based on current prices.

Step 3: Set Up the TradingView Alert

In TradingView, create an alert on your indicator or strategy. In the alert settings:

  1. Set Webhook URL to the URL AlsaTrade generated
  2. In the Message field, use this JSON format:
{
  "action": "BUY",
  "ticker": "BTCUSDT",
  "price": {{close}},
  "time": "{{time}}"
}

The action field supports: BUY, SELL, and CLOSE.

Built-In Safety Features

Retry Logic

If an exchange API call fails (network timeout, rate limit, temporary outage), AlsaTrade automatically retries with exponential backoff. This means transient errors don’t cause missed trades.

Deduplication

TradingView occasionally sends duplicate webhooks. AlsaTrade’s dual-layer deduplication system catches these — first at the database level with INSERT…ON CONFLICT, then with an in-memory check — ensuring you never get double orders.

Risk Validation

Every webhook signal passes through RiskGuard before execution. If the trade would exceed your daily loss limit, position size cap, or leverage limit, it’s blocked with a clear error message in your signal history.

Monitoring Your Strategies

Once your strategy is live, AlsaTrade tracks every signal:

  • Signal status: pending → executing → executed (or failed)
  • Order details: Exchange order ID, fill price, quantity
  • Error messages: If a signal fails, you’ll see exactly why
  • Strategy statistics: Win rate, total P&L, trade count

You can pause a strategy at any time without losing your configuration, and resume it when ready.

Tips for Success

  1. Start with paper trading: Use exchange testnet/demo mode to validate your setup before risking real capital
  2. Set risk limits: Configure RiskGuard daily loss limits and position caps before going live
  3. Monitor initially: Watch the first few signals execute to confirm everything works as expected
  4. Use percentage sizing: It scales naturally with your account balance
  5. Check signal history: Review failed signals regularly to catch configuration issues early

Webhook automation removes the emotional element from trade execution. Your strategy fires, the trade executes, and risk limits are enforced — all without you needing to be at your screen.

#tradingview #webhooks #automation #binance #bybit

Ready to start trading?

Create a free account and connect your exchange in minutes.

Get Started Free