ferelosangeles.blogg.se

Mql4 reference manual
Mql4 reference manual










mql4 reference manual

Right after a program is attached to a chart, it is uploaded to the client terminal memory, as well as global variable are initialized.

mql4 reference manual

The below table contains a brief summary of MQL4 programs:Ī separate thread, the number of threads for scripts is equal to the number of scriptsĪ looped script cannot break running of other programsĪ separate thread, the number of threads for Expert Advisors is equal to the number of Expert AdvisorsĪ looped Expert Advisor cannot break running of other programsĪll indicators share the resources of graphic interface thread of the terminalĪn infinite loop in one indicator will stop the work of terminal Therefore, in case there is no connection to the server, this may lead to a delay in the start of an Expert Advisor. For all these procedures, the terminal provides a start delay of no more than 5 seconds, after which the Expert Advisor will be started with available data. When running an Expert Advisor, make sure that it has an actual trading environment and can access the history of the required symbol and period, and synchronize data between the terminal and the server. Library (imported) functions work in the calling program thread, as well. If a custom indicator has been called with the iCustom() function, this indicator works in the thread of the program that has called it. Custom indicators work in the main interface thread. processing of ticks and history synchronization are also performed in graphic interface thread. All indicators work in the graphic interface thread. Each script and each Expert Advisor runs in its own separate thread.












Mql4 reference manual