Читать книгу Expert advisor for MT4 for one evening - Evgeny Zhdan - Страница 3

A LITTLE BIT OF THEORY

Оглавление

Types of data

The trading expert manipulates data. It works with incoming prices, price values of indicators, keeps counting the open orders, writes to the trading terminal log.

In mql4, the following data types exist:

Basic data types:

– integers (char, short, int, long, uchar, ushort, uint, ulong)

– logicals (bool)

– literals (ushort)

– strings (string)

– floating-point numbers (double, float)

– colors (color)

– date and time (datetime)

– enumerations (enum)

Complex data types:

– structures;

– classes.

At first, you will not need 70% of the above. Let’s consider only those we will need for the development of our trading expert.

– Int type – integers, i.e., 1, 2, 5, 100, 1425…

– Double type – numbers with a fractional part (with a decimal point): 1.0254, 0.0547…

– Bool type – it only has 2 values – true and false.

– String type – string variables, i.e. words: “word”, “four-word sentence”…

Expert advisor for MT4 for one evening

Подняться наверх