The Economic Events Collection for MultiCharts - futures io
futures io



The Economic Events Collection for MultiCharts


Discussion in MultiCharts

Updated
      Top Posters
    1. looks_one Nicolas11 with 10 posts (21 thanks)
    2. looks_two Jura with 9 posts (46 thanks)
    3. looks_3 Wouter with 5 posts (2 thanks)
    4. looks_4 RoboTrade with 3 posts (0 thanks)
      Best Posters
    1. looks_one Jura with 5.1 thanks per post
    2. looks_two Nicolas11 with 2.1 thanks per post
    3. looks_3 Big Mike with 2 thanks per post
    4. looks_4 Locust with 1.7 thanks per post
    1. trending_up 18,122 views
    2. thumb_up 83 thanks given
    3. group 23 followers
    1. forum 51 posts
    2. attach_file 18 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

The Economic Events Collection for MultiCharts

(login for full post details)
  #1 (permalink)
 Jura   is a Vendor
 
 
Jura's Avatar
 
Posts: 774 since Apr 2010
Thanks: 2,347 given, 688 received

Have you ever wanted to work with upcoming economic events in MultiCharts, such as getting an alert when a certain economic release was about to happen? Perhaps you even wished for an way to close strategy positions a given number of minutes before an economic new release?

Introducing the Economic Events Collection for MultiCharts
Those wishing days are over with the Economic Events Collection for MultiCharts, which is a collection of functions to work with future and historical economic events.

The Economic Events Collection was designed for flexibility and usability Ė giving it endless possibilities while keeping the amount of code required to an absolute minimum.

For whom might the Economic Events Collection for MultiCharts be useful?
  • If youíre an automated trader and want to close open positions 10 minutes before a high impact economic event is released;
  • If youíre a discretionary trader and donít want to be caught off guard with important economic releases or speeches and summits about market moving topics;
  • If youíre an option trader and want to open volatility-based option strategies (like straddles and strangles) in the 30 minutes before important, market moving news;
  • If youíre a backtester and want to backtest the market reactions on certain historical economic events, or just donít want to hold a position when a historical economic event happened (like a Non-Farm Payroll release).

Using the Economic Events Collection
To start using the Economic Events Collection for MultiCharts, download the zip file from the downloads section (which contains all the files youíll need) and follow the easily-to-follow steps in the thorough 23-page manual (attached to this post).

  • An example indicator that uses the Economic Events Collection for MultiCharts can be found here.

Support and getting help
If you run into difficulties or getting stuck repeatedly, add your question/problem to this thread and Iíll try my best to help you.

Also, if you have any suggestion for improvements, Iíd be grateful if you shared them here so that the Economic Events Collection can be further expanded and improved.

Thanks
I want to give a big thanks to @ Nicolas11 for helping me make this project a reality and creating an impressive Java program. Thanks Nicolas, without your help this project would never even have started.

Attached Thumbnails
The Economic Events Collection for MultiCharts-eecollectionformulticharts_v1.14_manual.pdf  
Started this thread Reply With Quote

Can you help answer these questions
from other members on futures io?
Looking for combined bar type (UniRenko with HeikinAshi) NT8
NinjaTrader
NFP
TradeStation
Issues downloading indicators NT8?
NinjaTrader
How many bars have passed since daily high
ThinkOrSwim
Order cumulation
TradeStation
 
Best Threads (Most Thanked)
in the last 7 days on futures io
Spoo-nalysis ES e-mini futures S&P 500
34 thanks
Vinny E-Mini FREE LIVE TRADE ROOM
34 thanks
What helped you convince yourself to cut losses?
27 thanks
ZN_Requesting feedback_Chart type and learning books/res …
17 thanks
Gambling (with life)
16 thanks
 
(login for full post details)
  #2 (permalink)
 Jura   is a Vendor
 
 
Jura's Avatar
 
Posts: 774 since Apr 2010
Thanks: 2,347 given, 688 received

Upcoming Economic Events indicator

This indicator plots a text box on the chart with the upcoming economic events:


In this screenshot, taken on 15:56 local time (Western-Europe), you can see that Geithner was about to speak in 4 minutes (a Medium impact event) and the business inventories were also announced in four minutes.

The indicator has the following settings:


Most of these settings are self-explanatory. The 'TicksOffSetBottom' is the number of ticks you want the text box be displayed above the lowest value on the price scale. The 'RecalcAfter' is the number of seconds the box is updated - this is included to prevent excessive updating from MultiCharts to keep everything running smoothing.

Important note: You'll need the Economic Events Collection for MultiCharts (see first post in this thread and download here) to work with this indicator.

