Price from different symbol

 

Is there any function to get a price from different currency symbol, not from the one which I have opened.


If EURUSD is opened: 'ask' gets EURUSD price.

Is there any function like ask("EURGBP)?

 
markog:

Is there any function to get a price from different currency symbol, not from the one which I have opened.


If EURUSD is opened: 'ask' gets EURUSD price.

Is there any function like ask("EURGBP)?


MarketInfo() is the function you're looking for.


eg.

dAsk = NormalizeDouble(MarketInfo("EURGBP",MODE_ASK),4);

dBid = NormalizeDouble(MarketInfo("EURGBP",MODE_BID),4);

 
cloudbreaker:

MarketInfo() is the function you're looking for.


eg.

dAsk = NormalizeDouble(MarketInfo("EURGBP",MODE_ASK),4);

dBid = NormalizeDouble(MarketInfo("EURGBP",MODE_BID),4);

Yes. Thank you very much.

 
Very good!
Reason: