that works only if you make ea particularly for your time zone
No. TimeCurrent() is broker time and timeGMT is 0 GMT time
my time zone is not in calculation
imagine a case, Server is in 0 GMT, you live in GMT+1, broker time GMT+2. TimeCurrent() returns GMT 0, because server is GMT 0, same goes for TimeGMT(). TimeLocal() returns GMT+1 or whatever time you chose on your pc. TimeGMTOffset() returns difference between GMT+1 and GMT 0 which is 1h. And there is no command to get offset between GMT 0 and broker time. Which would be equal 2h. In other words, there is no command, which would tell us for how many hours the time has shifted.
Why do we need this? For strategies based on predifined time events, like Trading sessions, news and etc. Where you want ea automatically adjust to any timezone or broker time.
This was a service desk reply
There is no way. And we don't have plans to add ChartIndicatorAdd() in MQL4
I don't have this problem (with the code I posted).
Check that hWnd is different from 0.
You can also try to increase the sleep value to 50 or 100.