Is there a similar RefreshRates()??

 

I'm working on  mql4 to mql5 upgrade. I used RefreshRates() before sending an order to avoid worng data (specially Bid and Ask). The use of RefreshRates() solved eventual errors due incorrect quotes.

If there anyway to request fresh data from the server? Maybe SymbolIsSynchronized or SymbolInfoTick?

Thank you!!

 
cyberpasta:

I'm working on  mql4 to mql5 upgrade. I used RefreshRates() before sending an order to avoid worng data (specially Bid and Ask). The use of RefreshRates() solved eventual errors due incorrect quotes.

If there anyway to request fresh data from the server? Maybe SymbolIsSynchronized or SymbolInfoTick?

Thank you!!

Seems to me that RefreshRates() or other analogous function is not needed anymore in MQL5. To get the latest Ask/Bid price use SymbolInfoTick().
 
robofx.org:
Seems to me that RefreshRates() or other analogous function is not needed anymore in MQL5. To get the latest Ask/Bid price use SymbolInfoTick().
That has sense. Thanks.
Reason: