![]() Like speakers at a meeting, the client terminal and the program transfer control to each other. #BELAJAR BAHASA PROGRAM MQL4 SLEEP CODE#Control can be transferred within the program from one code line to another one, as well as from the program to the client terminal.Ĭontrol is transferred in a way similar to one speaker giving the floor to another speaker at a meeting. The notion of controlĬontrol is the term used t o speak about the flow of code execution within a program, as well as the flow between the program and the client terminal.Ĭontrol is the process of carrying out actions preset by the program algorithm and the client terminal features. The detailed description of how the appearance of a new tick influences program operation follows next. This new tick launches the EA again, the program makes its appropriate operations again and returns to the waiting mode. Having finished this part of its work, the EA goes to waiting mode until a new tick comes. ![]() Within this time, the EA can have processed some parameters, made a trading decision, provided the trader with some useful information and so on. Normal EAs complete one information-processing cycle during some tenths or hundredths of a second. The duration of an EA's operation depends on what program code is included in the EA. For this reason, we do not characterize tick as just a new quote, but as an event to be processed by the client terminal. An EA is usually launched at the moment when a new tick comes. For example, an Expert Advisor (EA) does not work continuously all the time. Each application is executed according to the rules set for programs of a certain type. As appropriate to the current market situation, ticks may be received more or less frequently, but each of them brings a new quotethe cost of one currency expressed in terms of another currency.Īn application operating within the client terminal may work over a long period of time, for example, several days or weeks. ![]() ![]() Ticks are delivered to every client terminal by a server that is installed in a dealing center. The notion of a tickĪ tick is an event that is characterized by a new price of the symbol at some instant. Ticks provide the client terminal with information about price changes on the market. The situation on financial markets changes continually, which affects symbol charts in the client terminal. The MetaTrader 4 Client Terminal works with an online connection. Before we start a detailed presentation of the rules of writing programs, it is necessary to describe the basic concepts that characterize a program and its interrelations with the information environment. The subject of our interest is a program written in MQL4. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |