NexusFi: Find Your Edge


Home Menu

 





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 23,790 views
    2. thumb_up 83 thanks given
    3. group 23 followers
    1. forum 51 posts
    2. attach_file 18 attachments




 
Search this Thread

The Economic Events Collection for MultiCharts

  #1 (permalink)
 
Jura's Avatar
 Jura   is a Vendor
 
Posts: 775 since Apr 2010
Thanks Given: 2,352
Thanks Received: 690

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 NexusFi?
Futures True Range Report
The Elite Circle
Deepmoney LLM
Elite Quantitative GenAI/LLM
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
ZombieSqueeze
Platforms and Indicators
Better Renko Gaps
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
61 thanks
Funded Trader platforms
39 thanks
NexusFi site changelog and issues/problem reporting
26 thanks
Battlestations: Show us your trading desks!
24 thanks
The Program
18 thanks
  #2 (permalink)
 
Jura's Avatar
 Jura   is a Vendor
 
Posts: 775 since Apr 2010
Thanks Given: 2,352
Thanks Received: 690

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
  #3 (permalink)
 
Locust's Avatar
 Locust 
Germany
 
Experience: Advanced
Platform: Quanthouse, Multicharts
Broker: IB / IQ / EBS-ETS
Trading: FDAX, FGBL, FGBM, CL, ES
Posts: 96 since Aug 2010
Thanks Given: 40
Thanks Received: 114


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 NexusFi Trade Journal Reply With Quote
Thanked by:
  #4 (permalink)
 
Jura's Avatar
 Jura   is a Vendor
 
Posts: 775 since Apr 2010
Thanks Given: 2,352
Thanks Received: 690


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
  #5 (permalink)
 
Locust's Avatar
 Locust 
Germany
 
Experience: Advanced
Platform: Quanthouse, Multicharts
Broker: IB / IQ / EBS-ETS
Trading: FDAX, FGBL, FGBM, CL, ES
Posts: 96 since Aug 2010
Thanks Given: 40
Thanks Received: 114

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 NexusFi Trade Journal Reply With Quote
  #6 (permalink)
 
Locust's Avatar
 Locust 
Germany
 
Experience: Advanced
Platform: Quanthouse, Multicharts
Broker: IB / IQ / EBS-ETS
Trading: FDAX, FGBL, FGBM, CL, ES
Posts: 96 since Aug 2010
Thanks Given: 40
Thanks Received: 114

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 NexusFi Trade Journal Reply With Quote
Thanked by:
  #7 (permalink)
 
Jura's Avatar
 Jura   is a Vendor
 
Posts: 775 since Apr 2010
Thanks Given: 2,352
Thanks Received: 690


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
  #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 Given: 108
Thanks Received: 188

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
Thanked by:
  #9 (permalink)
 
Jura's Avatar
 Jura   is a Vendor
 
Posts: 775 since Apr 2010
Thanks Given: 2,352
Thanks Received: 690


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
Elite Membership required to download: EE.ReadFile_v1.1.pla
Started this thread Reply With Quote
Thanked by:
  #10 (permalink)
 
Nicolas11's Avatar
 Nicolas11 
near Paris, France
 
Experience: Beginner
Platform: -
Trading: -
Posts: 1,071 since Aug 2011
Thanks Given: 2,232
Thanks Received: 1,769


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
Elite Membership required to download: EconomicEventsDownloader_v2.zip
Visit my NexusFi Trade Journal Reply With Quote




Last Updated on May 2, 2016


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts