> 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/pro-features/news-protection.md).

# News protection

{% hint style="info" %}
This feature is added at the **account** level, not on a copier, because it acts on positions that already exist regardless of where they came from.
{% endhint %}

**News protection** closes open positions shortly before a calendar event that affects their currencies, and can re-open them once the release is over. Where the [News filter](/features/pro-features/news-filter.md) keeps you out of a spike, News protection gets you out of it.

Attaching the feature is the switch. There is no separate enable flag to look for on the account.

## How it works

1. From the calendar, every event that matches your event selection is checked against the currencies of your open positions.
2. `Close before` minutes ahead of the release, the affected positions are closed. Pending orders on those symbols are cancelled as well if you enabled it.
3. `Re-open after` minutes past the release, the positions are re-opened according to the re-open mode, provided the guards below allow it.

{% hint style="warning" %}
Closing a position realises its profit or loss and pays the spread again on the way back in. News protection trades a known cost for an unknown one. On a strategy that holds through releases on purpose, it will cost more than it saves.
{% endhint %}

## Event selection

News protection uses the same event selection block as the News filter: minimum impact, global events, bank holidays, category blacklist, currency whitelist, title blacklist and whitelist and symbol mappings. See [News filter](/features/pro-features/news-filter.md#event-selection) for the details of each option.

## Closing

* **Close before (minutes):** How far ahead of the release the positions are closed. Default 5, maximum 120. Too early and you give up the move you were in, too late and the spread is already widening.
* **Cancel pending orders:** Pending orders on affected symbols are cancelled too. Off by default.
* **Close only losing positions:** Leaves winners running and only takes the losers out of the way. Off by default.
* **Minimum profit to close:** Only close positions whose floating profit is at least this amount in account currency. Useful when you want to bank something rather than protect everything.

## Re-opening

* **Re-open mode:**
  * **Resync with master** (default): The position is restored from the master's current state, so a master that closed during the release does not get re-opened on your account.
  * **Same volume:** The position is re-opened with the volume it had before the close.
  * **None:** Nothing is re-opened. The close is final.
* **Re-open after (minutes):** How long to wait after the release. Default 10, maximum 240. The first minutes after a release are usually the worst possible entry.
* **Only re-open while the master still holds the position:** Enabled by default. Without it you can end up in a trade the master has already left.
* **Maximum spread (points):** Skip the re-open while the spread is still wider than this.
* **Maximum adverse move (pips):** Skip the re-open when the price has already run against the original direction by more than this. Leaving it empty means no limit, which defeats the purpose of protecting.
* **Re-open expiry (minutes):** A pending re-open older than this is dropped instead of fired late. Default 10, maximum 1440. This is the failsafe for the case where the market, the connection or the account was unavailable at the intended time.

{% hint style="info" %}
A re-open can be refused by any of these guards. That is the intended behaviour: not re-entering is a valid outcome, and every refusal is logged and can be notified.
{% endhint %}

## Warnings

* **Warn before (minutes):** One warning per entry. Defaults to 60 minutes, so you are told an hour before anything is closed. Empty disables the warnings.
* **Warn only if exposed:** Stay silent when nothing is open on the affected symbols. Enabled by default.
* **Imminent notice:** One last message right before the close runs. Enabled by default.
* **Daily agenda:** One digest per day at a fixed UTC time instead of many single warnings.
* **Notification targets:** Where the messages go. Empty means every notification channel of the project.

Warnings created by this feature also appear under **Pending alerts** in the [Economic calendar](/features/economic-calendar.md).

## Per-symbol configuration

You can define a different configuration for individual symbols, for example closing `XAUUSD` 15 minutes ahead while everything else closes 5 minutes ahead.

{% hint style="info" %}
A per-symbol entry **replaces the whole configuration** for that symbol, it does not merge field by field. Set every value you want that symbol to use.
{% endhint %}

## Combining it with the News filter

The two features solve different halves of the same problem and work well together:

* [**News filter**](/features/pro-features/news-filter.md) on the copier keeps new trades from being opened into the event.
* **News protection** on the account clears the positions that were already open.

Without the filter, the copier may re-open a position seconds after News protection closed it, because from the copier's point of view nothing changed.
