|
news and other files
Found the complete setup I had originally posted and a statement from their creator:The primary gift I am speaking of is my new library, LibNewsTimes. Programmers can use the function it contains to discern whether it is close to announcement time for any given currency pair. This is the library necessary to run the forthcoming version of BollTrade which Ron and I have been testing.
But moreover, it opens a door to programmers to use it with any EA, to keep it from trading news times --or trade only during news time. It is my hope this may pave the way for several previously unprofitable EAs to now do better. All you have to do is include the .mqh file in your EA and then call IsNewsTime(before, after, currency) to find out if it is news time. Please see the header at the top of the file for detailed information.
In order for this lib to function, you must also have the enclosed indicator, GetNewsFF_v02. mq4 running on your chart. This "indicator" uses Abhi's code to check the ForexFactory news page for announcement times. When you assign this indicator to your chart, you can choose whether to exclude news events that are of "low" (yellow), "medium" (orange), or "high" (red) priority, as well as exclude announcements that have the word "Speaks" in them (such as "OJ Governor Fukui Speaks"). When you assign this to your chart, it will seem to lock up for a few seconds. Do not be alarmed; it is reading the news from the web and will return in a few moments. Again, if you have any questions about it, please first see the header at the top of the file for detailed information.
In order for the indicator to function, you need two other .mqh files in your /experts/include folder. These are from Paul Hampton-Smith , so thank you to him (as well as Abhi, of course). One is WinInet.mqh and one is LogUtils.mqh. Eventually I may integrate these into GrabNewsFF, so there would be less files to deal with. But the WinInet file can be useful to grab any web page, so it might be better to keep it separate.
The last two files are just bonuses that some programmers may find useful. It's another library, called LibDerksUtils. This replaces a lib I previously released called LibUsefulUtils. It has a few additions, and was renamed. None of the rest described above uses this lib, nor does Ron's new BollTrade, but some of my other EAs use them, so you might want to download these as well. Thanks to Robert for some of the code in this lib. Programmers may want to particularly use it for it's comprehensive trailing stop function, called AdjTrailOnAllOrders (). I changed the name partly because I do not want it to have a version number in it. I will be making regular additions to this, and I do not want my (our) systems to get clogged up with a bunch of different versions that have to be kept around so that earlier EAs will work.
When downloading, please put:
GetNewsFF_v02. mq4 in experts/indicators
LibNewsTimes_ v02.mq4 in experts/libraries
LibDerksUtils. mq4 in experts/libraries
LibNewsTimes_ v02.mqh in experts/include
WinInet.mqh in experts/include
LogUtils.mqh in experts/include
LibDerksUtils. mqh in experts/include
|