What OS do you have?
On my system - Win 8.1, build 1170 - it works fine.
int OnInit() { //--- create timer EventSetTimer(1); //--- return(INIT_SUCCEEDED); } void OnTimer() { //--- Print("kyp"); }It prints.
What OS do you have?
On my system - Win 8.1, build 1170 - it works fine.
It prints.I have updated my original post. None of OnTick() or OnTimer() invoked when MT4 terminal minimized.
My OS version:
Microsoft Windows 1803 (OS 17134.706)
Windows 10 Professional
It is probably a Windows 10 issue. Windows 10 has many issues like that.
Anyway it is a problem, I reposted your report in a thread about bugs and errors in the Russian section, which MetaQuotes people read regularly:
https://www.mql5.com/ru/forum/1111/page2442#comment_11422774
It is probably a Windows 10 issue. Windows 10 has many issues like that.
Anyway it is a problem, I reposted your report in a thread about bugs and errors in the Russian section, which MetaQuotes people read regularly:
https://www.mql5.com/ru/forum/1111/page2442#comment_11422774
I am sorry. This is a bug of my program. Please recall your post...
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
It seems that OnTick() and OnTimer() event handler used to work before, but recently I found they stop working when I minimize MT4 terminal, and they will come back to work when I un-minimize MT4 terminal. Does anyone found this issue?
Test of OnTick()
Test of OnTimer(). I tried both EventSetMillisecondTimer(256) and EventSetTimer(1) OnInit(). Both of them have the same issue.
My OS information:
Microsoft Windows 1803 (OS 17134.706)
Windows 10 Professional