Access a currency pair data in the inidcator of anothe one in MetaTrader 4

 
Hi,
I am trying to create an indicator in MetaTrader 4, for which, I'd need to compare the past prices of one currency pair with antother one.
How do I get the past prices of one currency pair in the indicator of another one?

Thanks,
Kash
 
use ArrayCopySeries function. see our samples
 
Thanks. But, this does not allow yo to get Ask/Bid prices. Is there a way to access those?


Kash
 
use MarketInfo function to retrieve bid and ask (parameters MODE_BID and MODE_ASK accordingly)
 
wouldn't ArrayCopyRates() be better than ArrayCopySeries() ??
 
ArrayCopyRates was implemented for passing whole history to dll