This indicator can be downloaded here.

Started this thread Reply With Quote
The following 12 users say Thank You to Jura for this post:
 
(login for full post details)
  #3 (permalink)
 Locust 
Germany
 
Experience: Advanced
Platform: Quanthouse, Multicharts
Broker: IB / IQ / EBS-ETS
Trading: FDAX, FGBL, FGBM, CL, ES
 
Locust's Avatar
 
Posts: 96 since Aug 2010
Thanks: 40 given, 113 received


Hello,

first of all, thanks to everybody involved in this great tool !!!
This saves a lot of manual work.

I have one problem, after installing it in the 64 bit beta of MC.
The Indicator just pops up for a few seconds in my chart and then disappears again.
Every time when i add it to a chart or turn it on or off it repeats the same pattern, appearing for a few seconds
and then disappearing again.

Regards

Locust

Visit my futures io Trade Journal Reply With Quote
The following user says Thank You to Locust for this post:
 
(login for full post details)
  #4 (permalink)
 Jura   is a Vendor
 
 
Jura's Avatar
 
Posts: 774 since Apr 2010
Thanks: 2,347 given, 688 received


Locust View Post
I have one problem, after installing it in the 64 bit beta of MC.
The Indicator just pops up for a few seconds in my chart and then disappears again.
Every time when i add it to a chart or turn it on or off it repeats the same pattern, appearing for a few seconds
and then disappearing again.

Hi Locust,

That sounds like an annoying problem. How does it disappear - does it so silently or gives it an error message and then turns itself off? If so, what's the error message? You probably have, but to check: have you installed the 64 bit version of the ELCollection.DLL? Do other indicators in the MC8 beta work correctly or does this behaviour occurs more often?


Started this thread Reply With Quote
 
(login for full post details)
  #5 (permalink)
 Locust 
Germany
 
Experience: Advanced
Platform: Quanthouse, Multicharts
Broker: IB / IQ / EBS-ETS
Trading: FDAX, FGBL, FGBM, CL, ES
 
Locust's Avatar
 
Posts: 96 since Aug 2010
Thanks: 40 given, 113 received

Completely silent, no error message at all everything else so far works perfect with the new beta. It looks like just redraw of the background when the data disappears, maybe triggered by an update in the chart like a tick etc.
(And yes I have installed the 64 bit version.) When i switch the status on and off it always reappears for a short but different amount of time.




Jura View Post
Hi Locust,

That sounds like an annoying problem. How does it disappear - does it so silently or gives it an error message and then turns itself off? If so, what's the error message? You probably have, but to check: have you installed the 64 bit version of the ELCollection.DLL? Do other indicators in the MC8 beta work correctly or does this behaviour occurs more often?



Locust

Visit my futures io Trade Journal Reply With Quote
 
(login for full post details)
  #6 (permalink)
 Locust 
Germany
 
Experience: Advanced
Platform: Quanthouse, Multicharts
Broker: IB / IQ / EBS-ETS
Trading: FDAX, FGBL, FGBM, CL, ES
 
Locust's Avatar
 
Posts: 96 since Aug 2010
Thanks: 40 given, 113 received

I think i just found the answer myself. I had checked update on every tick. Once this was turned off the data stayed on the chart even though data was updated around it.





Locust View Post
Completely silent, no error message at all everything else so far works perfect with the new beta. It looks like just redraw of the background when the data disappears, maybe triggered by an update in the chart like a tick etc.
(And yes I have installed the 64 bit version.) When i switch the status on and off it always reappears for a short but different amount of time.


Locust

Visit my futures io Trade Journal Reply With Quote
The following 4 users say Thank You to Locust for this post:
 
(login for full post details)
  #7 (permalink)
 Jura   is a Vendor
 
 
Jura's Avatar
 
Posts: 774 since Apr 2010
Thanks: 2,347 given, 688 received


Locust View Post
I think i just found the answer myself. I had checked update on every tick. Once this was turned off the data stayed on the chart even though data was updated around it.

Thanks for the update Locust, and glad you got it working.

Started this thread Reply With Quote
 
(login for full post details)
  #8 (permalink)
 NW27 
Newcastle, Australia
 
Experience: Intermediate
Platform: Multicharts 8 - Full Version
Broker: IB
Trading: SPI,FTSE100, 6E, 6A
 
Posts: 285 since Oct 2010
Thanks: 108 given, 186 received

