Download MetaTrader 5
To add comments, please log in or register
Share links from other resources. Now they have a description.
Juan
89
Juan 2010.05.31 14:31 

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!!

Nikolay Panev
1070
Nikolay Panev 2010.05.31 16:32  
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().
Juan
89
Juan 2010.05.31 19:33  
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.
Juan
89
Juan 2010.05.31 19:34  
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.
/
To add comments, please log in or register