# What is ZB Connector

> ZB Connector turns TradingView alerts into MetaTrader 5 trades through an Expert Advisor in your own terminal. See how a signal travels.

Source: https://zb-connector.com/docs/get-started/what-is-zb-connector/

ZB Connector sends the alerts you create in TradingView to MetaTrader 5 (MT5) and turns them into trades.

**Simple version**

You write an alert message in TradingView. TradingView sends it to the ZB Connector API, which holds it in a queue. A small program called the Expert Advisor (EA) runs inside your own MT5 terminal and asks the API for new commands every second. When it finds one, it places the trade at your broker. Nothing connects to your computer from outside: the EA always reaches out to us.

How an alert reaches MetaTrader 5:

1.  TradingView, your alert fires and sends the message. Then: HTTPS POST
2.  ZB Connector API, checks the message, queues the command. Then: EA pulls the command
3.  EA in your MT5, asks the API every second, collects. Then: MT5 places the trade
4.  Your broker, receives the order from MT5

**Advanced version**

## Who does what

| Part | Runs where | What it does |
| --- | --- | --- |
| TradingView alert | TradingView | Sends your message to the webhook URL when the alert fires. |
| ZB Connector API | Our servers | Checks the license and the message, then queues the command for your license. |
| Expert Advisor | Your MT5 terminal | Collects queued commands and executes them, then reports what happened. |
| Dashboard | Your browser | Shows licenses, command history and results, and can send commands by hand. |

## Why the EA pulls

The EA collects commands by polling the API (once per second by default) instead of waiting for a connection. That means no open port on your computer. It also means the EA must be running, with MT5 open and connected, for anything to execute. See [if something goes offline](https://zb-connector.com/docs/reliability/if-something-goes-offline/).

## What HTTP 200 means

When TradingView sends an alert, the API answers HTTP 200 once the command is checked and queued. That is not the same as executed: the result appears later, in your MT5 and in **Command History** in the dashboard. See [find where an alert stopped](https://zb-connector.com/docs/troubleshooting/find-where-it-stopped/).

## Delivery is at most once

A command is handed to the EA once. If the EA stops before it acts on a command, ZB Connector does not send it again. The details and what you see are in [how delivery works](https://zb-connector.com/docs/reliability/how-delivery-works/).

Software only

ZB Connector executes the commands you define. It does not generate signals, give investment advice or act as a broker.

## Related tasks

-   [Check the requirements](https://zb-connector.com/docs/get-started/requirements/)
-   [Follow the quickstart](https://zb-connector.com/docs/get-started/quickstart/)
