Why is the news indicator not working in Windows 7? - page 4

 

The idea here is to link to the date on the computer, through it to GMT, and starting from the appropriate time on Sunday change the date in the address automatically

but that's a bummer, of course.

 
alexx_v:

here we go:

extern string кастыль= "08-01-2010";

and the query address accordingly:

str = ReadWebPage("http://cdn.dailyfx.com/files/Calendar-"+кастыль+".csv?week=&sort=dateDesc&timezone=&currency=|&importance=|&time="+curr_time);

seems to be working, so long as we can get by with this.

---

now pushes all news for all currencies, the old filter doesn't work.


correct crutch :

string кастыль = StringConcatenate(StringSubstr(TimeToStr(iTime(Symbol(),10080,0),TIME_DATE),0,4),"-",StringSubstr(TimeToStr(iTime(Symbol(),10080,0),TIME_DATE),5,2),"-",StringSubstr(TimeToStr(iTime(Symbol(),10080,0),TIME_DATE),8,2));
 
will it automatically return the current week's Monday date in the format we want?
 

Yeah, I don't understand about date and currency filters, if you explain more, I can help you make a proper GET request

 
In the input parameters list of currencies, fals or trai, for which currencies to show news, it does not work.
 
Abzasc:
In the input parameters list of currencies, fals or trai, for which currencies to show news, it does not work.

Once again, I'm not a programmer, but I think it has something to do with the format of the information in the file received from the site
 
Mischek:

Once again, I remind you that I'm not a programmer, but in my opinion it has to do with the format of the content of the information in the file obtained from the site

Yes, I think so too, but I can't fix it :) replacing in the array does not give me anything, or I'm not digging there...

SZS the old file is not seen in the eyes, I can not compare with what :)

 

this is the design of the crutch given:

string dt=TimeToStr(iTime(NULL,PERIOD_W1,0),TIME_DATE);
dt=StringSubstr(dt,5,2)+"-"+StringSubstr(dt,8,2)+"-"+StringSubstr(dt,0,4);

hmm, the crutch seems to be formed in a different sequence

---

what's the right one by the way?

 

Here's a script for you - you check it ;)

#property copyright "Copyright © 2010, Xrust Solution."
#property link      "http://www.opmatketvol.com"

//+------------------------------------------------------------------+
void start(){
string date = TimeToStr(iTime(Symbol(),10080,0),TIME_DATE);
string kastil = StringConcatenate(StringSubstr(date,0,4),"-",StringSubstr(date,5,2),"-",StringSubstr(date,8,2));
Print(kastil);
string dt=TimeToStr(iTime(NULL,PERIOD_W1,0),TIME_DATE);
dt=StringSubstr(dt,5,2)+"-"+StringSubstr(dt,8,2)+"-"+StringSubstr(dt,0,4);
Print(dt);
return;}
//+-----------------------------------------------------------------+

I really did flip the data relative to yours - tough morning you know :)

 

both issued on the 25th of July...

2010.08.06 16:41:13 123 EURUSD,M15: 07-25-2010
2010.08.06 16:41:13 123 EURUSD,M15: 2010-07-25

my crutch is more reliable ))))

Reason: