Event handling on include files

 
Hi,

I'd like to know if OnTimer event handling can be used in include files (.mqh), because i  documentation only stated for indicators and EA?
 
Sure.
 
Luandre Ezra: I'd like to know if OnTimer event handling can be used in include files (.mqh), because i  documentation only stated for indicators and EA?

".mqh" files are included at compile time, not at runtime. They are a compilation aid that can be used for any MQL code or any type of MQL program.

However if you include OnTimer event handler in the final code of a non compliant program (e.g. Script or Service), it will fail in the compilation.

Reason: