---
title: "创建包含文件 - MQL4/MQL5 向导 - MetaEditor 帮助"
description: "模板包含文件的基本源代码。 它包括标准程序头文件，常规属性以及从其它文件导入的函数示例。 模板在 MQL5/Include（或 MQL4/Include）目录中创建。 填写以下字段: 名称 ― 包含文件名。 相同的名称将被分配给文件本身。... - 创建包含文件 - MQL4/MQL5 向导 - MetaEditor 帮助"
image: "https://www.metatrader5.com/i/logo_metatrader5.png"
url: "https://www.metatrader5.com/zh/metaeditor/help/mql5_wizard/wizard_include"
---

[MetaEditor 帮助](https://www.metatrader5.com/zh/metaeditor/help) → [MQL4/MQL5 向导](https://www.metatrader5.com/zh/metaeditor/help/mql5_wizard) → 创建包含文件

# 创建包含文件

模板包含文件的基本源代码。 它包括标准程序头文件，常规属性以及从其它文件导入的函数示例。 模板在 MQL5/Include（或 MQL4/Include）目录中创建。

![创建包含文件](https://www.metatrader5.com/i/help/metaeditor/en/wizard_include.png)

填写以下字段:

- 名称 ― 包含文件名。 相同的名称将被分配给文件本身。 在此，您还可以更改目标文件的路径。 例如，在新的 \Libraries 子文件夹中创建它。
- 作者 ― 作者名。
- 链接 ― 开发者的电子邮件地址或网站。

单击完成以便结束模板创建。 生成的文件立即被打开进行编辑。

## In this section

- [创建 EA 模板](https://www.metatrader5.com/zh/metaeditor/help/mql5_wizard/wizard_ea)
- [创建成品智能交易系统](https://www.metatrader5.com/zh/metaeditor/help/mql5_wizard/wizard_ea_generate)
- [创建指标](https://www.metatrader5.com/zh/metaeditor/help/mql5_wizard/wizard_indicator)
- [创建脚本](https://www.metatrader5.com/zh/metaeditor/help/mql5_wizard/wizard_script)
- [创建函数库](https://www.metatrader5.com/zh/metaeditor/help/mql5_wizard/wizard_library)
- 创建包含文件
- [创建类](https://www.metatrader5.com/zh/metaeditor/help/mql5_wizard/wizard_class)

```json
{"@context": "https://schema.org", "@type": "BreadcrumbList", "itemListElement": [ {"@type": "ListItem", "position": 1, "item": {"@id": "https://www.metatrader5.com/zh/metaeditor/help", "name": "MetaEditor 帮助"}}, {"@type": "ListItem", "position": 2, "item": {"@id": "https://www.metatrader5.com/zh/metaeditor/help/mql5_wizard", "name": "MQL4/MQL5 向导"}}, {"@type": "ListItem", "position": 3, "item": {"@id": "https://www.metatrader5.com/zh/metaeditor/help/mql5_wizard/wizard_include", "name": "创建包含文件"}} ]}
{ "@context": "https://schema.org", "@type": "FAQPage", "mainEntity": [{ "@type": "Question", "name": "MetaTrader 5: 创建包含文件", "acceptedAnswer": { "@type": "Answer", "text": "模板包含文件的基本源代码。 它包括标准程序头文件，常规属性以及从其它文件导入的函数示例。 模板在 MQL5/Include（或 MQL4/Include）目录中创建。 填写以下字段: 名称 ― 包含文件名。 相同的名称将被分配给文件本身。 在此，您还可以更改目标文件的路径。 例如，在新的..." } }] }
```
