MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal

Automated Trading Language Documentation

Subscribe to signal
Bosh
237.72%, 33 678.44 USD
Screenshot
USDJPY, H1
Demo
Clock Timezone LimitedClock Timezone Limited Try product
Clock Timezone Limited
Author: song_song
Simulink: a Guide for the Developers of Expert Advisors Simulink: a Guide for the Developers of Expert Advisors WPR_Hist Indicator
WPR_Hist
Author: maloyz
MQL5 ReferenceLanguage Basics 

Language Basics

The MetaQuotes Language 5 (MQL5) is an object-oriented high-level programming language intended for writing automated trading strategies, custom technical indicators for the analysis of various financial markets. It allows not only to write a variety of expert systems, designed to operate in real time, but also create their own graphical tools to help you make trade decisions.

MQL5 is based on the concept of the popular programming language C++. As compared to MQL4, the new language now has enumerations, structures, classes and event handling. By increasing the number of embedded main types, the interaction of executable programs in MQL5 with other applications through dll is now as easy as possible. MQL5 syntax is similar to the syntax of C++, and this makes it easy to translate into it programs from modern programming languages.

To help you study the MQL5 language, all topics are grouped into the following sections:

Syntax

Data Types

Operations and Expressions

Operators

Functions

Variables

Preprocessor

Object-Oriented Programming


Updated: 2010.10.27