# Send your first alert to MetaTrader 5

> Connect TradingView to MetaTrader 5 with ZB Connector and confirm a first test trade on a demo account.

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

This path takes you from a new account to a first demo trade placed by a TradingView alert. Each step links to the full guide if you need more detail.

> **Use a demo account first.** Run every step on a MetaTrader 5 demo account. Switch to a live account only after the go-live checklist is done.

**Before you start:** [check the requirements](https://zb-connector.com/docs/get-started/requirements/): MT5 desktop with a demo account, and a TradingView plan with webhooks and two-factor authentication.

1.  **Create your account and copy your license key.** [Full guide](https://zb-connector.com/docs/get-started/create-account-and-license/)
    
    > **What you should see:** Licenses lists a key with the badge Not connected.
    
2.  **Install the EA in MT5.** Copy the EA file into the Experts folder, allow `https://dev.api.zb-connector.com` under **Tools → Options → Expert Advisors**, switch Algo Trading on, attach the EA to a chart and paste your key into the input **License ID / Auth token**. [Full guide](https://zb-connector.com/docs/install/install-the-ea/)
    
    > **What you should see:** The chart panel reads Status: Connected, and Licenses shows Online.
    
3.  **Test the EA from the dashboard.** On **Send Command**, send a `long` of the smallest volume your broker allows on a demo symbol. [Full guide](https://zb-connector.com/docs/get-started/send-a-test-alert/#part-a-test-the-ea-from-the-dashboard)
    
    > **What you should see:** A new position appears in MT5, and the Experts log shows Trade placed successfully.
    
4.  **Create the TradingView alert.** In the alert’s notifications, tick **Webhook URL** and enter:
    
    `https://dev.api.zb-connector.com/webhook/`
    
    In the message box, enter a message like this one, with your key in place of `YOUR_LICENSE_KEY`:
    
    **Alert message**
    
    ```json
    {
      "license": "YOUR_LICENSE_KEY",
      "action": "long",
      "symbol": "EURUSD",
      "volume": 0.01,
      "positionID": "tradingview_test_1"
    }
    ```
    
    Use the symbol name exactly as your broker shows it in MT5. [Full guide](https://zb-connector.com/docs/tradingview/alert-basics/)
    
5.  **Let the alert fire and check each stage.** [Full guide](https://zb-connector.com/docs/get-started/send-a-test-alert/#part-b-test-the-tradingview-alert)
    
    > **What you should see:** In TradingView’s alert log the Webhook status is a success. In ZB Connector, Command History shows the command, and MT5 shows the new position.
    

An HTTP 200 reply means the command was **queued**, not executed. If a stage does not show up, [find where the alert stopped](https://zb-connector.com/docs/troubleshooting/find-where-it-stopped/).

## If it does not work

Go to the first checkpoint above that you did not see, and use the guide linked in that step. For a failed trade, look up the number in [MT5 errors](https://zb-connector.com/docs/troubleshooting/errors/).

## Next step

Work through the [go-live checklist](https://zb-connector.com/docs/get-started/go-live-checklist/) before you use a live account, and read the [commands overview](https://zb-connector.com/docs/commands/overview/) to build your own alert messages.
