• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 2:16am
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 2:16am
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Printable Version

Similar Threads

MT4 News Calendar Indicator 844 replies

MT4 calendar indicator link request 33 replies

News impact in forex - Need calendar data for my indicator 6 replies

Economic indicator charts on the FF Calendar 2 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
  • 182
Attachments: FF Calendar Indicator for MT
Exit Attachments

FF Calendar Indicator for MT

  • Last Post
  •  
  • Page 1 23456 44
  • Page 1 234 44
  •  
  • Post #1
  • Quote
  • First Post: Edited Jul 7, 2009 8:51am Feb 26, 2007 10:49pm | Edited Jul 7, 2009 8:51am
  •  DerkWehler
  • | Joined Nov 2006 | Status: Member | 112 Posts
Good day all:

With the generous cooperation of the folks at ForexFactory, I have created an indicator which will tell you how many minutes till the next relevant news event (or two). Normally I peruse the Yahoo MetaTrader_Experts_and_Indicators group, where this has already been posted. But it's only proper that it be posted here as well.

In order to use it, you need to turn on DLL Imports in your Metatrader platform options, because it calls a DLL to get your timezone, as well as another to read the ForexFactory web page to get news information. (Be aware it will write out .XML files to your expert/files folder).

The indicator has settings so you can filter out (or in) news announcements of High, Medium, or Low impact, as well as those with the word "Speaks" in them. You can have it display the minutes till (and info about) the next announcement, or the next two. And you can adjust the colours of the text.

You just apply it to your chart, set your desired options, and it will give you announcement info relating to either currency in the pair on the chart.

The indicator can also be called from within an EA using the iCustom call. By accessing buffer 1, index 0, you can get the minutes until the most recent past event (so minutes will be negative or zero), or by using buffer 1, index 1, minutes until the next news event (positive or zero). If you want to use this feature and need more info, I can post a more detailed sample.

Enjoy,
-Derk


EDIT: The latest version of FFCal is here now in Post #1. I will try to keep it that way, so you can always have the latest. NOTE: FFCal doesn't have a version number in the name anymore. I keep it on a revision control system. If you want to know what "version" it is, open (edit) the file and look at line 8. The text you'll see will look like this:

$Revision:: 20

So yes, at the time of this edit, it is revision (version) 20. See post #400 for details.

-Derk
Attached File
File Type: mq4 FFCal.mq4   47 KB | 25,252 downloads | Uploaded Jul 7, 2009 8:51am
  • Post #2
  • Quote
  • Mar 1, 2007 2:58pm Mar 1, 2007 2:58pm
  •  merlin
  • Joined Mar 2004 | Status: Magic Man | 3,220 Posts
has anyone implemented this yet? im very interested to hear feedback! and if youd be so kind as to post some screenshots of the indicator in action, for us none MT users, that would be very kind of you
Relax and be happy.
  • Post #3
  • Quote
  • Mar 1, 2007 3:32pm Mar 1, 2007 3:32pm
  •  smjones
  • Joined Mar 2006 | Status: THANK YOU MERLIN,TWEE and FF Team | 4,603 Posts
Quoting merlin
Disliked
has anyone implemented this yet? im very interested to hear feedback! and if youd be so kind as to post some screenshots of the indicator in action, for us none MT users, that would be very kind of you
Ignored
Here is what it looks like. I will test it on the next news event.. It seems very cool.
Attached Image
  • Post #4
  • Quote
  • Mar 1, 2007 3:45pm Mar 1, 2007 3:45pm
  •  merlin
  • Joined Mar 2004 | Status: Magic Man | 3,220 Posts
very cool! thanks man!
Relax and be happy.
  • Post #5
  • Quote
  • Mar 1, 2007 3:58pm Mar 1, 2007 3:58pm
  •  smjones
  • Joined Mar 2006 | Status: THANK YOU MERLIN,TWEE and FF Team | 4,603 Posts
And here is the documentation that was embedded in the code.
//=============================================================================
// FFCal_v01.mq4
// Copyright © 2006, Derk Wehler
// Written in cooperation with: http://www.forexfactory.com
//
//
// This "indicator" calls DLLs to fetch a special XML file from the
// ForexFactory web site. It then parses it and writes it out as a .CSV
// file, which it places in the folder: experts/files so that IsNewsTime()
// can use that file to tell if it is near announcement time.
//
// It does this once when it starts up and once per hour in case there have
// been any updates to the annoucement calendar.
//
// In order for this to work correctly and synchronize with your broker's
// server time, you must enter the proper value for "TimeZone". This is
// entered relative to GMT. For example, my broker's server time is GMT+1,
// so I have the default set to 1. If your broker uses GMT+3, enter 3.
// If your broker uses GMT-2, then enter -2.
//
//
//
//=============================================================================
// OTHER CREDIT DUE
// (For GrebWeb and LogUtils functionality (see end of this flie)
//
// 2/14/2007: Robert Hill added code for using text objects instead
// of Comment() for easier reading
//
// 2/25/2007: Paul Hampton-Smith for his TimeZone DLL code
  • Post #6
  • Quote
  • Mar 2, 2007 4:27am Mar 2, 2007 4:27am
  •  DerkWehler
  • | Joined Nov 2006 | Status: Member | 112 Posts
Quoting smjones
Disliked
// In order for this to work correctly and synchronize with your broker's
// server time, you must enter the proper value for "TimeZone". This is
// entered relative to GMT. For example, my broker's server time is GMT+1,
// so I have the default set to 1. If your broker uses GMT+3, enter 3.
// If your broker uses GMT-2, then enter -2.
Ignored
Oh... right. The quote text above is inaccurate. On version 3 I made it auto-detect your broker's time zone.

