6/12/2023 0 Comments Belajar bahasa program mql4 sleepIn my opinion, the use of this function has two disadvantages.įirst, machine time is used impractically: during the pause in the actions of one type, the program could perform the actions of another type independent on the former one (for example, during a pause in trades, the program could perform some calculations, monitor arriving ticks, etc.). The Sleep() function stops the execution of the program code and allows its continuation only after the given time interval has passed. That takes as a parameter the value of the time intervalĮxpressed in the amount of milliseconds. (in case of execution errors) and by waiting for a certain event (for example, for reconnection to the server, for free trade context, etc.).įor realization of pauses, MQL4 has a function named Sleep() This may be caused both by the necessity to meet the requirement of holding a certain interval between repeated requests to the trade server During its operations, an Expert Advisor sometimes produces situations in which it must make pauses between operations.
0 Comments
Leave a Reply. |