How to import data directly from Web Site into MT4 indicator - STRING VARIABLE ???

 

I would like to import time of publication newses from web site: http://www.dailyfx.com/calendar/index.html?sort=dateDesc&timezone=GMT

into string variable of indicator I 'm writing now...


For example we have EURUSD currency pair, if ((today news == today date) && (currency == EUR) || (currency == USD)) { import hours into single variable and separate each time by the ";" }


Is possible to do it ? How to code it MQL if YES ?

 
puncher:

I would like to import time of publication newses from web site: http://www.dailyfx.com/calendar/index.html?sort=dateDesc&timezone=GMT

into string variable of indicator I 'm writing now...


For example we have EURUSD currency pair, if ((today news == today date) && (currency == EUR) || (currency == USD)) { import hours into single variable and separate each time by the ";" }


Is possible to do it ? How to code it MQL if YES ?




Yes you can do it.  No, it is not simple.

There is an article here at this site for doing what you are talking about...   Displaying a News Calendar

I failed to capture the article's link, so just search this site on the article's title I have given and that should help you if you really want to do this.

 
I have been trying to find solution to a simple problem of how to import and display data from a web site with MT4 indicator. i find it very surprising that this is so difficult and could not find any good instructions to do this!! I suppose one more good reason to switch to another platform...
 
How to get something from the web is good enough documented, the stuff left is only about string operations, there is no general solution for that, i don't know what you are trying to get from a website....
Reason: