> For the complete documentation index, see [llms.txt](https://docs.b2copy.b2broker.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.b2copy.b2broker.com/admin-guide/configure-b2copy/prevent-syncing-of-collapsed-metatrader-trading-history-with-b2copy.md).

# Prevent syncing of collapsed MetaTrader trading history with B2COPY

The MetaTrader (MT) trading history can be shortened by collapsing the trading operations recorded before a certain date into a single balance operation showing the total PnL calculated against all the collapsed records, which are then removed.

When syncing MT trading history with the B2COPY investment platform, it is possible to exclude updates to the MT trading records that occurred before a specific date. By setting the date, you can also exclude the balance operation representing the collapsed MT trading records from syncing and still keep track of such records.

Set a date before which updates to MT trading records are not synced with B2COPY:

{% stepper %}
{% step %}
Go to **Investment Platform** and expand the required platform instance.
{% endstep %}

{% step %}
Expand **Settings**, and select **Synchronization**.
{% endstep %}

{% step %}
In the field named **Do not sync records before the date**, select the date.

If the date is not selected, the balance operation representing the collapsed MT trading records is synced with B2COPY and replaces the series of records that have been collapsed on MT.
{% endstep %}

{% step %}
In the field named **Set a mask of archiving for balance deal**, enter the search mask to find the comment added to the balance operation representing the collapsed MT trading history.

If during syncing, the balance operation is found using the search mask, it is excluded from syncing.

<figure><img src="/files/tdwKnO4bM9dodoBUOsky" alt="Settings > Synchronization"><figcaption><p>Settings > Synchronization</p></figcaption></figure>
{% endstep %}

{% step %}
Click **Save** to apply the changes.
{% endstep %}
{% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.b2copy.b2broker.com/admin-guide/configure-b2copy/prevent-syncing-of-collapsed-metatrader-trading-history-with-b2copy.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
