What's that code ? A lot of references to google which have nothing to do with worldtimeserver.
Why do you want to get time from a web server at all ? GMT time is provided directly in MQL with TimeGMT().
What's that code ? A lot of references to google which have nothing to do with worltimeserver.
Why do you want to get time from a web server at all ? GMT time is provided directly in MQL with TimeGMT().
yes i know we have TimeGMT in MQL
but i use news filter i need upload GMT from webrequest
What's that code ? A lot of references to google which have nothing to do with worldtimeserver.
Why do you want to get time from a web server at all ? GMT time is provided directly in MQL with TimeGMT().
string GrabWeb() { string cookie=NULL; string strUrl; string headers,ret; char post[],result[]; int res, timeout=5000; strUrl= "https://www.worldtimeserver.com/"; res=WebRequest("GET",strUrl,cookie,NULL,timeout,post,0,result,headers); if (res < 0) { Alert("Web-Error: ",GetLastError()," (4060 ERR_FUNCTION_NOT_CONFIRMED/Url not allowed)" ); return(""); } ret = CharArrayToString(result,0,-1); return(ret); }
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
i dont know why i have just a datetime but not time gmt
some one can give help plz