MetaQuotes Language 4 (MQL4)

What is MQL4?

MetaQuotes Language 4 (MQL4) - developed by MetaQuotes Software Corp, embedded in the trading MetaTrader 4 terminal programming language of strategies for trading on exchange and over-the-counter (Forex) platforms.

What is mql4?

Why do I need MQL4?

Major developments in the language MQL4 - Expert Advisors, which allow you to automate the management of trading processes and are used to create your own mechanical trading strategies. The language also allows to program technical indicators for stock trading, scripts and function libraries.

The language is made up of MetaQuotes Language 4 includes functions for analyzing current and previous quotes, for working with indicators, functions for managing trading positions, etc.

What programs can be written in MQL4?

The MQL4 programming language allows you to create six types of programs:

  • Advisor

Automatic trading systemThe Expert Advisor is capable of working 24 hours a day, 7 days a week. The Expert Advisor is able to function around the clock, steadily bringing profits.

  • Custom indicator

This is an indicator created in addition to the already existing indicators.

  • User script

A program that will be executed at the trader's request only once. Can replace the daily actions when working with the terminal.

  • Function Library

A set of functions for specific tasks.

  • Header file (*MQH)

Creating a header file with *MQH extension.

  • Generating from a template

Creating a program from a ready-made template.

How to Program in MQL4 in MetaTrader 4?

MQL 4 is easy to learn and very similar to other programming languages, so if you have studied programming before, it won't be hard to master MQL.

To start writing your own program in the MetaTrader4 terminal, run the MQL MetaEditor. You can do it in three ways :

  • First way

Select MetaQuotes Language Editor in the service menu.

What is mql 4?
Вызов редактора MetaQuotes Language через меню «Сервис»
  • The second way

Press the F4 key.

  • The third way

Use the corresponding button on the standard toolbar.

What is mql 4?
Calling the MetaQuotes Language Editor via the toolbar

В открывшемся окне редактора через меню «Файл» — «Создать» можно выбрать тип создаваемой программы, после чего приступать к ее написанию.

What is mql4?
Selecting the program type in the editor

MQL 4 programs on our website

Useful articles on the topic

Leave a Reply

Back to top button