# What happens if something goes offline

> What ZB Connector does when MT5, your internet, your broker, TradingView or the ZB Connector API is unavailable, and what to do in each case.

Source: https://zb-connector.com/docs/reliability/if-something-goes-offline/

Because your EA pulls commands, anything that stops it from asking also stops your trades. This page lists what happens in each case.

**Simple version**

If MT5 or the EA is off, commands wait in the queue for 5 minutes. If the EA is back within that time, it collects and runs everything still valid in one batch. Older commands expire and never run. If the EA cannot reach the API, its panel shows Disconnected after 5 failed attempts in a row, and it recovers by itself when the connection returns. A command that has been handed to the EA is never sent twice.

**Advanced version**

## Case by case

| What is down | What happens | What you see | What to do |
| --- | --- | --- | --- |
| MT5 is closed, or the EA is removed from the chart | Nothing collects commands. They wait in the queue for up to 5 minutes. | The license turns **Offline** about 8 seconds after the last poll. Commands show **Pending**, then **Expired**. | Open MT5 and attach the EA. Commands still younger than 5 minutes run at once, in one batch. |
| Your internet connection | The EA’s requests fail. After 5 failures in a row its panel shows **Disconnected** and the Experts log gets `Backend unreachable`. | Same as above in the dashboard. | Restore the connection. The EA keeps asking and reconnects by itself. |
| The ZB Connector API | The webhook cannot accept alerts, and the EA’s polls fail. | The TradingView alert log shows a failed **Webhook status**. The EA shows **Disconnected**. | Wait, then check the alert log. Alerts that fired meanwhile did not reach ZB Connector. |
| Your broker connection | MT5 cannot send orders. | A command shows **Failed**, for example “Trade request sending failed” ([4756](https://zb-connector.com/docs/troubleshooting/errors/4756/)). | Reconnect MT5 to the broker and resend if it is still valid. Failed commands are not retried. |
| TradingView | The alert does not fire, or the request is cancelled when the server takes longer than 3 seconds. | Nothing in the dashboard. | See [the alert did not arrive](https://zb-connector.com/docs/troubleshooting/alert-did-not-arrive/). |
| Your license has expired | The webhook refuses the message (HTTP 403). | A failed **Webhook status** in TradingView. | Renew or replace the license. |

## Commands are not repeated

A command that was handed to the EA before it went offline is not queued again. If you are unsure whether it ran, look at your positions in MT5. After 10 minutes without any sign of execution, you get a **Trade command unconfirmed** notification. See [how delivery works](https://zb-connector.com/docs/reliability/how-delivery-works/).

## Think about stale signals

A batch that runs when the EA returns can contain commands up to 5 minutes old. If that is too old for your strategy, check the market before you restart the EA, or close what you do not want.

## Related

-   [Install the EA](https://zb-connector.com/docs/install/install-the-ea/)
-   [The EA is offline](https://zb-connector.com/docs/troubleshooting/ea-offline/)
