Another Request for Coders' Guru

 

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:

if((TimeHour(Time[0])==(TimeHour) && TimeMinute(Time[0])==TimeMin))

{

Cl = iClose(NULL, 0, 1);

.

.

.

}

Thanks again,

Maji

 

Bump!!! Trying to get some attention.

Also, is there a function that returns the pip value in the base currency for the given lot size. For example, the pip value for 1 pip of EURUSD for a standard lot is $10, given your base currency is USD.

This would be very helpful in position sizing routines for money management purposes.

thanks,

Maji

 

Bump... trying to get attention. Help is still needed.

Maji

Reason: