Economic Calendar EA - page 2

 

Exactly how do you download the dates/times of the events into a .csv file, and how do you set-up MT4 to read it?

pengie:
I have added the check function for your first two timeslot. You can use the same idea for the rest of your timeslots. Please note that this is just a quick and dirty way to solve your problem. It is not exactly the elegant sort of solution that I like. For your EA to be more useful, you should be able to input in all the economic events into a csv file and the EA should read in the times from that file instead of hard-coding all the events in the EA itself.
 

suggestion

Why not just set up the EA on 4 separate charts for ea. pair?

Roets:
This is an update of the original EA with some modifications.

Can someone please tell me why this EA does not want to trade on the four majors at once, but only on one at a time. Even if I set the time to enter the same for all. I think that this EA have some potential. Come all your programming fundies let do this one.

Thanks,

Roets
 

Hi,

I suggest:

- to put ID (Magic Number) in the input data.

- I think you can use following code instead yours

if (Symbol() == "EURUSD" && EURx)

and so on for each pair.

Igor

 
igorad:
Hi,

I suggest:

- to put ID (Magic Number) in the input data.

- I think you can use following code instead yours

if (Symbol() == "EURUSD" && EURx)

and so on for each pair.

Igor

Sorry I've lost you totally. Please give beter explenation. I've changed the code to read a different ID on each order, but the programe now enter multiple orders. That is also a problem. Can you help with this. (EA attached)

Files:
 
eagle4x:
Why not just set up the EA on 4 separate charts for ea. pair?

Please explain how this will make any difference.

 
eagle4x:
Exactly how do you download the dates/times of the events into a .csv file, and how do you set-up MT4 to read it?

I dont have a csv file I go to http://www.forexfactory.com/index.php?page=calendar and load it in the code every week.

 

Four majors now

eagle4x:
Why do you want this EA to trade only US announcements? Why not releases during asian and london sessions?

The new EA trade on all four majors, but still have a few bugs. We are in the process to fix this issues - I hope this week.

Files:
 

Downloading calendar

Roets:
I dont have a csv file I go to http://www.forexfactory.com/index.php?page=calendar and load it in the code every week.

What are the specific steps to download the calendar in MT4? Also,

would steps be any different for downloading this calendar, and if so,

what steps?

http://www.dailyfx.com/story/calendar/weekly-focus/7558-global-economic-calendar-for-week-of.html

 
Roets:
I dont have a csv file I go to http://www.forexfactory.com/index.php?page=calendar and load it in the code every week.

hello,

I use too with GMT from my zone: http://www.forexfactory.com/index.php?s=&timezoneoffset=g2

 
BrunoFX:
hello, I use too with GMT from my zone: http://www.forexfactory.com/index.php?s=&timezoneoffset=g2

I trade with Interbank, their charts is all GMT timezone.

Reason: