How can I know a price of another cross in a specified date?

 

For example we are now working on an EA that is executed on the EUR/USD chart and we want to know what was the price of USD/CHF on a certain date. Is it possible to do?

Thank's a lot!

 
Yeah, one method, convert the date-to-time using StrToTime(), if the time is already in Seconds format the proceed to next step. Then do Bar-Search which closely matches the time using BarShift(). Then search for the type of price you want using the Bar# returned by the BarShift. And instead of using Symbol() or EURUSD for the symbol within those function, use "USDCHF".
 
ubzen:
Yeah, one method, convert the date-to-time using StrToTime(), if the time is already in Seconds format the proceed to next step. Then do Bar-Search which closely matches the time using BarShift(). Then search for the type of price you want using the Bar# returned by the BarShift. And instead of using Symbol() or EURUSD for the symbol within those function, use "USDCHF".
and then of course you use the functions iClose, iOpen, iHigh or iLow as appropriate.
Reason: