Indicators/EAs for news and trading signals - page 29

Sergey Golubev
Moderator
117467
Sergey Golubev  

Post ... but I am not programmer so I have no idea what edited and why (I am supporting EA/indicators which I know and understand). So, if someone will ask me "how to backtest this EA" - I will not reply.

sharteel
100
sharteel  

Hi,

if you would like testing the Ea in live with custom event, you need modify ForexTSD_Calendar() function:

extern string FileCalName = "Calendar_local.csv";

extern bool useFileCalName =true;

string ForexTSD_Calendar()

{

int handle;

string CalName;

datetime StartWeek = iTime(NULL,PERIOD_W1,0);

string StartYear = TimeYear (StartWeek);

if (TimeMonth(StartWeek)>9) string StartMonth = TimeMonth(StartWeek);

else StartMonth = "0" + TimeMonth(StartWeek);

if (TimeDay(StartWeek)>9) string StartDay = TimeDay(StartWeek);

else StartDay = "0" + TimeDay(StartWeek);

string StartTime = StartYear + StartMonth + StartDay;

if(useFileCalName==true){

handle=FileOpen(FileCalName,FILE_CSV|FILE_READ,";"); // File opening

if(handle<0){ // File opening fails

if(GetLastError()==4103) // If the file does not exist,..

Alert("No file named ",FileCalName); //.. inform trader

else // If any other error occurs..

Alert("Error while opening file ",FileCalName); //..this message

PlaySound("Bzrrr.wav"); // Sound accompaniment

CalName = "";

}

else {

CalName = FileCalName;

PlaySound("Ding.wav"); // Sound accompaniment

Print(CalName," is OK");

}

}

else {

string WebAdress = "http://calendar.forex-tsd.com/calendar.php?csv=1&date="+StartTime+"&calendar[]="+CalendarID;

string result = forextsd_com_webget(WebAdress);

if(result != "")

{

CalName = "Calendar_"+StartYear+"-"+StartMonth+"-"+StartDay+".csv";

PlaySound("Ding.wav"); // Sound accompaniment

Print(CalName," is OK");

handle=FileOpen(CalName,FILE_CSV|FILE_WRITE,';');

if(handle>0)

{

FileWrite(handle, result);

FileClose(handle);

}

}

else CalName = "";

}

return(CalName);

}

Create locale csv file in Files directory with these row Date;Time;Currency;Title;Impact;Actual;Forecast;Previous

Ex:

2011-08-18;22:30;AUD;Trade Balance;3;;-1.7B;-2.5B

2011-08-18;22:45;AUD;Trade Balance;3;;-1.7B;-2.5B

2011-08-18;23:00;AUD;Trade Balance;3;;-1.7B;-2.5B

Have fun.

William Snyder
9506
William Snyder  

Added a clock and sessions type functions to TSD calender.

ps)On the _Clock version added a external parameter called LabelsFontSize to try and get the calender,clock and sessions fontsize a little closer to the same also on the regular calender version when you remove it the news would stay, so on this version the news will leave your chart when the indicator is removed.

Sergey Golubev
Moderator
117467
Sergey Golubev  

Trading our tsd calendar by NewsTrader EA, GBPUSD interest rate:

Files:
Sergey Golubev
Moderator
117467
Sergey Golubev  

it is the statements for this week.

I am posting the statements every week (every weekend) in elite section on the way as:

-----------

LUpdated results for this week (high impacted news events only, NewsTrader_v5.3 EA, nfp settings) - in 4 digit pips.

EURUSD:-96.

GBPUSD: 201.

USDJPY: 0.

USDCHF: -50.

AUDUSD: -1.

USDCAD: 270.

NZDUSD: 0.

---------------

Most risky pair to trade the news is GBPUSD and most safe is USDCAD (for NewsTrader_v5.3 with nfp settings - see 1st post of this thread).

-----------

And EA is uploaded to this thread as mql4 code to download.

bosh83
3
bosh83  

News trader 5.3

Please can anyone tell me why News Trader 5.3 stop working. It can not get news anymore from the TSD Calendar. If someone can hellp me I will be very gratefull.

Sergey Golubev
Moderator
117467
Sergey Golubev  

It works:

You need to restart metatrader once in a week (during the weekend for example, or in any time one time in a week). By this action - EA will download the data from tsd forex calendar to trade.

Also - use correct settings (this thread - somewhere on the previous page, and more).

EA to download - see first page of this thread.

Files:
expatfx
5
expatfx  
bosh83:
Please can anyone tell me why News Trader 5.3 stop working. It can not get news anymore from the TSD Calendar. If someone can hellp me I will be very gratefull.

Hi,

Did the links for downloading the Calendar CSV change?

Noticed that the new calendar link is now: Forex TSD - forex forum - Calendar

Prior was https://www.mql5.com/en/forum

CSV dowloads are not working with prior settings e.g. https://www.mql5.com/en/forum

Cheers

Tom

Sergey Golubev
Moderator
117467
Sergey Golubev  

Hi expatfx,

I know.

Programmers are fixing it.

Hope - it will be fixed soon.

expatfx
5
expatfx  
newdigital:
Hi expatfx,

I know.

Programmers are fixing it.

Hope - it will be fixed soon.

Thanks for the prompt response.

Please keep us updated.

Cheers

Tom