> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mirrorpip.com/llms.txt
> Use this file to discover all available pages before exploring further.

# what is webhook URL ?

# What is a Webhook URL in TradingView? Complete Guide for Automated Trading

If you've ever tried to automate a trading strategy on TradingView, you've probably come across the term **Webhook URL**.

For many traders, webhook automation can seem technical and confusing at first. However, understanding webhooks is essential if you want to convert TradingView alerts into real trades on your exchange account.

In this guide, we'll explain what a webhook is, how it works, why TradingView requires it for automation, and how Mirrorpip uses webhooks to execute trades automatically.

***

# What is a Webhook?

A webhook is a method that allows one application to instantly send information to another application over the internet.

Think of it as a digital messenger.

Whenever a specific event happens, a webhook immediately delivers that information to a predefined destination.

Instead of repeatedly checking for updates, the receiving application gets notified instantly.

### Simple Definition

```text theme={null}
Webhook = Automated Message Sent from One System to Another
```

***

# Real-Life Analogy

Imagine you order food online.

There are two ways to know when your food is ready:

### Method 1: Manual Checking

You keep opening the app every minute and checking:

"Is my food ready?"

"Is my food ready now?"

This is inefficient.

***

### Method 2: Push Notification

As soon as the food is ready, the app sends a notification:

```text theme={null}
Your order is ready for pickup.
```

This notification is similar to a webhook.

Instead of continuously checking, the information is automatically delivered.

***

# How Webhooks Work in Trading

In trading automation:

### Event

A trading signal occurs.

Example:

```text theme={null}
BTC closes above Supertrend
```

***

### Notification

TradingView generates an alert.

***

### Delivery

TradingView sends the alert data to a webhook URL.

***

### Action

Mirrorpip receives the alert and places the trade automatically.

***

# TradingView Automation Flow

The complete workflow looks like this:

```text theme={null}
TradingView Indicator
        ↓
TradingView Alert
        ↓
Webhook URL
        ↓
Mirrorpip
        ↓
Exchange Account
        ↓
Trade Executed
```

Without the webhook step, automation cannot happen.

***

# Why Does TradingView Need a Webhook?

TradingView is primarily a charting and alerting platform.

Its job is to:

* Analyze charts
* Generate alerts
* Notify users

TradingView does NOT directly place trades on most exchanges.

Instead, it needs a way to communicate with external platforms like Mirrorpip.

That communication channel is called a webhook.

The webhook acts as a bridge between:

```text theme={null}
TradingView
        ↔
Mirrorpip
```

***

# What is a Webhook URL?

A Webhook URL is simply the internet address where TradingView sends alert data.

Just like websites have URLs:

```text theme={null}
https://google.com
```

A webhook also has a URL:

```text theme={null}
https://trade.mirrorpip.com/tradingview
```

This URL is specifically designed to receive TradingView alerts.

Whenever an alert triggers, TradingView sends the alert data to this address.

***

# Mirrorpip Webhook URL

For TradingView automation with Mirrorpip, use:

```text theme={null}
https://trade.mirrorpip.com/tradingview
```

This URL should be entered inside the TradingView Alert settings under:

```text theme={null}
Notifications
→ Webhook URL
```

***

# What Information Does TradingView Send?

When an alert triggers, TradingView sends a message containing your trade instructions.

Example:

```json theme={null}
[
  {
    "exchange": "coinswitch",
    "price": "{{close}}",
    "chart_symbol": "{{ticker}}",
    "order_type": "buy",
    "quantity": "100$",
    "tp": "10%",
    "sl": "5%",
    "code": "68ZMEQ6S5ZA507N0"
  }
]
```

This message is called a JSON payload.

It tells Mirrorpip:

* Which exchange to trade on
* Which symbol to trade
* Whether to buy or sell
* Position size
* Stop Loss
* Take Profit
* User authentication code

***

# What Happens After TradingView Sends the Alert?

Let's walk through an example.

Suppose you have created a Supertrend Buy Alert.

### Step 1

BTCUSDT closes above the Supertrend line.

***

### Step 2

TradingView detects the condition.

***

### Step 3

TradingView creates an alert.

***

### Step 4

TradingView sends the JSON payload to:

```python theme={null}
https://trade.mirrorpip.com/tradingview
```

***

### Step 5

Mirrorpip receives the message.

***

### Step 6

Mirrorpip validates:

* User Code
* Exchange
* Symbol
* Quantity
* Order Type

***

### Step 7

Mirrorpip forwards the order to your connected exchange.

***

### Step 8

Trade is executed automatically.

The entire process typically takes only a few seconds.

***

# Why Are Webhooks Better Than Email Alerts?

Before webhooks became popular, traders relied on:

* Email notifications
* SMS alerts
* Mobile notifications

These methods require manual action.

Example:

```text theme={null}
TradingView Alert
       ↓
Email
       ↓
User Reads Email
       ↓
User Opens Exchange
       ↓
Places Trade
```

This introduces:

❌ Delays

❌ Human errors

❌ Missed opportunities

❌ Emotional decision-making

***

With webhooks:

```text theme={null}
TradingView Alert
       ↓
Mirrorpip
       ↓
Exchange
       ↓
Trade Executed
```

Everything happens automatically.

***

# Do I Need a Paid TradingView Plan?

Yes.

TradingView only allows webhook functionality on paid plans.

Without a paid plan:

✅ You can create alerts

❌ You cannot send webhook messages

❌ Full automation is not possible

If you want Mirrorpip to execute trades automatically, webhook access is mandatory.

***

# Is the Webhook URL Different for Every User?

No.

All Mirrorpip users use the same webhook URL:

```text theme={null}
https://trade.mirrorpip.com/tradingview
```

User identification happens through the unique code included inside your JSON payload.

Example:

```json theme={null}
"code":"68ZMEQ6S5ZA507N0"
```

This code tells Mirrorpip:

```text theme={null}
Which user sent the alert
Which exchange account to use
Which trading configuration to apply
```

***

# Is a Webhook URL Secure?

Yes.

Mirrorpip validates incoming webhook requests before processing trades.

Additionally:

* Each user has a unique authentication code
* Invalid messages are rejected
* Incorrect formats are ignored
* Unauthorized requests cannot execute trades

Always keep your automation code private.

***

# Common Webhook Mistakes

## Incorrect Webhook URL

Wrong:

```text theme={null}
https://mirrorpip.com
```

Correct:

```text theme={null}
https://trade.mirrorpip.com/tradingview
```

***

## Invalid JSON Format

Even a missing comma can prevent execution.

Always copy JSON directly from:

```text theme={null}
Mirrorpip
→ Profile
→ TradingView Automation Bot
→ Copy TradingView Conditional Alert Data
```

***

## Forgetting to Enable Webhook

Many users paste the JSON but forget to enable:

```text theme={null}
Webhook URL
```

Without a webhook, TradingView cannot communicate with Mirrorpip.

***

## Symbol Not Added to Watchlist

Even if the webhook works perfectly, Mirrorpip can only execute orders for symbols available in your watchlist.

Always verify your symbols before activating automation.

***

# Frequently Asked Questions

## Can I use one webhook URL for multiple strategies?

Yes.

Mirrorpip can handle multiple strategies, symbols, and alerts using the same webhook URL.

***

## Can I automate community indicators?

Yes.

Any TradingView indicator capable of generating alerts can be automated using Mirrorpip.

***

## Can I automate multiple exchanges?

Yes.

Mirrorpip supports multiple exchanges, and the exchange is specified inside the JSON payload.

***

## Can I use webhooks for buy and sell signals?

Absolutely.

Webhooks can execute:

* Buy Orders
* Sell Orders
* Short Entries
* Short Exits
* Stop Loss Orders
* Take Profit Orders

***

# Final Thoughts

A webhook URL is the critical connection between TradingView and Mirrorpip.

While TradingView is responsible for identifying trading opportunities and generating alerts, Mirrorpip uses webhook data to convert those alerts into real orders on your exchange account.

Without webhooks, alerts remain notifications.

With webhooks, alerts become automated trades.

Simply put:

**Webhook URLs are the foundation of TradingView automation.**

Once configured correctly, they allow your indicators, strategies, and trading systems to operate automatically 24 hours a day without requiring manual intervention.

Whether you're automating Supertrend, RSI, EMA Crossovers, MACD, or advanced multi-indicator strategies, the webhook URL is the bridge that turns trading signals into real-world execution.
