Page 1 of 2

ForexFactory Calendar

PostPosted: Wed Nov 19, 2014 8:09 am
by moomoofx
As requested on here: viewtopic.php?f=27&t=61079

A live parse of the ForexFactory calendar. ForexFactory only expose the calendar on a weekly basis. This indicator gets this file, parses it, and updated accordingly. The file does not contain ACTUAL values, only PREVIOUS and FORECAST/expected values. Refreshing the file won't help. As such, this indicator only refreshes the file on initial load. You can force a refresh via the context menu, or in the config it can refresh periodically but there really is no point since the file never updates.

Additionally:
- You can configure the color coding to use.
- It counts down for you until the news in hours/minutes.
- You can choose to keep historical news hanging around, controlled in minutes. Default is 5.
FFcalendar.png


Calendar as an Indicator on the main Chart
ffcalendar.lua
(13.82 KiB) Downloaded 2258 times


Previously I had two versions of this indicator, one for the main chart and one as an oscillator. However, I just learned that you can do it another way. In the configuration of the indicators, you can choose the location. Just check the checkbox like in the screenshot below. That is much cleaner than maintaining two source codes.
ffcal.png


Enjoy.

Cheers,
MooMooForex

Re: ForexFactory Calendar

PostPosted: Wed Nov 19, 2014 9:27 am
by BTrade
Hi MooMooFX,

Thanks for developing the indicator!

if you could, please, make the following improvements.

1. add a background with an option to select the color
2. add an option for showing less text. only the event description, without the date, time, previous and expected value.
3. add an option to place it in a sub window such as volume or an indicator. I tried by changing the location, but it keep returning into the main chart.

Once again, thank you for spending the time to develop this indicator!

Re: ForexFactory Calendar

PostPosted: Fri Nov 21, 2014 7:10 am
by moomoofx
Hi,

I have...
- Added background option.
- Added the Description Only option.
- made it print one line "No News" when there are no news.

I'm not sure how to programmatically force the indicator to draw in a window or not based off parameters, so I have made an oscillator version of the indicator that draws in a separate window.

Cheers,
MooMooForex

Re: ForexFactory Calendar

PostPosted: Tue Nov 25, 2014 7:07 pm
by moomoofx
There was a bug in the implementation that converted news times between 12:00am and 12:59am incorrectly to 12:xx instead of 00:xx resulting in news being "12 hours xx minutes until" when it was only xx minutes away.

This has now been fixed. Thanks to Roy for reporting the issue.

Re: ForexFactory Calendar

PostPosted: Thu Nov 27, 2014 9:04 am
by moomoofx
And another quick fix concerning the opposite problem of times between 12pm and 12:59pm ... *sigh*. I also noticed the 'Description Only' parameter was inversed so I have fixed that too.

Please redownload file from the first post. Hopefully, no more problems!

Cheers,
MooMooForex

Re: ForexFactory Calendar

PostPosted: Mon Dec 01, 2014 8:12 pm
by BTrade
THANKS!!!

Re: ForexFactory Calendar

PostPosted: Mon Mar 02, 2015 5:54 pm
by BTrade
Hi MooMooFX,

all of a sudden, this indicator is not working since last week. I assume it is related to the URL address. Could you, please, help me fix it?

Thanks

Re: ForexFactory Calendar

PostPosted: Thu Apr 09, 2015 11:00 pm
by moomoofx
Still works for me.

Re: ForexFactory Calendar

PostPosted: Fri Apr 10, 2015 12:27 am
by BTrade
Hi MooMooFx,

Could you, please, let me know the Server and File you use?

It does not work for me ... I have not changed anything in the settings ... the only thing that comes to mind is, if ForexFactory had changed their files.

I really like the option to have the list of upcoming events. HOPE you can help make this indicator works again.

Re: ForexFactory Calendar

PostPosted: Fri Apr 10, 2015 7:33 am
by moomoofx
I'm simply using the default settings.
ff.png

Are you sure you don't just have some firewall or blocking app preventing the connection?