Discrepancy on Data Time offset

Sources of data to import to the program
Message
Author
ForexQuant
Posts: 2
Joined: Mon Apr 05, 2010 6:33 am

Discrepancy on Data Time offset

#1 Postby ForexQuant » Mon Apr 05, 2010 7:00 am

I'm using the free data source on your website and i appreciate it. However I discover some discrepancies on the latest data source (Jan 2001 - 01 Apr 2010).

The data used to end on 22:00 every Friday but not for the latest updated data. In fact, it ends on 20:00 since Feb 10.

I have checked on other 1M candle and I noticed that the candle time has shifted 2hours early. Could you please check on this matter and rectify it?

Enclosed is the time of the last candle on every Friday. The last candle time inside the red box is 20:00 instead of 22:00.

btw here is my metatrader code to obtain the last candle time on Friday.

int start()
{
//----
int i, j;
datetime dtCurrentCandleTime, dtNextCandleTime;
string sComment;

for(i = 1; i <= Bars; i++)
{
dtCurrentCandleTime = iTime(NULL, 0, i);
dtNextCandleTime = iTime(NULL, 0, i - 1);
if(TimeDayOfWeek(dtCurrentCandleTime) == 5 && TimeDayOfWeek(dtNextCandleTime) != 5)
{
j++;
if(j == 10)
{
sComment = StringConcatenate(sComment, "\n");
j = 0;
}
sComment = StringConcatenate(sComment, " ", TimeToStr(dtCurrentCandleTime));
}
}
Comment(sComment);

//----
return(0);
}


I hope you understand the problem. Thank you.
Attachments
Weekly last candle time.JPG
Weekly last candle time.JPG (268.55 KiB) Viewed 9138 times

Return to “Data sources”

Who is online

Users browsing this forum: No registered users and 32 guests