> For the complete documentation index, see [llms.txt](https://docs.metacopier.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.metacopier.io/features/basic-features/maintenance-window.md).

# Maintenance window

The Maintenance Window feature allows you to safely pause or stop trading activity during planned maintenance, broker downtime, or strategy updates. It provides full control over when maintenance occurs, which accounts are affected, how copiers behave, and how open positions are handled, all without manual intervention.

When the maintenance window starts, the configured actions are applied automatically. Once the window ends, normal operation is restored automatically.

<figure><img src="/files/4zEHPAN5eh8XeFfuuyqO" alt=""><figcaption><p>Maintenance Window</p></figcaption></figure>

## **Settings**

* **Broker Restriction:** Optionally restrict maintenance to a specific broker using a case-insensitive regex (e.g., `ICMarkets.*` for ICMarkets brokers, or `.*` for all brokers).
* **Start & End Time:** Defines the time range (local timezone) for the maintenance window.
* **Account Type:** Limits the maintenance window to specific account types (e.g., MT4, MT5, DXtrade, etc.), or applies it to all accounts when is empty.
* **Maintenance Action:** Defines how trading activity behaves during maintenance. You can either fully stop accounts or temporarily pause copiers.
* **Close Position Strategy:** Determines how open positions are handled before maintenance start: keep them open, close all, or close only if total profit is positive.

{% hint style="info" %}
If an account is already stopped before the maintenance window begins, it will still be restarted once the maintenance window ends.
{% endhint %}