Hi,
Having a bit of an issue where not all of the events are being displayed.
I think this relates to my locale. I'm at GMT+10, so I have set the "myTimeZoneOffSet = 16;" allowing for DST.
In the download events file, I have the following -
1120308,1930,3,AUD,Trade Balance
1120308,2030,3,CNY,CPI y/y
1120308,2030,2,CNY,PPI y/y
1120309,0200,1,EUR,German Final CPI m/m
1120309,0200,1,EUR,German Trade Balance

The German events are being correctly displayed as happening this evening (9th March) @ 1800 hrs my time. This is as per ForexFactory.
However, the preceding events (AUD & CNY) are not being displayed at all.
Note the date stamp on these, prior day. But they are for today at (09 March 2012) @ 11:30AM and 12:30AM.
So I'm guesing that the TimeZoneOffSet is doing the time offset but not the date adjustment.

Am I missing a setting somewhere?

Neil.

Reply With Quote
The following user says Thank You to NW27 for this post:
 
(login for full post details)
  #9 (permalink)
 Jura   is a Vendor
 
 
Jura's Avatar
 
Posts: 774 since Apr 2010
Thanks: 2,347 given, 688 received


NW27 View Post
So I'm guesing that the TimeZoneOffSet is doing the time offset but not the date adjustment.

You're completely correct Neil - thanks for raising the issue here. I was able to replicate it here, so it's not related to your settings etc.

I've attached an updated EE.ReadFile function which adjusts the date (and not just the hours). The settings and other functions can be left untouched, only the ReadFile function needs to be replaced.

With the updated function, I get the following output when using TimeZoneOffSet of 16:



Where the notepad is in EST, and the events on the left on TimeZoneOffSet 16.

(Note that the remaining minutes calculation is wrong here, since my pc's local time is not on Australia time, so the first events have already passed but are still displayed here for that reason.)

Let me know if you run into other problems or the TimeZoneOffSet still gives you problems.

-----

Note: importing the attached EE.ReadFile function will overwrite the existing. For users that have modified the EE.ReadFile function, the following lines...

 
Code
    dateNum        = StrToNum(LeftStr(rawStr, 7));
    
    // Check to see if the date falls in the range specified, if Yes, then continue
    if (dateNum >= FromDate) and (dateNum <= ToDate) then begin
        timeNum        = DateTime2ELTime(ELTimeToDateTime(StrToNum(MidStr(rawStr, 9, 4))) + timeZoneOffset);
..were replaced with:

 
Code
    dtEvent        = ELDateToDateTime(StrToNum(LeftStr(rawStr, 7))) + ELTimeToDateTime(StrToNum(MidStr(rawStr, 9, 4))) + timeZoneOffset;
    dateNum        = JulianToDate(dtEvent);
    
    // Check to see if the date falls in the range specified, if Yes, then continue
    if (dateNum >= FromDate) and (dateNum <= ToDate) then begin
        
        timeNum        = DateTime2ELTime(ELTimeToDateTime(StrToNum(MidStr(rawStr, 9, 4))) + timeZoneOffset);

Attached Files
Register to download File Type: pla EE.ReadFile_v1.1.pla (7.3 KB, 48 views)
Started this thread Reply With Quote
The following 4 users say Thank You to Jura for this post:
 
(login for full post details)
  #10 (permalink)
 Nicolas11 
near Paris, France
 
Experience: Beginner
Platform: -
Trading: -
 
Nicolas11's Avatar
 
Posts: 1,071 since Aug 2011
Thanks: 2,232 given, 1,755 received


Hi,

Forex Factory has recently modified the HTML code behind its calendar of economic events .

So v1 of EconomicEventsDownloader.jar is not able any more to retrieve the information from Forex Factory Web site.

Enclosed please find a new version (v2) of EconomicEventsDownloader.jar which solves this issue.

As for v1, the enclosed ZIP also contains source code. This source code is useless for the execution of EconomicEventsDownloader.jar. It is just given as a reference if, for any reason (for instance: security), you prefer to review the code and compile yourself the .jar file.

Thanks to @Jura for having spotted the problem in v1, and also having identified a problem (now solved) in beta version of v2. Remaining bugs, if any, are mine.

Nicolas

PS - Forex Factory also limited the historical information available. We cannot obtain economic events prior to 2009 (versus 2007 previously).

Attached Files
Register to download File Type: zip EconomicEventsDownloader_v2.zip (26.2 KB, 77 views)
Visit my futures io Trade Journal Reply With Quote
The following 7 users say Thank You to Nicolas11 for this post:


futures io Trading Community Platforms and Indicators MultiCharts > The Economic Events Collection for MultiCharts


Last Updated on May 2, 2016


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
     



Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada), info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts