MQL4 - automated forex trading   /  

MQL4 Book

Fractal Analysis of Joint Currency MovementsFractal Analysis of Joint Currency Movements Subscribe to signal
High yield pairs
37.39%, 27 708.20 USD
Ticks BandsTicks Bands Try product
Ticks Bands
Author: dupter
Madlen_5_0Indicator
Madlen_5_0
Author: Scriptor
Screenshot
EURJPYi, M5
Real

MQL4 Book  Program in MQL4

Upgrade to
Book in One File

Program in MQL4


It should be noted from the very beginning that programming in MQL4 is available for a common person, though requires attention and certain knowledge.

Perhaps, some traders expect difficulties in studying programming meaning that it is hard for them to imagine complicated processes running in the interior of their computers. Fortunately, developers of MQL4 language tried to make it widely available for users. A pleasant peculiarity of creating programs in MQL4 is that a programmer must not necessarily have special knowledge about the interaction of the client terminal with an operating system, network protocol characteristics or a compiler stucture.

A process of creating programs in MQL4 is an execution of a simple and friendly work. For example, a driver does not have to know a motor structure for driving a car - he only needs to learn pedaling and steering. However, before driving a car on vibrant streets, each driver has to undergo training. Something like that should be done by a starting programmer - learning some simple principles of creating programs and after that slowly starting to "drive".

  • Program Structure
    Although there are numerous types of programs in MQL4, all they have general features. It may be said, that a correct structure is the basis of a correctly written code. That's why it is necessary to understand the components of a program.
  • Special Functions
    There are a lot of functions built in the MQL4 language. Such functions are called standard functions of the language. But there are several extremely important functions, which are called special functions. A program cannot be executed without them. Each of these functions has its own allocation.
  • Program Execution
    One must correctly understand how a MQL4-program operates. Not all code parts are used with the same frequency. What functions are executed in the first instance, where the main part of a program should be placed, what program type should be used for this or that purpose?
  • Examples of Implementation
    A new language is better learned on examples. How to write correctly a simple program? What errors can occur?