Does MarketInfo(symbol,type) need Refreshrates()?

 

Do yu need to use RefreshRates() before using MarketInfo(symbol,type)?


Specifically, assuming that the EA is attached to EURUSD chart, if I use:


bid_price = MarketInfo("EURUSD",MODE_BID);


Will it be EXACTLY the same result as:


RefreshRates();
bid_price = Bid;


What is a more recommended method? Is execution time different?

 
No. MarketInfo doesn't need to be refreshed by RefreshRates
 
gordon:

Do yu need to use RefreshRates() before using MarketInfo(symbol,type)?


Specifically, assuming that the EA is attached to EURUSD chart, if I use:



Will it be EXACTLY the same result as:



What is a more recommended method? Is execution time different?

if your ea in multicurrency, u should us MarketInfo(simbol,tipe),

if u use single currency, it is more simple to us Bid/Ask

Reason: