ForexQuant
Joined: 05 Apr 2010 Posts: 2
|
Posted: Mon Apr 05, 2010 12:00 pm Post subject: Discrepancy on Data Time offset |
|
|
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.
| Quote: | 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.
| Description: |
|
| Filesize: |
268.55 KB |
| Viewed: |
4639 Time(s) |

|
|
|