# Install the EA

> Download the ZB Connector Expert Advisor, copy it into MetaTrader 5, allow its web address, attach it to a chart and enter your license key.

Source: https://zb-connector.com/docs/install/install-the-ea/

You end this page with the EA running on a chart in MetaTrader 5 (MT5), connected to ZB Connector, with your license key entered.

**Before you start:** a verified account and your [license key](https://zb-connector.com/docs/get-started/create-account-and-license/), and MT5 desktop installed and logged in to a **demo account**.

1.  **Download the EA.** Log in to the dashboard, open **Setup Guide** and download `ZB-WebConnector.ex5`.
    
2.  **Copy it into MT5.** In MT5, choose **File → Open Data Folder**, open `MQL5`, then `Experts`, and copy the file there. Refresh the **Navigator** window.
    
    > **What you should see:** The EA is listed in the Navigator under Expert Advisors.
    
3.  **Allow the ZB Connector address.** Choose **Tools → Options**, open the **Expert Advisors** tab, tick **Allow WebRequest for listed URL**, and add this address to the list:
    
    `https://dev.api.zb-connector.com`
    
    Without it, MT5 blocks the EA’s requests and it can never collect a command.
    
    > **What you should see:** The address is in the list when you reopen the dialog.
    
4.  **Switch Algo Trading on.** Make sure the **Algo Trading** (AutoTrading) button in the MT5 toolbar is on. It also must be allowed in the same **Expert Advisors** tab of the options.
    
5.  **Attach the EA.** Double-click the EA in the Navigator, or drag it onto a chart. In the window that opens:
    
    -   On the **Common** tab, tick **Allow Auto Trading**.
    -   On the **Inputs** tab, double-click the input **License ID / Auth token** and paste your license key.
    -   Click **OK**.
    
    > **What you should see:** The EA’s name and icon appear in the upper right corner of the chart. A small panel shows your license, Status: Connected and EA: LIVE within a few seconds.
    
6.  **Check the dashboard.** Open **Licenses**.
    
    > **What you should see:** Your key now shows Account connected and Online. Online means the EA asked for commands in the last 8 seconds.
    

Caution

The on-chart panel shows your **full license key**. Hide it or crop it before you share a screenshot. See [protect your license key](https://zb-connector.com/docs/security/license-keys/).

## If it does not work

-   **Status stays Disconnected.** The EA counts a request as failed unless the API answers with a success status. After 5 failures in a row it writes `Backend unreachable after 5 consecutive failures` to the **Experts** log (Toolbox → Experts). The usual causes, most likely first:
    1.  The address from step 3 is missing or has a typo.
    2.  The license key is wrong or expired: the API refuses it. Copy it again from **Licenses**.
    3.  MT5 has no internet connection.
-   **The panel is not on the chart.** It is shown by default; someone may have switched it off in the EA inputs.
-   **The EA is attached but trades fail.** Algo Trading is off: see [error 10027](https://zb-connector.com/docs/troubleshooting/errors/10027/).
-   **More detail.** The EA also writes `ZB_WebConnector_Log.txt` in the `MQL5\Files` folder of the terminal.
-   Still stuck? [Send the evidence](https://zb-connector.com/docs/troubleshooting/ea-offline/#still-stuck).

## Next step

[Send a test alert](https://zb-connector.com/docs/get-started/send-a-test-alert/) on your demo account.
