Economic Calendar Indicator for MC

Studies that have been contributed to the community by other users. If you’ve got something useful to share, that’s great!
damageboy
Posts: 70
Joined: Sep 15 2006
Been thanked: 15 times

Oct 23 2006

Hi,
I've coded an utility and indicator for MC to plot Economic Events,
The resulting chart looks something like this:
Image

Update:
I've re-exported the indicator to include the ELDateToString and ELTimeToString function which may not be installed on your MC installation...

NOTE: This indicator is based on ADE, which is based on ELCollections extension to TS, which is also compatible with the latest beta of MC (1.90.644.1126).
To install ADE / ELCollections / GlobalVariables you can refer to a prior post of mine:
http://forum.tssupport.com/viewtopic.php?t=2483

The package is made of 3 parts:
  • A .csv file containing the economic events, generated from the Econoday economic calendar: http://www.bloomberg.com/markets/ecalendar/index.html
    You will find it in the EconodayScraper.zip file named "econoday-2006.csv"
  • An utility to (re-)generate the above mentioned .csv file, this utility required the .net 2.0 runtime framework to be installed in advance
  • The indicator
The indicator has the following inputs:
  • TZOffset - Amount in hours (can be positive/negative) to offset the data for display, For example, in the example chart, I use the exhcnage time zone, so ET needs to be offset by "-1" for local MC
  • Filename - Path to the .csv file. No istakes here or you have to reload MC
  • DisplayTickOffset - Some configurable display offset to make sure economic events don't appear one on top of the other..
  • DisplayTimeText - Prepend the time of the event to the text (useful when pltting events on high time frames charts (60m/120m)
  • FontName - Font to use for the text
  • FontSize - Guess....
NOTE: You will have to set the chart space to the right property so that the information items can actually appear at their correct place...
Attachments
ee.xml
Updated version with ELDateToString() and ELTimeToString() functions included...
(13.18 KiB) Downloaded 903 times
EconodayScraper.zip
(108.93 KiB) Downloaded 757 times
ee.png
(49.53 KiB) Downloaded 4651 times
Last edited by damageboy on Oct 29 2006, edited 3 times in total.

bernard
Posts: 4
Joined: Oct 24 2006
Been thanked: 1 time

Oct 24 2006

Thanks, can you also post the program that generates the csv file? Or it's inside the EconodayScraper.zip?

damageboy
Posts: 70
Joined: Sep 15 2006
Been thanked: 15 times

Oct 26 2006

It's inside the EconodayScraper.zip file

If you feel anxious to see the source PM me, I don't mind sharing it, just didn't want to add TOO much noise.

Guest

Oct 29 2006

I don't see where to download the indicator, its not in the EconodayScraper zip, or am I possibly missing something?

Thanks a bunch for your generous contributions

damageboy
Posts: 70
Joined: Sep 15 2006
Been thanked: 15 times

Oct 29 2006

@Guest:
My bad, I somehow deleted the .xml attachment.
My sincere apologies...

Master post now contains the .xml file.
The EconodayScraper.zip file contains the app + .csv

epepping

Oct 29 2006

Thanks, I installed everything including the collections and the neccesasy AD library.
however when i compile the ELTimeToString function is unknown...

damageboy
Posts: 70
Joined: Sep 15 2006
Been thanked: 15 times

Oct 29 2006

I will add it to the list of exported functions and re-export.
It's just one of those functions I was never sure about whether they belong to the plain vanilla distribution or not... (The name ELXXX usually suggests they do..)

AccuracySR
Posts: 16
Joined: Mar 15 2006
Been thanked: 1 time

Mar 13 2007

Hi
I get an error when I try to add the study
company Bamboo
erro location EL collections
error category el collections error
source string there is no colection with that ID erro code 0

I importeed and complied the els files (all data and ell collections) and I put the dll files in the correct location but wasnt sure where the EconodayScraper\Econoday-2006.csv and EconodayScraper\EconodayScraper.exe exel go?

damageboy
Posts: 70
Joined: Sep 15 2006
Been thanked: 15 times

Mar 13 2007

Hi,
The .csv file can go anywhere you want to place it in.
The "trick" is to point the indicator to the .csv file.
So the Filename input of the indicator should point to the file.

Example:
The .csv file is placed in c:\2007.csv
The Filename input needs to point to "C:\2007.csv"
The input MUST INCLUDE the Quote marks.

The .exe/.dll files can go anywhere you want them to, they are not used @ runtime.
In theory (unless bloomberg changes the economic event listing) you should run the .exe file once every year to get the .csv file :)

ax
Posts: 34
Joined: Nov 21 2005
Has thanked: 15 times
Been thanked: 2 times

Jan 04 2009

Trying to run scraper and I receive an error message "unable to connect to the remote server"

Any help would be most appreciated.

User avatar
TJ
Posts: 7765
Joined: Aug 29 2006
Location: Global Citizen
Has thanked: 1036 times
Been thanked: 2232 times

Jan 04 2009

Trying to run scraper and I receive an error message "unable to connect to the remote server"
Any help would be most appreciated.
In all fairness, please first tell us WHAT you have done...
Last edited by TJ on Jan 04 2009, edited 1 time in total.

bomberone1
Posts: 310
Joined: Nov 02 2010
Has thanked: 26 times
Been thanked: 23 times

Jul 04 2011

It doen't work anymore.
Could you post opencode to improve it please?

User avatar
TJ
Posts: 7765
Joined: Aug 29 2006
Location: Global Citizen
Has thanked: 1036 times
Been thanked: 2232 times

Jul 04 2011

It doen't work anymore.
Could you post opencode to improve it please?
Have you read the whole thread?

In all fairness, please first tell us WHAT you have done...

bomberone1
Posts: 310
Joined: Nov 02 2010
Has thanked: 26 times
Been thanked: 23 times

Jul 05 2011


bomberone1
Posts: 310
Joined: Nov 02 2010
Has thanked: 26 times
Been thanked: 23 times

May 05 2016

UPDATE?

User avatar
TJ
Posts: 7765
Joined: Aug 29 2006
Location: Global Citizen
Has thanked: 1036 times
Been thanked: 2232 times

May 05 2016

Please see this thread:
The Economic Events Collection for MultiCharts
viewtopic.php?f=5&t=9951