this is what I get when I attach script05
and nothing is printed on the chart or indicator area...
what am I missing?
2019.04.14 17:11:18.623 Scripts script bonds (EURUSD,Daily) loaded successfully
this is what I get when I attach script05
and nothing is printed on the chart or indicator area...
what am I missing?
2019.04.14 17:11:18.623 Scripts script bonds (EURUSD,Daily) loaded successfully
ScraperBot06.mq4 works ok in MT5, and it does the same thing as ScraperBot05.mq5. The difference is that ScraperBot05 uses WebRequest(), while ScraperBot06 uses the functions in WinINet.dll, which seems to be more reliable than WebRequest(). I'll look into the problem to see if ScraperBot05.mq5 using WebRequest() can be made to work. It worked ok when I submitted the article in October 2018.
Edit: The call to WebRequest() in ScraperBot05.mql and other scripts will work only if the server named in the web request is allowed in Metatrader options. This is explained in the article.
ERR_FUNCTION_NOT_ALLOWED | 4014 | Function is not allowed for call |
Metatrader 5 may have changed the implementation of WebRequest() since I submitted the article in October 2018, but the documentation for WebRequest() has not changed.
Edit: the problem is solved on my computer after allowing requests to the web server "https://api.wsj.net" in Metatrader options. Apparently, the permission was removed by a Metatrader update.
ScraperBot06.mq5 attached to this message is the same as ScraperBot05.mq5 but uses the functions in WinINet.dll instead of WebRequest(). I uploaded ScraperBot06.mq5 because WebRequest() in ScraperBot05.mq5 now returns error code -1, after which GetLastError() returns code 4014,
ERR_FUNCTION_NOT_ALLOWED | 4014 | Function is not allowed for call |
Metatrader 5 may have changed the implementation of WebRequest() since I submitted the article in October 2018, but the documentation for WebRequest() has not changed.
thank you for your reply.
I compiled it again and there's bunch of warning saying "possible loss of data due to type conversion"
still no luck on seeing anything in the terminal. dll is allowed.
do I need any other packages from microsoft, .net etc...?
thanks
thank you for your reply.
I compiled it again and there's bunch of warning saying "possible loss of data due to type conversion"
still no luck on seeing anything in the terminal. dll is allowed.
do I need any other packages from microsoft, .net etc...?
thanks

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
New article Scraping bond yield data from the web has been published:
Automate the collection of interest rate data to improve the performance of an Expert Advisor.
Automated trading is based almost entirely on technical indicators that use past price action to forecast future price action. However, the trader who ignores fundamental forces that move markets is at a disadvantage to traders who factor fundamental data into their trading decisions. An indicator based on fundamental data gathered automatically can improve the performance of an Expert Advisor. The fundamental data that have the most effect on exchange rates are interest rates, which affect the perceived value of currencies. While central bank rates are not volatile, the yields on government bonds, such as the U.S. 10-year treasury note, fluctuate on all time frames in global bond markets. Those yields reflect the expectation the market has as to where future central bank rates will go. Bond yields are often a leading indicator of interest rates and of exchange rates. In the forex market, the metric that applies to a currency pair is the interest rate differential, especially the delta, or change in the interest rate differential, on various time frames. Figure 1 shows a case where movement of the interest rate differential, expressed in basis points, in the positive direction was a leading indicator of movement of the EUR/USD currency pair in the same direction. This article shows how to gather bond yield data from the web and to derive from that data expressions of interest rate differential and delta.
Figure 1. Interest rate differential indicator on hourly EUR/USD chart.
Author: Steven Brown