Hi all,
I would like to check the Leading Economic Indicators (LEI) published data on the Conference Board, Business Cycle Indicators page at https://www.conference-board.org/data/bci.cfm
I'm only interested in the value of the U.S. data which is displayed within the html code below. So after reading the entire webpage into a string, how can I search for and extract ONLY the value of the U.S. data which in the example below is +0.9% ? In other words, what is the StringFind mql4 search code I can use to find ONLY the value of the U.S. data within the webpage string.
I attached a screenshot of what the LEI data looks like on the webpage.
I read the data from the webpage into a string using the ReadWebPage() function call from v4 of Hanover's b600+ utility functions from "hanover --- extensible functions b600 (np).mqh" at https://www.forexfactory.com/thread/...d-related-tips
I attached the mqh file below.
I will really appreciate it if anyone can help me with this. Thanks.
I would like to check the Leading Economic Indicators (LEI) published data on the Conference Board, Business Cycle Indicators page at https://www.conference-board.org/data/bci.cfm
I'm only interested in the value of the U.S. data which is displayed within the html code below. So after reading the entire webpage into a string, how can I search for and extract ONLY the value of the U.S. data which in the example below is +0.9% ? In other words, what is the StringFind mql4 search code I can use to find ONLY the value of the U.S. data within the webpage string.
Inserted Code
<tr class="even"> <td align="center"> <a href="bcicountry.cfm?cid=1" title="U.S.">U.S.</a> </td> <td align="center"> <span class="small_indicator up_small">+0.9%</span> </td> <td align="center"> 23 Sep. 2021 </td> </tr>
I attached a screenshot of what the LEI data looks like on the webpage.
I read the data from the webpage into a string using the ReadWebPage() function call from v4 of Hanover's b600+ utility functions from "hanover --- extensible functions b600 (np).mqh" at https://www.forexfactory.com/thread/...d-related-tips
I attached the mqh file below.
Inserted Code
// With hanover --- extensible functions b600 (np).mqh in the \MQL4\Include directory #include <hanover --- extensible functions b600 (np).mqh> string webpagetext = ReadWebPage("https://www.conference-board.org/data/bci.cfm");
I will really appreciate it if anyone can help me with this. Thanks.
Attached Image
Attached File(s)
hanover --- extensible functions b600 (np).mqh
331 KB
|
108 downloads