> For the complete documentation index, see [llms.txt](https://guide.moontrader.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guide.moontrader.com/en-moontrader-docs/interface-basics/tabs/algorithms/copying-sections.md).

# Copying Sections

Individual sections of an algorithm, such as filters, can be copied and pasted into other algorithms.

**Copy sections:**

1. Open the algorithm for editing.
2. Click «Copy mode» in the bottom left corner of the window.
3. Click the sections you want to copy. A selected section is marked with a check on the right, clicking it again clears the selection.
4. Click «Copy» or «Copy and close». The «Copy» button shows the number of selected sections.

<figure><img src="https://2194691319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPMuOulAKIicy77MPPDXF%2Fuploads%2F3IYeg3GmQ2j7YFvTXuHd%2FCopy%20sections%20-%20ENG.png?alt=media&amp;token=9bbe7eb6-987c-4721-a8c6-3a55a986ee63" alt=""><figcaption></figcaption></figure>

The «Back» button returns to regular editing. Changes made in copy mode are not applied to the original algorithm.

**Paste into one algorithm:**

Open the algorithm for editing and click «Paste» in the bottom left corner of the window.

<figure><img src="https://2194691319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPMuOulAKIicy77MPPDXF%2Fuploads%2F5qOMKdJa0A2tS1N5Wcv6%2FPaste%20into%20one%20algorithm%20-%20ENG.png?alt=media&amp;token=9e6514c7-41ec-4b54-aa8b-8c72a056550f" alt=""><figcaption></figcaption></figure>

**Paste into several algorithms:**

1. On the «Algorithms» tab, select the algorithms you need.
2. Click «Paste» on the panel above the table.
3. In the «Replace sections» window, click «Replace».

⚠️ The copied sections replace the same sections in the algorithm.

<figure><img src="https://2194691319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPMuOulAKIicy77MPPDXF%2Fuploads%2FwUFQu6ZbG2o3wrqyryJm%2FPaste%20into%20several%20algorithms%20-%20ENG.png?alt=media&amp;token=0af73f6c-819d-45d6-a334-093c730f5129" alt=""><figcaption></figcaption></figure>


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://guide.moontrader.com/en-moontrader-docs/interface-basics/tabs/algorithms/copying-sections.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
