MT4 shutdown at specific time by TerminalClose

 

Hi All,

I like to use MQL4 to shutdown metatrader at specific time. (for example: shutdown MT4 at UTC 10 pm or 10 pm brokers time)

I dont like to kill the MT4 process (via windows batch), in order to ensure, that all terminal closing procedures will be processed correctly.


Can somebody please give me a help for TerminalClose command?


Thanks in advance, Tom.

Reason: