Thank you very much for your earlier help. I have another little case for you.
I want to calculate the Closing price for the 1 minute bar that just closed say exactly at GMT = 0:00. However, it maybe possible that there was no new ticks for that pair at that minute and the EA will not be updated. How can I code so that it will give me the closing price for the next available bar when new ticks arrive?
I am using something like the following:
PHP Code:
if((TimeHour(Time[0])==(TimeHour) && TimeMinute(Time[0])==TimeMin))
{
Cl = iClose(NULL, 0, 1);
.
.
.
}
Thanks again,
Maji