---
title: "Example of developing a program - MetaEditor Help"
description: "Thanks to MQL4/MQL5 Wizard , you only need a few minutes to create a simple program. The current example will display \"Hello... - Example of developing a program - MetaEditor Help"
image: "https://www.metatrader5.com/i/logo_metatrader5.png"
---

[MetaEditor Help](https://www.metatrader5.com/en/metaeditor/help) → Example of developing a program

# Example of developing a program

Thanks to [MQL4/MQL5 Wizard](https://www.metatrader5.com/en/metaeditor/help/mql5_wizard), you only need a few minutes to create a simple program. The current example will display "Hello World" entry in the platform log.

Launch MQL4/MQL5 Wizard using the ![New](https://www.metatrader5.com/i/help/metaeditor/en/new_icon.png) New command in the [File](https://www.metatrader5.com/en/metaeditor/help/main_menu/main_menu_file) menu or in the [Standard](https://www.metatrader5.com/en/metaeditor/help/toolbar/toolbar_standard) toolbar. Set Script as a program type at the first step.

![Creating a script in the Wizard](https://www.metatrader5.com/i/help/metaeditor/en/example_wizard_script.png)

Next, set the script name. If you want to create the script file in a separate subfolder rather than in the Scripts root directory, add the folder name in the Name field. For example, "Scripts\Script Example\Script Example". After clicking Finish, the "Script Example.mq5" script file is generated in the "Scripts\Script Example\" directory.

Add the "Print("Hello World!);" string to the generated file and save the changes (Ctrl+S). Perform compilation to turn the initial file into the one that can be launched in the trading platform. Click ![Compile](https://www.metatrader5.com/i/help/metaeditor/en/compile_icon.png) Compile in the [File](https://www.metatrader5.com/en/metaeditor/help/main_menu/main_menu_file#save) menu or in the [toolbar](https://www.metatrader5.com/en/metaeditor/help/toolbar/toolbar_standard). The compilation result is displayed in the [Errors](https://www.metatrader5.com/en/metaeditor/help/workspace/toolbox#errors) tab of the Toolbox window:

![Script compilation](https://www.metatrader5.com/i/help/metaeditor/en/example_compile.png)

As a result of compilation, ScriptExample.ex5 executable script file is created in the same directory where the source file is located.

The [debugging mode](https://www.metatrader5.com/en/metaeditor/help/development/debug) allows you to check the execution of a program in steps. If necessary, set [breakpoints](https://www.metatrader5.com/en/metaeditor/help/development/debug#breakpoint) – strings/functions, at which the program execution is paused. To do this, double-click the left mouse button to the left of the required line. Then click "![Start debugging](https://www.metatrader5.com/i/help/metaeditor/en/start_debug_icon.png) Start debugging" in the [Debug](https://www.metatrader5.com/en/metaeditor/help/main_menu/main_menu_debug#start) menu or on the [toolbar](https://www.metatrader5.com/en/metaeditor/help/toolbar/toolbar_standard).

![Launching debugging](https://www.metatrader5.com/i/help/metaeditor/en/example_start_debug.png)

The script is launched on a temporary chart in the trading platform, while the script operation result – "Hello World!" entry appears in the experts log:

![Debugging the script](https://www.metatrader5.com/i/help/metaeditor/en/example_debug.png)

To finish debugging, press "![Stop debugging](https://www.metatrader5.com/i/help/metaeditor/en/stop_debug_icon.png) Stop debugging".

After completing all the steps, you can run the script in the trading platform. To open it, click ![Trading terminal](https://www.metatrader5.com/i/help/metaeditor/en/terminal_icon.png) Trading Terminal in the [Tools](https://www.metatrader5.com/en/metaeditor/help/main_menu/main_menu_tools) menu or F4.

## In this section

- [Launch](https://www.metatrader5.com/en/metaeditor/help/beginning/open)
- [Settings](https://www.metatrader5.com/en/metaeditor/help/beginning/settings)
- [Integration with other IDEs](https://www.metatrader5.com/en/metaeditor/help/beginning/integration_ide)
- [Main menu](https://www.metatrader5.com/en/metaeditor/help/main_menu)
- [Toolbars](https://www.metatrader5.com/en/metaeditor/help/toolbar)
- [Workspace](https://www.metatrader5.com/en/metaeditor/help/workspace)
- [Projects and MQL5 Algo Forge](https://www.metatrader5.com/en/metaeditor/help/mql5storage)
- [MQL4/MQL5 Wizard](https://www.metatrader5.com/en/metaeditor/help/mql5_wizard)
- [Developing programs](https://www.metatrader5.com/en/metaeditor/help/development)
- [Working with SQL data bases](https://www.metatrader5.com/en/metaeditor/help/database)
- [Working with machine learning models](https://www.metatrader5.com/en/metaeditor/help/machine_learning)
- Example of developing a program
- [MetaEditor environment folders](https://www.metatrader5.com/en/metaeditor/help/structure)
- [MQL5.community: Community of Traders](https://www.metatrader5.com/en/metaeditor/help/mql5community)
- [Built-in help](https://www.metatrader5.com/en/metaeditor/help/mql5_help)
- [Articles on the development of trading applications](https://www.metatrader5.com/en/metaeditor/help/articles)
- [Trading platform video guides](https://www.metatrader5.com/en/metaeditor/help/video_guides)

```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/project_example", "name": "Example of developing a program"}} ]}
{ "@context": "https://schema.org", "@type": "FAQPage", "mainEntity": [{ "@type": "Question", "name": "MetaTrader 5: Example of developing a program", "acceptedAnswer": { "@type": "Answer", "text": "Thanks to MQL4/MQL5 Wizard , you only need a few minutes to create a simple program. The current example will display &quot;Hello World&quot; entry..." } }] }
```
