Indicators/EAs for news and trading signals - page 28

 
 

Hi anhquay101,

NewsTrader EA?

I am still trading by this EA, and I posted the settings.

Explanation of the settings is very understandbale.

But I want to say the following: if you never traded the news events so it will be difficult for you. I am suggesting to you to learn the forum first, and to learn some fundamental news and after that only - try on demo.

 

Hi newdigital,

ty for newstrader v5.3 EA. I have special demand. Is it possible to add option for calling a local calendar (in my computer) ?

Regards,

S.T

 

This option is having version 6: trading text file (calendar created in text file) with pre-selected the settings for every news events. But it is in elite section sorry.

 

Hi,

Okay.

With v5.3, is it possible to make instant buy/sell 5 minutes before event ?

what is NFP ?

Regards,

S.T

 

Yes, it is TimeGap // Time Gap between News Time and Order Open Time in min

Open EA in MetaEditor - there is explanation of all the settings.

Just set TimeGap = 5.

NFP is Nonfarm payroll (or Non-Farm Employment Change):

Monthly.

High impact.

Published together with Unemployment Rate (general indicator).

Measures the number of new jobs created in the previous month,

excluding the farming industry (Nonfarm employment value

as change of previous month - month before previous).

Measures the change in number of workers in an estimated month

and measures the number of jobs in more than

500 industries(ex-farming) in all states and 255 metropolitan areas.

The employment estimates are based on a survey

of larger businesses and counts the number of paid employees

working part-time or fulltime in the nation's business

and government establishments. It is important to compare

this figure to a monthly moving average (6 or 9 months)

to capture a true perspective of the trend in labor market strength.

Equally important are the frequent revisions for the prior months,

which are often significant.

Websource: Employment Situation Summary
 

Hi,

Ty.

For me instant BUY/SELL is taking an order at the market (atm), not a pending order.

S.T

 

Hi newdigital,

For live backtesting, I have edited TSD_Calendar() function for calling local file.

Can i post mod here or is it prohibed ?

regards,

S.T

 

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.

 

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.

Reason: