---
title: "Creating a library - MQL4/MQL5 Wizard - MetaEditor Help"
description: "A template is a basic source code of a library. It contains the standard program header, general properties, as well as a... - Creating a library - MQL4/MQL5 Wizard - MetaEditor Help"
image: "https://www.metatrader5.com/i/logo_metatrader5.png"
url: "https://www.metatrader5.com/en/metaeditor/help/mql5_wizard/wizard_library"
---

[MetaEditor Help](https://www.metatrader5.com/en/metaeditor/help) → [MQL4/MQL5 Wizard](https://www.metatrader5.com/en/metaeditor/help/mql5_wizard) → Creating a library

# Creating a library

A template is a basic source code of a library. It contains the standard program header, general properties, as well as a simple sample function. The template is created in the MQL5/Libraries (or MQL4/Libraries) directory.

![Creating a library](https://www.metatrader5.com/i/help/metaeditor/en/wizard_library.png)

Fill in the following fields:

- Name – name of the library, the same name is assigned to the library file. Here you can also change the path to a destination file. For example, create it in the new \Libraries subfolder.
- Author – author name.
- Link – developer's email address or website.

Click Finish to complete template creation. A generated file is immediately opened for editing.

## In this section

- [Creating an EA template](https://www.metatrader5.com/en/metaeditor/help/mql5_wizard/wizard_ea)
- [Creating a ready-made Expert Advisor](https://www.metatrader5.com/en/metaeditor/help/mql5_wizard/wizard_ea_generate)
- [Creating an indicator](https://www.metatrader5.com/en/metaeditor/help/mql5_wizard/wizard_indicator)
- [Creating a script](https://www.metatrader5.com/en/metaeditor/help/mql5_wizard/wizard_script)
- Creating a library
- [Creating an include file](https://www.metatrader5.com/en/metaeditor/help/mql5_wizard/wizard_include)
- [Creating a class](https://www.metatrader5.com/en/metaeditor/help/mql5_wizard/wizard_class)

```json
{"@context": "https://schema.org", "@type": "BreadcrumbList", "itemListElement": [ {"@type": "ListItem", "position": 1, "item": {"@id": "https://www.metatrader5.com/en/metaeditor/help", "name": "MetaEditor Help"}}, {"@type": "ListItem", "position": 2, "item": {"@id": "https://www.metatrader5.com/en/metaeditor/help/mql5_wizard", "name": "MQL4/MQL5 Wizard"}}, {"@type": "ListItem", "position": 3, "item": {"@id": "https://www.metatrader5.com/en/metaeditor/help/mql5_wizard/wizard_library", "name": "Creating a library"}} ]}
{ "@context": "https://schema.org", "@type": "FAQPage", "mainEntity": [{ "@type": "Question", "name": "MetaTrader 5: Creating a library", "acceptedAnswer": { "@type": "Answer", "text": "A template is a basic source code of a library. It contains the standard program header, general properties, as well as a simple sample function..." } }] }
```
