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

Variables

Оглавление

Variables are letter symbols that contain values of some type. Variables are like kegs with something inside.

The bool type is the same – for example, the variable bool b = true means that the keg with the name b contains true inside.


Before creating a variable for later use, you must assign its type, so that the MetaEditor’s compiler (the one where we will create our bot) knew what will be stored inside this variable. The variable names can not begin with a digit.

You can only assign a variable once. Later we will examine where they can be assigned and how it affects our subsequent actions.

Expert advisor for MT4 for one evening

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