Bid price for a specific time

 
Hi All!

How can I make a code to know the bid price of a specific time?
For example: I'd like to know the EURUSD bid price on 2007.05.03 15:35. What is the code?

Please, help me!
Thank you!
 

You can learn Bid with accuracy of 1 minute, as this minimum period.

15:35 - this time, opening a new pricing minutes and 5 minutes candles. So should go to the bar this time to find his number and call him with the function iopen ().

 

Take your pick of Open, High, Low, or Close. Bid/Ask only applies to current tick

You need the history for the minutes of the specified time, otherwise, use higher timeframe

double specifedClose = iClose(Symbol(), PERIOD_M1, iBarShift(Symbol(), PERIOD_1M, StrToTime("2007.05.03 15:35")));

 
 iClose(...),  Close[..] are also Bid price 
Reason: