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.