The Start event is not send to Expert Advisors or custom indicators. This event is processed by OnStart handler. The Start event is a special event for script activation after it is loaded. If during this time the function hasn't been completed, then it is forcibly terminated. The OnDeinit() function run is restricted to 2.5 seconds. The deinitialization reason can be obtained from the parameter, passed to the OnDeinit() function. Deinit is also generated when the client terminal is closed, when a chart is closed, right before the security and/or timeframe is changed, at a successful program re-compilation, when input parameters are changed, and when account is changed. Deinitīefore global variables are deinitialized and the program (Expert Advisor or custom indicator) is unloaded, the client terminal sends the Deinit event to the program. An Expert Advisor is also initialized after the account is changed. This event is also generated after a financial instrument and/or chart timeframe is changed, after a program is recompiled in MetaEditor, after input parameters are changed from the setup window of an Expert Advisor or a custom indicator. Immediately after the client terminal loads a program (an Expert Advisor or custom indicator) and starts the process of initialization of global variables, the Init event will be sent, which will be processed by OnInit() event handler, if there is such.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |