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

# 创建函数库

模板是函数库的基本源代码。 它包括标准程序头文件，常规属性以及简单的示例函数。 该模板在 MQL5/Libraries（或 MQL4/Libraries）目录中创建。

![创建函数库](https://www.metatrader5.com/i/help/metaeditor/en/wizard_library.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_include)
- [创建类](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_library", "name": "创建函数库"}} ]}
{ "@context": "https://schema.org", "@type": "FAQPage", "mainEntity": [{ "@type": "Question", "name": "MetaTrader 5: 创建函数库", "acceptedAnswer": { "@type": "Answer", "text": "模板是函数库的基本源代码。 它包括标准程序头文件，常规属性以及简单的示例函数。 该模板在 MQL5/Libraries（或 MQL4/Libraries）目录中创建。 填写以下字段: 名称 ―函数 库的名称，相同的名称被分配给函数库文件。 在此，您还可以更改目标文件的路径。 例如，在新的..." } }] }
```