the author,
-Derk
  • Post #7
  • Quote
  • Mar 3, 2007 4:24pm Mar 3, 2007 4:24pm
  •  ranlee
  • | Joined Sep 2006 | Status: Member | 24 Posts
this is very helpfull, thanks man..
  • Post #8
  • Quote
  • Mar 4, 2007 1:14am Mar 4, 2007 1:14am
  •  amenlo9
  • | Joined May 2006 | Status: Member | 600 Posts
thank you!!i been searching it for long time!
  • Post #9
  • Quote
  • Mar 4, 2007 3:27am Mar 4, 2007 3:27am
  •  WHTenn
  • Joined Nov 2006 | Status: Member | 1,758 Posts
Great Indicator...I put this on all of my charts.

Thank you for sharing!
  • Post #10
  • Quote
  • Mar 4, 2007 4:45am Mar 4, 2007 4:45am
  •  Why Oh Why
  • | Commercial Member | Joined Sep 2006 | 1,911 Posts
It looks great. I'll use it.
Do not focus on making money; focus on protecting what you have.
  • Post #11
  • Quote
  • Mar 5, 2007 10:14am Mar 5, 2007 10:14am
  •  amenlo9
  • | Joined May 2006 | Status: Member | 600 Posts
i tried but nothing come out.what wrong huh?
  • Post #12
  • Quote
  • Mar 6, 2007 12:03am Mar 6, 2007 12:03am
  •  incomeideas
  • | Joined Apr 2006 | Status: A FX Trader | 70 Posts
Hi Derk,

Thanks for this useful tool.
How can i shift the display to the right side of the screen ?

cheers.
Forex is my business
  • Post #13
  • Quote
  • Mar 6, 2007 5:59am Mar 6, 2007 5:59am
  •  DerkWehler
  • | Joined Nov 2006 | Status: Member | 112 Posts
Quoting amenlo9
Disliked
i tried but nothing come out.what wrong huh?
Ignored
I've no idea. Can you tell me what chart you put it on (currency and timeframe) and approx. when?

-Derk
  • Post #14
  • Quote
  • Mar 6, 2007 5:59am Mar 6, 2007 5:59am
  •  DerkWehler
  • | Joined Nov 2006 | Status: Member | 112 Posts
Quoting incomeideas
Disliked
Hi Derk,

Thanks for this useful tool.
How can i shift the display to the right side of the screen ?

cheers.
Ignored
You cannot at present. A new version will be released soon though which has that feature.

-Derk
  • Post #15
  • Quote
  • Mar 6, 2007 6:10am Mar 6, 2007 6:10am
  •  incomeideas
  • | Joined Apr 2006 | Status: A FX Trader | 70 Posts
Quoting DerkWehler
Disliked
You cannot at present. A new version will be released soon though which has that feature.

-Derk
Ignored
sure, i'll wait for it.
thanks alot.
Forex is my business
  • Post #16
  • Quote
  • Mar 6, 2007 7:14am Mar 6, 2007 7:14am
  •  amenlo9
  • | Joined May 2006 | Status: Member | 600 Posts
Quoting DerkWehler
Disliked
I've no idea. Can you tell me what chart you put it on (currency and timeframe) and approx. when?

-Derk
Ignored
i put it on cable 5M chart with all default parameters.nothings come out before news
  • Post #17
  • Quote
  • Mar 6, 2007 7:16am Mar 6, 2007 7:16am
  •  Freewheelin
  • | Joined Dec 2006 | Status: a german in greece | 128 Posts
This is a very useful tool. It works fine for me. THANK you so much for sharing and the work!
42
  • Post #18
  • Quote
  • Mar 6, 2007 8:02am Mar 6, 2007 8:02am
  •  Yannis
  • | Joined May 2004 | Status: Life is a beach | 24 Posts
Quoting amenlo9
Disliked
i put it on cable 5M chart with all default parameters.nothings come out before news
Ignored
Check the 1st Tab Page of the Indicator, and verify that both checkboxes are ticked (see picture attached)
Attached Image
  • Post #19
  • Quote
  • Mar 6, 2007 8:11am Mar 6, 2007 8:11am
  •  smjones
  • Joined Mar 2006 | Status: THANK YOU MERLIN,TWEE and FF Team | 4,603 Posts
You must also have them selected in the tools section at the top of the menu for MT4 under options.
Attached Image
  • Post #20
  • Quote
  • Mar 6, 2007 8:49am Mar 6, 2007 8:49am
  •  Yannis
  • | Joined May 2004 | Status: Life is a beach | 24 Posts
Quoting smjones
Disliked
You must also have them selected in the tools section at the top of the menu for MT4 under options.
Ignored
Well, in that case i would suggest setting these parameters as per the picture below.
I don't think you want to confirm every DLL call, and also having the 'Disable Experts.......' checked, will make the EA reset to its hard coded default settings, loosing any change you may have made to the EA's parameters each time the ea initializes itself (which happens a lot and under various circumstances). This causes more often than not to run EA's with what we think to be the new parameters, but in reality it runs on its default - internally coded - settings.
Just a friendly advice.
Attached Image
1
  • Platform Tech
  • /
  • FF Calendar Indicator for MT
  • Reply to Thread
    • Page 1 23456 44
    • Page 1 234 44
0 traders viewing now
  • More
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2021